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
400INVALID_LAYOUTThe layout shape, fields, values, or start slot are invalid
400IDEMPOTENCY_KEY_INVALIDThe idempotency key is empty, too long, or contains spaces
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
403API_TRIAL_EXPIREDThe one-time API trial period ended
403API_TRIAL_LIMIT_REACHEDAll 10 trial requests have been used
404TEMPLATE_NOT_FOUNDThe template does not exist or belongs to another account
404LAYOUT_PRESET_NOT_FOUNDThe requested Avery or APLI Print Layout preset does not exist
409IDEMPOTENCY_KEY_REUSEDThe same key was used with a different request body
409IDEMPOTENCY_REQUEST_IN_PROGRESSThe first request using this key has not completed
409IDEMPOTENCY_REPLAY_UNAVAILABLEThe template changed after the original successful request
413REQUEST_TOO_LARGEThe JSON request body exceeds 1 MB
422TEMPLATE_INVALIDThe saved template cannot be rendered
422API_TRIAL_SINGLE_PAGE_REQUIREDThe trial request would generate more than one page
422BATCH_LIMIT_EXCEEDEDThe request exceeds the record, output-item, or page limit
422LAYOUT_SIZE_MISMATCHThe template dimensions do not match the selected preset
422LAYOUT_OVERFLOWThe manual grid, margins, and gaps do not fit the selected paper
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.