Skip to main content
The API returns a structured error for an expected request failure. Use code in your application logic. Use message to correct the request. Include requestId if you contact support.

Handle errors

  1. Check the error code and message.
  2. Correct the request or the project configuration.
  3. Retry only when the operation is safe to retry. Reuse the same idempotency key for a repeated usage or run request.
  4. If the problem continues, contact support and include the full error response and requestId.

A denial is not an API error

A valid access.check or usage.consume request can return HTTP 200 with allowed: false. Inspect rejectionReason before starting paid work. runs.consume and runs.settle use accepted and reason instead. HTTP 429 means API rate limiting; your application can choose its own HTTP status when it handles a commercial denial.