Authentication
Requires anx-api-key header. See Authentication.
Query parameters
Both endpoints accept the same parameters:Return only events with a
sequence greater than this. Pass the previous
response’s last_sequence to page forward (snapshot) or resume (stream). Omit
to start from the beginning.Verbosity:
user(default) — prose, status, preview, the agent’s questions, completion, and errors.tools— the above plus tool calls, tool results, and task IDs.all— everything, including the agent’s thinking and internal prepared inputs.
Snapshot
200 OK
The event’s stable cross-run ordinal. Use the response’s
last_sequence as the
next after.The public event type — one of
message, thinking, status, tool_call,
tool_result, task, request_input, prepared, preview, completed,
error. Which types appear depends on include.The event payload, kept intact so you can render tool calls, previews, and
prompts.
ISO 8601 timestamp.
The highest sequence in this page — pass it as
after to fetch what’s next.Live stream (SSE)
event: <type> + data: <json>:
event: done carrying the last sequence. It also
closes after a time budget (~5 minutes) — when it does, reconnect with
?after=<last_sequence> to continue exactly where you left off. Watch for an
event: error message, which signals a stream-side error before close.
Errors
| Status | Meaning |
|---|---|
401 | API key missing or invalid. |
404 | The migration isn’t in your account. |
429 | Rate limit hit — back off and retry. |
500 | Server error. |
Next
- Poll a run — the per-run status and report.
- Get the preview — the structured output.