Skip to content
Console
On this page

Read logs on a build attempt

Reads a bounded page of the native build container's retained output, oldest first.

Reads a bounded page of the native build container's retained output, oldest first. These logs are separate from standalone Build runs.

  • Path GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/build_attempts/build-attempt:readLogs
  • Scope release:read
  • Effect read — nothing is written.
  • Collection build_attempts
  • Query page_token

Request

FieldTypeWhat it is
namestringThe exact canonical attempt name returned by ListBuildAttempts. Required.
page_tokenstringResume after this cursor from the same attempt and principal.

Response

FieldTypeWhat it is
linesstring[]Redacted build container output, in order. Container streams are combined. Output only.
next_page_tokenstringCursor after this page; it can also be used after a terminal page. Output only.
has_moreboolTrue if another page can be read immediately. Output only.
doneboolTrue when the attempt is terminal and the retained output window is drained. Output only.
stateBuildAttemptStateLatest recorded attempt state. A successful build need not be serving. Output only. One of queued, building, succeeded, failed, cancelled.

Errors

Every error arrives in the body Errors describes.

Examples

curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/build_attempts/build-attempt:readLogs" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"