Start agent run
Start one unattended run of the agent’s current version. The run row pins the version before the loop starts and returns 202 immediately; the run drains server-side under the version’s tool policy, publish mode and per-run credit ceiling, billed to the team like an interactive turn. Poll the get run endpoint for status and cost. Send an Idempotency-Key and reuse it with the same request after a lost response to get the run it already started instead of a second one.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Reuse this key with the same request after a lost response. The run it admitted is returned instead of starting another.
1 - 200Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Managed agent id (UUID), as returned by the list/create agents endpoints.
Body
The user message the run starts from. Omit to run the version's instructions alone.
1 - 20000Per-run overrides applied on top of the pinned version: a different curated model, a publish mode and/or a shorter time limit for this run only. Omit to run the version as published.
Response
Success
The agent_runs row; poll GET runs/{runId} for status and cost.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$The version the run pinned.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$The chat session hosting the run.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$The client-facing session id the run streams under (agent session routes).
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$