Check a task
What became of anything that answered 202.
2 min read
All plans
GET
/api/v1/tasks/{id}
One place answers for every request that returns a task_id, rather than a different poll for each kind of work.
STATUSWHAT IT MEANSWHAT TO DO
pending
Queued, not started.
Check again shortly.
running
Being worked on now.
Check again shortly.
completed
Done. output carries the result.
Read output.
failed
error says what went wrong, in a sentence.
Show the sentence; it is written for a person.
GOOD TO KNOW
Polling works, but webhooks are better for anything that takes minutes — you get told rather than asking.