Get task

One task in full: what was asked for, what came back, what it cost. Owner-only, so it takes an API key or an OAuth token rather than a public access token.

GET/tasks/{id}
AuthAPI keyorOAuth tokenHow to send it

The whole task: the request as accepted, the result, the cost, and any errors. It takes an API key, not a public access token, and it reads the database, so use it for failed tasks, audits, and dashboards rather than in a polling loop. Poll status instead.

Path parameters#

idstringrequired

The task to fetch.

e.g. "tsk_01KE7XWWEQ4MCGWKBQKJ1G47RP"

Response#

200Task returned

dataobjectrequired

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.