Create run from a request
Requires an authenticated tenant principal. Generated from the production route registered in `internal/features/agentrun/inbound/http.go`.
/v1/runsRequires an authenticated tenant principal. Generated from the production route registered in internal/features/agentrun/inbound/http.go.
Authorization
bearerAuth Engine-issued API key or tenant-signed JWT.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
A one-off task in the caller's own words. The engine finds or makes a hidden personal runner for model and tools (one per person, model and tool set, reused by later requests of the same shape) and starts the run exactly as POST /v1/agents/{id}/runs would: the runner must be active and hold no knowledge, the message passes its input guardrail, the run is owner-only. The 202 carries run_id, status and the runner's agent_id. model is required because the engine has no organization default model.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/runs" \ -H "Content-Type: application/json" \ -d '{ "message": "string", "model": "string" }'{}