Error catalog
Generated from the x-error-catalog extension of the OpenAPI contract.
API errors use application/problem+json (RFC 9457). The code field is stable and machine-readable: base retry and display logic on code and the HTTP status, not on title or detail. In field validations, errors lists each problem with its pointer and its own code.
Example response
{
"type": "https://docs.miplataforma.com/errors/idempotency_key_reused",
"title": "Idempotency key reused with a different request",
"status": 422,
"code": "idempotency_key_reused",
"requestId": "a1b2c3d4-0000-0000-0000-000000000000"
}
The status may vary between services for the same generic code (for example bad_request); the table shows the usual status. A 503 may carry a code specific to the dependency that failed.
API error codes
| Code | Status | Cause |
|---|---|---|
api_key_inactive | 409 | The key is already revoked or expired. |
api_key_limit_reached | 422 | The tenant reached its active API key limit. |
api_key_not_found | 404 | The API key does not exist. |
artifact_not_available | 422 | The requested artifact cannot be produced for this receipt (for example, the container is disabled by configuration). |
artifact_not_found | 404 | The artifact is not stored for the receipt. |
attachment_mismatch | 422 | The uploaded file does not match the size or the SHA-256 reserved for it. |
attachment_not_found | 422 | A referenced attachmentId does not exist or belongs to another tenant. |
bad_request | 400 | The request is malformed. |
batch_not_cancelable | 409 | The batch is finished and cannot be canceled. |
batch_not_found | 404 | The batch does not exist or belongs to another tenant. |
batch_not_startable | 409 | The batch is finished and cannot be started. |
batch_store_error | 503 | The batch store failed temporarily. |
batch_throttled | 503 | The row outcomes could not be written (throttled); retry. |
body_too_large | 400 | The body of a public verification request exceeds the allowed size. |
concurrent_update | 409 | The endpoint changed concurrently; retry. |
conflict | 409 | The request conflicts with the current state. |
container_limits | 400 | The container exceeds the size or entry limits. |
container_too_large | 413 | The container exceeds the allowed size. |
corrupt_container | 400 | The container is corrupt. |
domain_claimed | 409 | The domain is already registered by another account. |
domain_conflict | 409 | The domain changed concurrently; retry. |
domain_exists | 409 | The domain is already registered by the tenant. |
domain_limit_reached | 422 | The tenant reached its domain limit. |
domain_not_found | 404 | The domain is not registered by the tenant. |
domain_not_owned | 403 | The domain of the sender belongs to another account. |
domain_not_registered | 422 | Register the domain before authorizing its senders. |
domain_not_verified | 403 | The domain of the sender is not verified and active for the tenant. |
duplicate_entry | 400 | The container has duplicate entries. |
endpoint_limit_reached | 422 | The tenant reached webhooks.maxEndpoints. |
evidence_key_missing | 500 | The location of the signed XML of the receipt is not recorded. |
evidence_not_found | 404 | The receipt does not exist or belongs to another tenant. |
evidence_purged | 410 | Custody ended and the artifacts were purged; the body keeps the digests. |
fast_onboarding_unavailable | 422 | Fast Onboarding is not configured on this platform. |
forbidden | 403 | The credential is not allowed to perform the operation. |
idempotency_key_required | 400 | The Idempotency-Key header is required to register a webhook endpoint. |
idempotency_key_reused | 422 | The Idempotency-Key was already used with a different request body. |
idempotency_request_in_progress | 409 | A request with the same Idempotency-Key is still being processed; retry after Retry-After seconds. |
inline_attachments_too_large | 413 | The inline attachments exceed api.inline.maxBytes. |
insufficient_scope | 403 | The API key does not hold any of the scopes the operation requires (x-cem-scopes). |
internal_error | 500 | Unexpected failure; keep the requestId. |
invalid_batch_request | 400 | The request to create the batch is invalid; errors lists the fields. |
invalid_body | 400 | The body is malformed (not a JSON object, not valid Base64 or not readable). |
invalid_code_format | 400 | The verification code is malformed. |
invalid_cursor | 400 | The cursor is not valid; do not build or modify cursors. |
invalid_description | 400 | description is not a string of the allowed length. |
invalid_domain | 422 | The domain name is not valid. |
invalid_environment | 400 | environment must be live or test. |
invalid_events | 400 | events must be a non-empty array of event types. |
invalid_evidence_format | 400 | format is not one of xml, pdf, eml or asice. |
invalid_expiry | 422 | expiresAt must be in the future. |
invalid_grace | 422 | graceDays is outside the allowed range. |
invalid_idempotency_key | 400 | The Idempotency-Key does not match the allowed format. |
invalid_identifier | 400 | An identifier in the path or the body is malformed. |
invalid_json | 400 | The body is not valid JSON. |
invalid_limit | 400 | limit is outside the allowed range. |
invalid_message_options | 400 | The per-message options are invalid. |
invalid_precondition | 400 | If-Match is not an ETag returned by this API. |
invalid_query | 400 | The query parameters of a batch request are invalid. |
invalid_query_parameter | 400 | A query parameter is invalid; errors names it. |
invalid_request | 400 | The body is not a JSON object or a required structure is missing. |
invalid_sender | 422 | The sender is not a valid e-mail address. |
invalid_sha256 | 400 | sha256 is not 64 hexadecimal characters. |
invalid_status | 400 | status must be ACTIVE or DISABLED. |
invalid_track_id | 400 | trackId is malformed. |
invalid_url | 400 | url is missing or too long. |
invalid_verification_code | 403 | The verification code does not match any receipt of the message. |
invalid_verification_token | 400 | The sender verification token is missing or invalid. |
last_active_key | 409 | The last active API key cannot be revoked; rotate it instead. |
legal_hold_disabled | 403 | The plan of the tenant does not allow legal holds. |
manifest_mismatch | 422 | The uploaded manifest does not match the declared size and SHA-256. |
manifest_not_uploaded | 422 | The manifest has not been uploaded yet. |
manifest_too_large | 413 | The declared manifest exceeds the allowed size; split it into several batches. |
mdn_not_found | 404 | The inbound MDN does not exist or belongs to another tenant. |
message_not_found | 404 | The message does not exist or belongs to another tenant. |
message_too_large | 413 | The message exceeds api.message.maxBytes. |
method_not_allowed | 405 | The HTTP method is not allowed for the route; Allow lists the valid ones. |
missing_body | 400 | The request has no body, or the message has neither html nor text. |
missing_idempotency_key | 400 | The Idempotency-Key header is required on this POST. |
not_asic_container | 415 | The payload is not a ZIP archive (ASiC-E container). |
not_found | 404 | The resource does not exist or belongs to another tenant. |
payload_too_large | 413 | The body exceeds the allowed size. |
plan_exists | 409 | The plan already exists. |
plan_not_found | 404 | The plan does not exist. |
plans_read_only | 501 | This deployment has no plan store; plans are read-only. |
platform_admin_required | 403 | Only platform administrators can do this. |
quota_store_error | 503 | The quota counters could not be updated temporarily. |
rate_limit_exceeded | 429 | The tenant exceeded its request rate; retry after Retry-After seconds. |
rate_limited | 429 | The public verifier rate limit was exceeded; retry after Retry-After seconds. |
recipient_not_found | 404 | The recipient does not exist in the message. |
render_unavailable | 503 | The renderer or its keys are temporarily unavailable; retry after Retry-After seconds. |
reserved_domain | 422 | Platform domains cannot be registered by a tenant. |
route_not_found | 404 | The route is not served by the API. |
scope_missing | 403 | The credential lacks the scope the operation requires (for administration, platform:admin). |
scope_not_grantable | 403 | The scope cannot be granted through the API (platform:admin is provisioned out of band) or exceeds what the issuing key holds. |
sender_disabled | 403 | The sender address is disabled. |
sender_limit_reached | 422 | The tenant reached its sender limit. |
sender_not_authorized | 403 | The sender address is disabled or not allowed for the tenant under its sender policy. |
sender_not_found | 404 | The sender is not registered. |
sender_not_verified | 403 | The sender mailbox is not verified (Fast Onboarding); verificationSent tells whether a verification e-mail was just sent. |
service_unavailable | 503 | A dependency is temporarily unavailable; retry after Retry-After seconds when present. |
ses_error | 502 | The mail service rejected the operation. |
ses_unavailable | 503 | The mail service is temporarily unavailable; retry after Retry-After seconds. |
settings_conflict | 409 | expectedVersion or If-Match does not match the current version. |
settings_rejected | 422 | The settings were rejected by the catalog validation (type, range, ceiling or infrastructure parameter). |
storage_unavailable | 503 | Evidence storage is temporarily unavailable; retry after Retry-After seconds. |
suppression_not_found | 404 | The suppression entry does not exist for the tenant. |
tenant_conflict | 409 | The tenant changed concurrently; retry. |
tenant_deleted | 409 | The tenant is deleted; a deleted tenant cannot be restored. |
tenant_exists | 409 | The tenant already exists. |
tenant_inactive | 403 | The tenant is not active. |
tenant_mismatch | 403 | A tenant credential can only access the settings of its own tenant. |
tenant_not_active | 403 | The tenant is not active; its settings cannot be changed. |
tenant_not_found | 404 | The tenant does not exist. |
too_many_metadata_entries | 422 | The message has more metadata entries than allowed (one slot is reserved under Fast Onboarding). |
too_many_recipients | 422 | The total of recipients exceeds api.recipients.max. |
unauthorized | 401 | The request carries no valid authorization context (missing or invalid API key). |
unknown_scope | 422 | The request names a scope that does not exist. |
unprocessable_entity | 422 | The request is well formed but cannot be accepted. |
unsafe_entry | 400 | The container has an entry with an unsafe name. |
unsupported_compression | 400 | The container uses encryption or an unsupported compression. |
unsupported_media | 400 | The Content-Type is not application/json (control plane). |
unsupported_media_type | 415 | The Content-Type is not supported; send application/json (or application/vnd.etsi.asic-e+zip for containers). |
url_blocked | 422 | The URL is not allowed (not https, credentials in the URL or a non-public address). |
url_unresolvable | 422 | The host of the URL does not resolve. |
validation_error | 400 | The body failed validation; errors lists each offending field. |
validation_failed | 422 | The body is well formed but a field is not acceptable; errors lists each offending field. |
verification_token_expired | 403 | The sender verification link has expired. |
verification_unavailable | 503 | The receipt keyring cannot be read; no detail is granted (fail closed). Try again later. |
whole_domain_requires_verified_domain | 422 | WHOLE_DOMAIN needs at least one verified (ACTIVE) domain. |
workflow_start_error | 503 | The processing workflow could not be started; retry. |
workflow_stop_error | 503 | The processing workflow could not be stopped; retry. |
zip_bomb | 400 | The compression ratio of the container is excessive. |
Field validation codes (errors[].code)
| Code | Cause |
|---|---|
above_maximum | The setting value is above the maximum of the catalog. |
ambiguous_attachment | An attachment must be either inline or uploaded, not both. |
below_minimum | The setting value is below the minimum of the catalog. |
duplicate_list_item | The setting list has a repeated item. |
empty_item | A list item of the setting is empty. |
empty_string | The setting value must not be empty. |
invalid | The value is not valid. |
invalid_base64 | The contentBase64 value is empty or not valid Base64. |
invalid_client_track_id | clientTrackId must be 1 to 128 characters without control characters. |
invalid_digest | The SHA-256 digest is malformed. |
invalid_duration | The setting value is not a valid duration. |
invalid_email | The address is not a valid e-mail address. |
invalid_email_address | The value is not a valid e-mail address. |
invalid_enum | The value is not one of the allowed values. |
invalid_filename | The file name is not valid (1 to 255 characters). |
invalid_identifier | The value is not a valid identifier. |
invalid_integer | The value is not an integer. |
invalid_list_item | A list item of the setting is not valid. |
invalid_media_type | The media type is not valid. |
invalid_metadata_key | Metadata keys must be 1 to 64 characters. |
invalid_metadata_value | Metadata values must be strings of up to 512 characters. |
invalid_range | The range is inverted (from must be earlier than to). |
invalid_subject | The subject is not valid (1 to 998 characters, no control characters). |
invalid_timestamp | The value is not an RFC 3339 instant. |
invalid_type | The value has the wrong JSON type. |
invalid_value | The value is outside the accepted values. |
non_finite | The setting value is not a finite number. |
out_of_range | A number or a list length is outside the allowed range. |
pattern_mismatch | The setting value does not match the required pattern. |
required | A required property is missing. |
too_few_items | The setting list has fewer items than allowed. |
too_long | The text exceeds the allowed length. |
too_many_items | The setting list has more items than allowed. |
unknown_field | The property is not part of the contract (requests are strict). |
unknown_property | The property is not part of the contract (requests are strict). |
Recipient portal codes
The recipient portal (/portal/v1/*) does not use application/problem+json: it answers an {error, message} object and error takes one of these codes.
| Code | Status | Cause |
|---|---|---|
body_too_large | 413 | The body exceeds the allowed size. |
confirmation_not_required | 409 | The message does not require confirmation. |
confirmation_required | 403 | Confirm receipt before downloading. |
cross_origin | 403 | The request does not come from the portal origin. |
expired | 410 | The access period of the link or session has ended. |
internal_error | 500 | Unexpected failure. |
invalid_body | 400 | The body is malformed or a required field (handle, session, index) is missing or invalid. |
invalid_code | 400 | The code is not made of 8 digits. |
invalid_code | 403 | The code is wrong or has expired; request a new one. |
invalid_json | 400 | The body is not valid JSON. |
method_not_allowed | 405 | Only POST is accepted. |
missing_body | 400 | A JSON body is required. |
not_acknowledged | 400 | Explicit confirmation is required (acknowledged: true). |
not_found | 404 | The link or session is forged, malformed or unknown; every case answers the same. |
otp_not_required | 400 | This message does not use a one-time code. |
otp_unavailable | 409 | A code cannot be sent for this message (no registered address or mail service). |
rate_limited | 429 | Too many requests; retry after Retry-After seconds. |
unavailable | 503 | Temporarily unavailable; retry after Retry-After seconds. |
unsupported_media_type | 415 | The Content-Type must be application/json. |