Sandboxes

Read command output

Reads ordered stdout and stderr frames after a sequence cursor. Repeat with next_sequence to stream without losing output.

get/v1/sandboxes/{id}/execs/{exec_id}/stream

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idstring required
exec_idstring required

Query parameters

afterinteger
limitinteger
waitboolean

When true, wait up to 30 seconds for output or terminal state.

Response

Success

next_sequenceinteger required

Cursor for the next read.

last_sequenceinteger required
final_sequenceinteger nullable
state'queued' | 'dispatching' | 'running' | 'completed' | 'failed' | 'cancelled' | 'lost' required
doneboolean required

True when the execution is terminal.

completeboolean required

True when the page reaches the final output sequence without a gap.

Changes

No recorded changes to this operation across all 70 revisions of this API.