Skip to main content
GET
Retrieve a turn

Authorizations

Authorization
string
header
required

A gbr_pat_ access token. Scopes are recorded on the token when it is minted.

Response

Retrieve one turn.

object
string
required

Always turn. Names the shape, so a value can be identified without knowing which call returned it.

Allowed value: "turn"
id
string
required

Ours. Quote it when reporting a problem with this turn.

session_id
string
required

The session this turn belongs to.

status
enum<string>
required

working covers everything before it settles, including a turn parked on a tool result from you — watch the session's requires_action for that, not this field. completed, failed and cancelled are settled; a settled turn never moves again.

Available options:
working,
completed,
failed,
cancelled
created_at
integer
required

Unix milliseconds, when the input was accepted.

started_at
integer | null

When the agent began. Null until it does — a turn is working from the moment it is accepted, including while it waits behind another one, so this is the only field that tells the two apart. queued was removed from status; this description still named it.

completed_at
integer | null

When it settled. Null until it has.

artifacts
enum<string> | null

Whether this turn's artifacts can be fetched yet. Publication runs after the turn settles, so an empty artifact list under pending means not yet, and under ready means the turn produced nothing. partial means publishing finished and left something behind — read artifacts_skipped for what and why.

Available options:
pending,
ready,
partial,
failed,
null
artifacts_skipped
object[]

Files publishing did not take, and why. Empty unless artifacts is partial. A file past the per-file ceiling, or one that did not fit in what the turn had left, is reported here rather than disappearing.

subagent_id
string | null

Always null today; reserved for delegation.

error
object | null

Why it failed, when it did. Null otherwise.