Back to the API reference

API problem type

Insufficient credits

Code
insufficient_credits
Type URI
https://industrydojo.com/developers/problems/insufficient-credits
HTTP status
402

Errors use RFC 9457 problem details (application/problem+json). Branch on the code, never on the title or detail text.

Example from the contract

Contract example 1 (original API response)
{
  "type": "https://industrydojo.com/developers/problems/insufficient-credits",
  "title": "Insufficient credits",
  "status": 402,
  "code": "insufficient_credits",
  "detail": "The request costs more credits than the tenant can spend. Nothing was reserved or charged.",
  "request_id": "req_01JBEXAMPLE402",
  "required": 5,
  "balance": 2,
  "pricing_version": "2026-10-29.1",
  "plan_state": "credits_exhausted",
  "next_step": {
    "action": "request_credits",
    "url": "https://industrydojo.com/en/account/request-credits"
  }
}
Contract example 2 (original API response)
{
  "type": "https://industrydojo.com/developers/problems/insufficient-credits",
  "title": "Insufficient credits",
  "status": 402,
  "code": "insufficient_credits",
  "detail": "The request costs more credits than the tenant can spend. Nothing was reserved or charged.",
  "request_id": "req_01JBEXAMPLE402B",
  "required": 5,
  "balance": 0,
  "pricing_version": "2026-10-29.1",
  "plan_state": "free_plan_expired",
  "next_step": {
    "action": "credit_request_pending",
    "url": "https://industrydojo.com/en/account/request-credits"
  }
}