Skip to main content
There are two kinds of error:
  • Request errors. The API refuses the HTTP request. The status code is 4xx or 5xx and the body holds error.
  • Job errors. The API accepted the job, but the job failed later. The poll returns 200 with data.status set to failed and data.error set.

Error body

Every response has an X-Request-Id header with the same value as requestId. Include it when you contact support.

Request errors

Job errors

The service can return other codes. Treat an unknown code as a failed job.

Retry safely

  • Retry 429 and 503 after the number of seconds in the Retry-After header. Without the header, wait at least one second.
  • Use exponential backoff for repeated failures.
  • Do not retry 400, 401 or 413 without a change to the request.
  • A retry of POST /v1/jobs makes a new job. Cancel a job that you no longer need.