insufficient_credits

The team behind the key has too few credits for this request.

Response

Every failure uses this envelope. credits_charged is 0. The message below is the default text for this code. Live messages can change, so branch on error.code.

HTTP 402Sample
{
  "ok": false,
  "error": {
    "code": "insufficient_credits",
    "message": "The team behind the key has too few credits for this request.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_0123456789abcdef01234567"
}

error.retryable is false. The same request fails the same way.

What to do

  • New accounts get 100 credits on signup, no card. Packs and plans are on pricing. See credits.
  • A 402 is not stored against an Idempotency-Key, so the same key can be sent again after the team has credits.

The response header x-request-id matches request_id. The full list is on errors.