Agent run
Fetch one agent run: its pinned version, status, settled cost, error and the chat session holding its transcript and drafts.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path 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.
Agent run id (UUID), as returned by the start/list runs endpoints.
Response
AgentRun
a Universally Unique Identifier
^[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}$a Universally Unique Identifier
^[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}$a Universally Unique Identifier
^[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 immutable version this run pinned before it started.
^[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}$What started the run: manual (UI), schedule (sweeper), or api (POST runs).
manual, schedule, api, chat, slideshow, dream The schedule that fired this run, when any.
^[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 workflow schedule that owns this run: the schedule that fired it, or the agent's manual runs schedule for direct, API and review-queue runs. Null only for runs created before workflow schedules existed.
^[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 workflow schedule firing that started this run; null for runs not started by a firing.
^[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 campaign the run is attributed to (from its workflow schedule); null for none.
^[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 optimiser decision that picked this run's agent version (optimised selection); null otherwise.
^[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 user-message prompt the run started from.
Per-run overrides applied on top of the version.
queued until the loop starts, running while it drains, then succeeded, failed or cancelled.
queued, running, paused, succeeded, failed, cancelled The chat session hosting the run's transcript and drafts.
^[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 session id of that chat, usable as the inbox deep link (?chatid=); null when the session is gone.
^[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 Langfuse trace id of the run, when tracing was active.
A link to the run's trace in the Langfuse UI; null when the run has no trace or the deployment has no Langfuse project to link to.
Credits the run settled, in decimillicents.
Why the run failed or stopped, when it did.
The structured result the run reported, matching its output contract (or the platform default run report). When resultValidation is invalid this is { raw: string } holding the final text. Null until the run finishes and for free-text runs.
valid: result matches the contract. invalid: it did not match after one repair attempt; the run still succeeded and result.raw holds the text. text: the run had no contract. Null until the run finishes.
valid, invalid, text When the loop started (ISO-8601 UTC).
When the run reached a terminal status (ISO-8601 UTC).
When the run row was created (ISO-8601 UTC).