Create an agent run
Creates a new agent run
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
type
The agent type to use for this agent run
business_id
Business to use as context for the run. Shorthand for context_type=business. Required when thread_id is not provided (unless context_type and context_id are given).
context_type
The type of context resource (e.g., “business”)
context_id
The ID of the context resource. Must be provided with context_type.
thread_id
Optional agent thread ID in which to execute the agent run
Response
agent run created within existing agent thread
object
Object type identifier.
id
Unique identifier for the agent run.
created_at
Timestamp when the agent run record was created.
updated_at
Timestamp when the agent run record was last updated.
status
Current lifecycle status of the agent run.
Allowed values:
started_at
Timestamp when the agent run started.
ended_at
Timestamp when the agent run finished.
steps
Top-level execution steps for this run, filtered by run_id. Only included when requesting run details with step state.