API Errors

HTTP statuses and stable error codes returned by the Business API

Errors use Content-Type: application/problem+json:

{
  "type": "about:blank",
  "title": "Template not found",
  "status": 404,
  "detail": "The template was not found or is not accessible with this API key.",
  "code": "TEMPLATE_NOT_FOUND",
  "requestId": "6d70b49e-..."
}
HTTPCodeMeaning
400INVALID_JSONThe body is not valid JSON
400INVALID_REQUESTA required field is missing or invalid
401AUTHORIZATION_REQUIREDThe Authorization header is missing
401AUTHORIZATION_INVALIDThe header does not use the Bearer scheme
401API_KEY_INVALIDThe key is invalid or inactive
402INSUFFICIENT_CREDITSThe account does not have enough credits
403BUSINESS_PLAN_REQUIREDThe account has no active Business subscription
403SUBSCRIPTION_EXPIREDThe Business subscription period ended
404TEMPLATE_NOT_FOUNDThe template does not exist or belongs to another account
422TEMPLATE_INVALIDThe saved template cannot be rendered
429RATE_LIMIT_EXCEEDEDThe key exceeded its per-minute limit
500PDF_GENERATION_FAILEDRendering failed after validation
500INTERNAL_ERRORAn unexpected server error occurred
503SERVICE_UNAVAILABLEAuthentication, subscription, or template storage is unavailable
503BILLING_SERVICE_UNAVAILABLECredit lookup or consumption is unavailable

Include the requestId when contacting technical support. Internal details and customer variables are not returned in error responses.

For retry guidance, see Limits and Billing.