/v1/agent-runtime/executeRun AgentRun Agent.
Use this to create or start the operation. Supply the request body below when it is required.
A successful response returns the resource data or operation status defined below.
Run one bounded Agent Runtime task using the authenticated principal and its existing permissions. Start new work with an agent configuration or continue prior state with an existing agent id.
Request body Required
Send the fields defined below in the request body.
application/json{
"agent": {
"name": "Ops Agent",
"model": "openai/gpt-4.1-mini",
"instructions": "Investigate and summarize."
},
"input": {
"messages": [
{
"role": "user",
"content": "Why did the latest job fail?"
}
],
"files": [],
"variables": {}
},
"limits": {
"max_steps": 6,
"timeout_seconds": 120,
"max_cost_usd": 1
}
}Responses
401Authentication is missing or invalid.
application/json{
"detail": {
"error": "API key is required",
"code": "UNAUTHORIZED"
}
}422Request validation failed.
application/json{
"detail": [
{
"loc": [
"body"
],
"msg": "Request body is invalid",
"type": "validation_error"
}
]
}429Rate limit exceeded.
application/json{
"detail": {
"error": "Rate limit exceeded. Please try again later.",
"rate_limited": true,
"retry_after_seconds": 60,
"rate_limit_reset_at": "2026-09-27T15:01:00Z"
}
}500Unexpected server error.
application/json{
"detail": {
"error": "Internal server error",
"request_id": "req_example"
}
}