Skip to content

Errors

Errors use a stable envelope:

{
"error": {
"code": "api_key_required",
"message": "Supply a Batch Relay API key using Authorization: Bearer <key>.",
"docs_url": "https://docs.batchrelay.com/errors#api_key_required",
"action_url": "https://app.batchrelay.com/developers"
},
"request_id": "req..."
}
CodeHTTPMeaning
api_key_required403The request did not include a bearer API key.
api_key_invalid403The API key is unknown.
api_key_revoked403The API key was revoked.
api_key_expired403The API key is expired.
scope_required403The key lacks the required scope.
api_account_inactive403The API account is not active.
billing_required402Billing must be active before this request can continue.
invalid_json400The request body is not valid JSON.
invalid_request400Required request fields are missing or invalid.
image_invalid422The image URL could not be read as a supported JPEG, PNG, or WebP image.
image_aspect_ratio_mismatch422The image dimensions do not match the product’s required aspect ratio.
production_not_supported400Production print orders are not enabled yet.
internal_error500Batch Relay could not process the request.

Image errors include a details object with the item index, product, actual dimensions when available, allowed ratios, and validation tolerance.