Run a Sigma agent
Run a Sigma agent and return its reply.
The API is stateless. Include the full conversation in messages on every call. To continue a conversation, append the response output to your messages and send them on the next call. The agent runs with your access against the workbook’s latest published version unless you pass versionTagName. For a guide to calling Sigma agents from the API, see Call Sigma agents with the API.
Usage notes
- Retrieve the workbookId by calling the /v2/workbooks endpoint.
- Retrieve the agentId by calling the /v2/workbooks/{workbookId}/agents endpoint.
- Retrieve the versionTagName by calling the /v2/tags endpoint and using the
namein the response. Omit to run against the latest published version. - If the
workbookVersionchanges between turns, the workbook was published mid-conversation.
Usage scenarios
- Evaluate agent responses: Include the response
runIdin support requests, and use it to correlate runs with your logs.
Authentication
OAuth authentication of the form <token>.
Path parameters
Request
When true, the response is a stream of events instead of a single JSON body. Defaults to false.
Maximum tool-calling steps per turn before the agent stops running. Default 50, max 100.
Caller-defined key/value metadata logged to the ai_usage table in your warehouse.
Response
Object type, always agent.run.
Unix timestamp (in seconds) of when the run began.
Unix timestamp (in seconds) when the run completed.
Details about why the run is incomplete, or null when the run completed normally.
The agent’s answer parsed into the structure requested in responseFormat. Present only when a responseFormat was specified and the output satisfied it.
Present when a responseFormat was requested but the structured output could not be produced or failed schema validation.

