Stream a headless agent run (SSE)
Server-Sent Events stream of run progress. Event names: status,
assistant, tool_call, result, error, done. Each event has a
monotonic id; reconnect with the Last-Event-ID header to replay
events after that id (resumable stream). The stream closes after the
terminal done event. Requires the agents:run scope.
Authorizations
API key or personal access token (NEX-1042). Send as
Authorization: Bearer <token>. Token format:
nex_live_…— live API key (server-to-server)nex_test_…— sandbox API keynex_pat_…— personal access token (acts as the issuing user)
Authorization is decided by the key's scopes array, not the
owning user's RBAC role. See POST /api/api-keys to mint a key.
Headers
Replay buffered events emitted after this id (resume after a disconnect).
Response
SSE stream (text/event-stream)
The response is of type string.

