v1
latestOpenAPI 3.1.02026-08-0458114534.0 KBAgent
Create a run
Create an asynchronous Agent run. By default, the API returns the run object immediately. Set Accept: text/event-stream to stream run lifecycle events until the run reaches a terminal status.
post/agent/runs
Headers
Accept'application/json' | 'text/event-stream'
Set to text/event-stream to receive server-sent events.
Set to text/event-stream to receive server-sent events.
Exa-Betastring
Comma-separated beta feature tokens for opting into experimental features.
Comma-separated beta feature tokens for opting into experimental features.
Request body
Example request
{
"query": "What are the most important AI infrastructure funding rounds announced this week?",
"systemPrompt": "Prefer official sources and avoid duplicate results.",
"previousRunId": "agent_run_01j7x9v0m2n4p6q8r0s2t4v6w8",
"metadata": {
"slack_channel_id": "C123ABC",
"slack_thread_id": "1745444400.123456",
"user_id": "U123ABC"
}
}Response
Agent run created