Tasks
Execute a task
Run another turn that produces output from the current spec. Not needed after a normal start: POST /task and POST /task/start already plan and execute. Use it when a turn ended without rows (state: completed with progress.rows: 0, or outcome: partial). Returns 409 already_complete when the task already finished with rows and no message is sent. Set wait to true for legacy blocking behavior; otherwise returns immediately.
post/task/{task_id}/execute
Request
- Base URLhttps://api.autumn.ai
- URLhttps://api.autumn.ai/task/{task_id}/execute
- Auth
- API key in header X-API-Key
- or HTTP bearer
Path parameters
task_idstring required
The task_id returned by POST /task or POST /task/start.
Example:8fab6f34
Request body
Response
Turn finished (wait: true) or accepted for background execution.
Example response
{
"task_id": "8fab6f34",
"name": "Series A AI security companies",
"status": "execute",
"phase": "execute",
"activity": "executing",
"output_count": 10,
"poll_after_s": 5,
"status_url": "/task/8fab6f34/state",
"task_url": "/task/8fab6f34",
"output_url": "/task/8fab6f34/output",
"stream_url": "/task/8fab6f34/stream",
"queue": {
"position": 3,
"eta_s": 240
}
}Changes
No recorded changes to this operation across all 1 revision of this API.