The endpoint to poll. It returns the status and nothing else, from a cache, and it accepts the task's public access token, so browser code can follow a task without an API key.
Poll for results has a loop with backoff. A webhook avoids polling entirely.
Path parameters#
idstringrequiredThe task to poll.
e.g. "tsk_01KE7XWWEQ4MCGWKBQKJ1G47RP"
Response#
200Task status returned
dataobjectrequiredstatusstringrequired"completed""failed""pending"
Errors#
A failed call names what went wrong in code, with a sentence in message. The codes, which of them are worth retrying, and how to read a validation failure are on Errors.