Skip to content

List deployment runs

GET/v1/deployments/{uid}/runs

Returns the deployment's runs (builds and rollouts), newest first. security_scan carries only the vulnerability counts here; get a single run for the full list.

Without query parameters, every run is returned. Send page or page_size to paginate; a top-level pagination object is then added next to data.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The deployment's uid.

Query parameters

pageinteger

Page number, starting at 1. Sending this enables pagination.

min 1

page_sizeinteger

Runs per page. Defaults to 10, capped at 100. Sending this enables pagination.

Default 10min 1 · max 100

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The deployment's runs. pagination is only present when page or page_size was sent.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the run.

deployment_uidstringRequired

UID of the deployment.

operation_idstringRequired

UID of the operation that tracks the run. See Get an operation.

triggerstringRequired

What started the run.

One ofmanualgit_pushgit_pull_request

statusstringRequired

ready once the version is live. canceled when a newer run superseded it. Rollouts without a build start at building.

One ofqueuedbuildingreadyfailedcanceled

branchstringRequired

Branch the run built.

commit_shastring

Commit that was built, when known.

commit_messagestring

Commit message or label.

trigger_actorstring

Who started the run. For manual runs, the username (or email) of the member who made the request; for pushes and pull requests, the GitHub login.

trigger_actor_urlstring

Link to the actor's profile, when known.

image_digeststring

Digest of the built image. Omitted when the run has no image (failed, or deleted).

artifact_size_bytesinteger

Size of the stored image in bytes. Omitted when unknown or deleted.

created_atstring (date-time)Required

When the run was queued.

started_atstring (date-time)

When work began.

finished_atstring (date-time)

When the run finished.

last_failurestring

Readable reason the run failed.

security_scanobject

Vulnerability scan of the run's image. Present when scanning is enabled.

Show attributes
uidstringRequired

Unique identifier of the scan.

statusstringRequired

warning when critical or high findings exist. failed when the scan itself failed.

One ofqueuedscanningpassedwarningfailednot_scanned

critical_countintegerRequired

Critical findings.

high_countintegerRequired

High findings.

medium_countintegerRequired

Medium findings.

low_countintegerRequired

Low findings.

unknown_countintegerRequired

Findings of unknown severity.

scannerstring

Scanner used.

started_atstring (date-time)

When the scan started.

finished_atstring (date-time)

When the scan finished.

scanned_atstring (date-time)

Same as finished_at.

vulnerabilitiesarray of objects

Individual findings. Only returned by Get a deployment run.

Show item attributes
idstringRequired

Vulnerability ID, such as a CVE.

severitystringRequired

Severity reported by the scanner, such as CRITICAL, HIGH, MEDIUM, LOW or UNKNOWN.

package_namestringRequired

Affected package.

installed_versionstring

Installed version.

fixed_versionstring

First version with a fix, if any.

titlestring

Short title.

descriptionstring

Longer description.

sourcestring

Where the package was found, such as the OS release or a lockfile.

advisory_urlstring

Link to the advisory.

paginationobject

Paging details. Only present when page or page_size was sent.

Show attributes
pageintegerRequired

Current page number.

page_sizeintegerRequired

Items per page.

totalintegerRequired

Total number of matching items.

total_pagesintegerRequired

Total number of pages.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The resource does not exist or you cannot access it.

Errors use the standard error format.