Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

List source repositories

GET/v1/source-repositoriesList source repositories

⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️

Returns source repositories linked to a project. Requires projectId query parameter.

Parameters

cursornull | stringquery

Cursor for pagination

limitnumberquery

Limit for pagination

default 100

projectIdstringqueryrequired

pattern ^(proj_)?([cC][^\s-]{8,}|[a-z0-9]+)$

Responses

200Returned the list of source repositories.application/json
object
dataarray of objectrequired
Show child attributes
Show array items
createdAtstring · date-timerequired
defaultBranchstringrequired
idstringrequired

pattern ^(srcrepo_)([cC][^\s-]{8,}|[a-z0-9]+)$

installationIdstringrequired
isPrivatebooleanrequired
projectIdstringrequired
providerstringrequired

one of "github"

repoFullNamestringrequired
repoIdintegerrequired
statusstringrequired

one of "active", "archived"

typestringrequired

const "source-repository"

updatedAtstring · date-timerequired
urlstring · urirequired
paginationobjectrequired
Show child attributes
hasMorebooleanrequired
nextCursornull | stringrequired
Example response
{
  "data": [
    {
      "createdAt": "2026-06-09T00:00:00Z",
      "defaultBranch": "string",
      "id": "string",
      "installationId": "string",
      "isPrivate": true,
      "projectId": "string",
      "provider": "github",
      "repoFullName": "string",
      "repoId": 0,
      "status": "active",
      "type": "source-repository",
      "updatedAt": "2026-06-09T00:00:00Z",
      "url": "https://example.com"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "string"
  }
}
401Missing or invalid authorization token.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
404Project not found.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu