/v1/deployments/{uid}/runs/{run_uid}/logsReturns 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
uidstringRequiredThe deployment's uid.
run_uidstringRequiredThe run's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The run's log lines.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the log line.
run_uidstringRequiredUID of the run.
operation_idstringRequiredUID of the run's operation.
deployment_uidstringRequiredUID of the deployment.
stepstringBuild or rollout step that wrote the line.
streamstringOutput stream, such as stdout or stderr.
messagestringRequiredThe log text.
occurred_atstring (date-time)RequiredWhen the line was written (RFC 3339 with nanoseconds).
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | The resource does not exist or you cannot access it. |
Errors use the standard error format.