Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Get a source repository

GET/v1/source-repositories/{id}Get a source repository

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

Returns a single source repository link by ID.

Parameters

idstringpathrequired

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

Responses

200Returned the source repository.application/json
object
dataobjectrequired
Show child attributes
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
hintstring
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"
  },
  "hint": "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"
  }
}
404Source repository not found.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu