API problem type
Key credit cap exceeded
- Code
- key_credit_cap_exceeded
- Type URI
- https://industrydojo.com/developers/problems/key-credit-cap-exceeded
- 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
{
"type": "https://industrydojo.com/developers/problems/key-credit-cap-exceeded",
"title": "Key credit cap exceeded",
"status": 402,
"code": "key_credit_cap_exceeded",
"detail": "The request would exceed the API key's daily credit cap. Nothing was reserved or charged.",
"request_id": "req_01JBEXAMPLE402D",
"required": 5,
"pricing_version": "2026-10-29.1",
"cap_kind": "per_day",
"cap": 50,
"used": 48,
"resets_at": "2026-11-04T00:00:00Z",
"next_step": {
"action": "wait_for_reset",
"url": "https://industrydojo.com/en/account/api-keys"
}
}{
"type": "https://industrydojo.com/developers/problems/key-credit-cap-exceeded",
"title": "Key credit cap exceeded",
"status": 402,
"code": "key_credit_cap_exceeded",
"detail": "The request would exceed the API key's total credit cap. Nothing was reserved or charged.",
"request_id": "req_01JBEXAMPLE402E",
"required": 5,
"pricing_version": "2026-10-29.1",
"cap_kind": "total",
"cap": 250,
"used": 248,
"next_step": {
"action": "raise_key_cap",
"url": "https://industrydojo.com/en/account/api-keys"
}
}