Create agent run
POST/api/agents/:agent_id/runs
experimental
Expect changes and instability. Introduced on May 12, 2026. Learn how experimental APIs work.
Execute an agent run. Set stream to true to receive server-sent events; otherwise the response contains the final agent messages.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 408
- 409
- 413
- 429
- 500
- 503
Successful response.
Invalid request (malformed JSON, invalid parameter values, unknown fields).
Missing or invalid authentication token.
Token valid but lacks permission for the requested operation.
Resource not found.
Backend did not respond within the timeout window.
Request conflicts with current state of the resource.
Request body exceeds the maximum allowed size.
Rate limit exceeded. Includes Retry-After header.
Unexpected server-side failure.
Backend temporarily unavailable.