Skip to content

List deployment run logs

GET/v1/deployments/{uid}/runs/{run_uid}/logs

Returns all stored log lines of a run (build and rollout output), oldest first. Old log lines are cleaned up after a retention period, so logs of old runs may be empty.

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.

run_uidstringRequired

The run's uid.

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 run's log lines.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the log line.

run_uidstringRequired

UID of the run.

operation_idstringRequired

UID of the run's operation.

deployment_uidstringRequired

UID of the deployment.

stepstring

Build or rollout step that wrote the line.

streamstring

Output stream, such as stdout or stderr.

messagestringRequired

The log text.

occurred_atstring (date-time)Required

When the line was written (RFC 3339 with nanoseconds).

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.