Tasks
Get task state
Task state for polling: repeat until done is true. Then reply if state is input-required, otherwise read /output. Saved rows are readable from /output earlier. Use wait=1-50 to long-poll. This is the status_url on every task.
get/task/{task_id}/state
Request
- Base URLhttps://api.autumn.ai
- URLhttps://api.autumn.ai/task/{task_id}/state
- 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
Query parameters
waitinteger
Wait up to 50 seconds for the first status version change (values are clamped to 0-50).
Response
Task state.
Example response
{
"queue": {
"position": 3,
"eta_s": 240
}
}Changes
No recorded changes to this operation across all 1 revision of this API.