Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Get a build

GET/v1/builds/{buildId}Get a build

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

Returns one build with the resources it reported acting on.

Parameters

buildIdstringpathrequired

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

Responses

200The build, with its reported resources.application/json
object
dataobjectrequired
Show child attributes
applicationTopologyContentHashnull | stringrequired
branchIdnull | stringrequired

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

branchNamestringrequired
commitShastringrequired
createdAtstringrequired
deployedUrlnull | stringrequired
errorMessagenull | stringrequired
externalLogUrlnull | stringrequired
failingStepnull | stringrequired
finishedAtnull | stringrequired
gitRepoIdnull | stringrequired

Repository the build ran against. Set only when the workspace has a live link to it; a reported repository the platform does not know stays null.

idstringrequired

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

phasenull | stringrequired

Null when nothing reported a phase; the platform never invents an observation it did not receive.

one of "queued", "build", "deploy", null

projectIdnull | stringrequired

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

resourcesarray of objectrequired
Show child attributes
Show array items
actionstringrequired

one of "created", "acted_on", "deleted"

createdAtstringrequired
resourceIdstringrequired

Prefixed id of the reported resource.

resourceTypestringrequired

one of "project", "branch", "database", "app", "deployment", "bucket", "service_key", "config_variable"

sourcestringrequired

one of "webhook", "setup", "manual", "ci", "cli"

startedAtnull | stringrequired
statestringrequired

one of "pending", "running", "succeeded", "failed", "cancelled"

Example response
{
  "data": {
    "applicationTopologyContentHash": "string",
    "branchId": "string",
    "branchName": "string",
    "commitSha": "string",
    "createdAt": "string",
    "deployedUrl": "string",
    "errorMessage": "string",
    "externalLogUrl": "string",
    "failingStep": "string",
    "finishedAt": "string",
    "gitRepoId": "string",
    "id": "string",
    "phase": "build",
    "projectId": "string",
    "resources": [
      {
        "action": "acted_on",
        "createdAt": "string",
        "resourceId": "string",
        "resourceType": "app"
      }
    ],
    "source": "ci",
    "startedAt": "string",
    "state": "cancelled"
  }
}
401Missing or invalid authorization token.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
404Build not found, or the caller's workspace does not own it (indistinguishable).application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
429Rate limit exceeded.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu