Back to the API reference

API problem type

Key credit cap required

Code
key_cap_required
Type URI
https://industrydojo.com/developers/problems/key-cap-required
HTTP status
422

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/key-cap-required",
  "title": "Key credit cap required",
  "status": 422,
  "code": "key_cap_required",
  "detail": "While the tenant is on the free plan, every API key needs a total credit cap.",
  "request_id": "req_01JBEXAMPLE422",
  "errors": [
    {
      "pointer": "/body/credit_cap",
      "code": "key_cap_required",
      "detail": "Set credit_cap.total, or omit credit_cap to get the default cap."
    }
  ]
}