Skip to content

Get logs

GET
/api/v1/runs/{run_id}/logs

Read retained log batches in arrival order.

Credential scopes: runs:read

Resource authority: Run submitter or current model owner/co-admin; model-administrator reads are audited. Connector administration and model execution grants alone confer no scientific read access.

Retry: Repeat GET using the same resource identity; each request rechecks current credential and resource authority.

Guards: No mutation or execution authority is granted.

Retain: Run identity; opaque cursor where returned.

Specific failures: 403 insufficient_scope; 404 not_found: missing or unauthorized resource

Next action: Inspect current state; follow exact referenced artifact identities. Worked workflow

Authorized ascending retained log batches for the submitter or current model owner/co-admin, including completed runs. Each run retains at most 1024 batches for at most seven days. Read and ingestion prune expired payloads without erasing ingestion acknowledgements. Source gaps and source_reset mark missing source bytes. A nonzero retention prefix marks expired API payloads. resume_cursor permits subsequent polling or SSE even when a page is empty.

run_id
required
string format: uuid
limit
integer format: int32
default: 50 >= 1 <= 100

Maximum entries per page, ascending by durable acceptance position.

cursor
string
<= 1024 characters

Opaque exclusive boundary scoped to creator, run, and history kind.

Bounded retained payloads and recovery boundary.

Media typeapplication/json
object
items
required
Array<object>
object
assignment_id
required
string format: uuid
byte_length
required
integer format: int64
epoch
required
integer format: int64
gap
One of:
null
offset
required
integer format: int64
position
required
integer format: int64
received_at
required
string format: date-time
sequence
required
integer format: int64
source
required
string
/^(stdout|stderr|connector|slurm_batch|model\.[a-z][a-z0-9_-]{0,63})$/
source_reset
required

True on the first batch of a replacement source epoch. Data may have been lost at this reset even when the omitted byte count is unknown.

boolean
text
required
string
next_cursor
string | null
resume_cursor
required

Always present, including an empty page; suitable for SSE or polling.

string
retention
required
object
earliest_position
integer | null format: int64
latest_position
required
integer format: int64
payload_max_age_seconds

Null for immutable observation evidence, which has no expiry policy.

integer | null format: int64
payload_max_entries
integer | null format: int64
recovery_cursor
required

Resume at the earliest retained entry. Replacing an expired cursor with this acknowledges the missing prefix; clients should display that gap.

string
Cache-Control
string

No-store

x-request-id
string

Always present. A fresh server-generated UUID for this request; incoming IDs are ignored. On errors, this equals the response body’s request_id.

Invalid, duplicate, unknown, wrong-scope, or future cursor/limit. Code invalid_pagination.

Media typeapplication/json

The common JSON body for errors returned by the HTTP application.

object
code
required

Stable machine-readable error code.

string
details
One of:
null
message
required

Safe explanation without internal errors or submitted input values.

string
request_id
required

Matches the response’s x-request-id header.

string
Cache-Control
string

No-store

x-request-id
string

Always present. A fresh server-generated UUID for this request; incoming IDs are ignored. On errors, this equals the response body’s request_id.

Active user credential required.

Media typeapplication/json

The common JSON body for errors returned by the HTTP application.

object
code
required

Stable machine-readable error code.

string
details
One of:
null
message
required

Safe explanation without internal errors or submitted input values.

string
request_id
required

Matches the response’s x-request-id header.

string
Cache-Control
string

No-store

x-request-id
string

Always present. A fresh server-generated UUID for this request; incoming IDs are ignored. On errors, this equals the response body’s request_id.

The credential does not permit this operation (insufficient_scope).

Media typeapplication/json

The common JSON body for errors returned by the HTTP application.

object
code
required

Stable machine-readable error code.

string
details
One of:
null
message
required

Safe explanation without internal errors or submitted input values.

string
request_id
required

Matches the response’s x-request-id header.

string
Cache-Control
string

No-store

x-request-id
string

Always present. A fresh server-generated UUID for this request; incoming IDs are ignored. On errors, this equals the response body’s request_id.

Run absent or unauthorized; current model-administrator reads are audited.

Media typeapplication/json

The common JSON body for errors returned by the HTTP application.

object
code
required

Stable machine-readable error code.

string
details
One of:
null
message
required

Safe explanation without internal errors or submitted input values.

string
request_id
required

Matches the response’s x-request-id header.

string
Cache-Control
string

No-store

x-request-id
string

Always present. A fresh server-generated UUID for this request; incoming IDs are ignored. On errors, this equals the response body’s request_id.

History_cursor_expired; use X-History-Recovery-Cursor to resume and display the omitted prefix.

Media typeapplication/json

The common JSON body for errors returned by the HTTP application.

object
code
required

Stable machine-readable error code.

string
details
One of:
null
message
required

Safe explanation without internal errors or submitted input values.

string
request_id
required

Matches the response’s x-request-id header.

string
Cache-Control
string

No-store

X-History-Earliest-Position
integer format: int64

Earliest retained position, absent if empty.

X-History-Latest-Position
integer format: int64

Latest ever accepted position.

X-History-Recovery-Cursor
string

Opaque cursor before earliest retained entry, or at latest consumed position if none remain.

x-request-id
string

Always present. A fresh server-generated UUID for this request; incoming IDs are ignored. On errors, this equals the response body’s request_id.

413: the request body exceeds the configured size limit.

Media typeapplication/json

The common JSON body for errors returned by the HTTP application.

object
code
required

Stable machine-readable error code.

string
details
One of:
null
message
required

Safe explanation without internal errors or submitted input values.

string
request_id
required

Matches the response’s x-request-id header.

string
Cache-Control
string

No-store

x-request-id
string

Always present. A fresh server-generated UUID for this request; incoming IDs are ignored. On errors, this equals the response body’s request_id.

History temporarily unavailable.

Media typeapplication/json

The common JSON body for errors returned by the HTTP application.

object
code
required

Stable machine-readable error code.

string
details
One of:
null
message
required

Safe explanation without internal errors or submitted input values.

string
request_id
required

Matches the response’s x-request-id header.

string
Cache-Control
string

No-store

x-request-id
string

Always present. A fresh server-generated UUID for this request; incoming IDs are ignored. On errors, this equals the response body’s request_id.

An HTTP request failed; inspect the stable error code and request ID.

Media typeapplication/json

The common JSON body for errors returned by the HTTP application.

object
code
required

Stable machine-readable error code.

string
details
One of:
null
message
required

Safe explanation without internal errors or submitted input values.

string
request_id
required

Matches the response’s x-request-id header.

string
Cache-Control
string

No-store

x-request-id
string

Always present. A fresh server-generated UUID for this request; incoming IDs are ignored. On errors, this equals the response body’s request_id.

Documentation 205dcb3116ea · public sources 8c70356d340f · built .Download documentation identity.