Saltar al contenido principal

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​

CodeStatusCause
api_key_inactive409The key is already revoked or expired.
api_key_limit_reached422The tenant reached its active API key limit.
api_key_not_found404The API key does not exist.
artifact_not_available422The requested artifact cannot be produced for this receipt (for example, the container is disabled by configuration).
artifact_not_found404The artifact is not stored for the receipt.
attachment_mismatch422The uploaded file does not match the size or the SHA-256 reserved for it.
attachment_not_found422A referenced attachmentId does not exist or belongs to another tenant.
bad_request400The request is malformed.
batch_not_cancelable409The batch is finished and cannot be canceled.
batch_not_found404The batch does not exist or belongs to another tenant.
batch_not_startable409The batch is finished and cannot be started.
batch_store_error503The batch store failed temporarily.
batch_throttled503The row outcomes could not be written (throttled); retry.
body_too_large400The body of a public verification request exceeds the allowed size.
concurrent_update409The endpoint changed concurrently; retry.
conflict409The request conflicts with the current state.
container_limits400The container exceeds the size or entry limits.
container_too_large413The container exceeds the allowed size.
corrupt_container400The container is corrupt.
domain_claimed409The domain is already registered by another account.
domain_conflict409The domain changed concurrently; retry.
domain_exists409The domain is already registered by the tenant.
domain_limit_reached422The tenant reached its domain limit.
domain_not_found404The domain is not registered by the tenant.
domain_not_owned403The domain of the sender belongs to another account.
domain_not_registered422Register the domain before authorizing its senders.
domain_not_verified403The domain of the sender is not verified and active for the tenant.
duplicate_entry400The container has duplicate entries.
endpoint_limit_reached422The tenant reached webhooks.maxEndpoints.
evidence_key_missing500The location of the signed XML of the receipt is not recorded.
evidence_not_found404The receipt does not exist or belongs to another tenant.
evidence_purged410Custody ended and the artifacts were purged; the body keeps the digests.
fast_onboarding_unavailable422Fast Onboarding is not configured on this platform.
forbidden403The credential is not allowed to perform the operation.
idempotency_key_required400The Idempotency-Key header is required to register a webhook endpoint.
idempotency_key_reused422The Idempotency-Key was already used with a different request body.
idempotency_request_in_progress409A request with the same Idempotency-Key is still being processed; retry after Retry-After seconds.
inline_attachments_too_large413The inline attachments exceed api.inline.maxBytes.
insufficient_scope403The API key does not hold any of the scopes the operation requires (x-cem-scopes).
internal_error500Unexpected failure; keep the requestId.
invalid_batch_request400The request to create the batch is invalid; errors lists the fields.
invalid_body400The body is malformed (not a JSON object, not valid Base64 or not readable).
invalid_code_format400The verification code is malformed.
invalid_cursor400The cursor is not valid; do not build or modify cursors.
invalid_description400description is not a string of the allowed length.
invalid_domain422The domain name is not valid.
invalid_environment400environment must be live or test.
invalid_events400events must be a non-empty array of event types.
invalid_evidence_format400format is not one of xml, pdf, eml or asice.
invalid_expiry422expiresAt must be in the future.
invalid_grace422graceDays is outside the allowed range.
invalid_idempotency_key400The Idempotency-Key does not match the allowed format.
invalid_identifier400An identifier in the path or the body is malformed.
invalid_json400The body is not valid JSON.
invalid_limit400limit is outside the allowed range.
invalid_message_options400The per-message options are invalid.
invalid_precondition400If-Match is not an ETag returned by this API.
invalid_query400The query parameters of a batch request are invalid.
invalid_query_parameter400A query parameter is invalid; errors names it.
invalid_request400The body is not a JSON object or a required structure is missing.
invalid_sender422The sender is not a valid e-mail address.
invalid_sha256400sha256 is not 64 hexadecimal characters.
invalid_status400status must be ACTIVE or DISABLED.
invalid_track_id400trackId is malformed.
invalid_url400url is missing or too long.
invalid_verification_code403The verification code does not match any receipt of the message.
invalid_verification_token400The sender verification token is missing or invalid.
last_active_key409The last active API key cannot be revoked; rotate it instead.
legal_hold_disabled403The plan of the tenant does not allow legal holds.
manifest_mismatch422The uploaded manifest does not match the declared size and SHA-256.
manifest_not_uploaded422The manifest has not been uploaded yet.
manifest_too_large413The declared manifest exceeds the allowed size; split it into several batches.
mdn_not_found404The inbound MDN does not exist or belongs to another tenant.
message_not_found404The message does not exist or belongs to another tenant.
message_too_large413The message exceeds api.message.maxBytes.
method_not_allowed405The HTTP method is not allowed for the route; Allow lists the valid ones.
missing_body400The request has no body, or the message has neither html nor text.
missing_idempotency_key400The Idempotency-Key header is required on this POST.
not_asic_container415The payload is not a ZIP archive (ASiC-E container).
not_found404The resource does not exist or belongs to another tenant.
payload_too_large413The body exceeds the allowed size.
plan_exists409The plan already exists.
plan_not_found404The plan does not exist.
plans_read_only501This deployment has no plan store; plans are read-only.
platform_admin_required403Only platform administrators can do this.
quota_store_error503The quota counters could not be updated temporarily.
rate_limit_exceeded429The tenant exceeded its request rate; retry after Retry-After seconds.
rate_limited429The public verifier rate limit was exceeded; retry after Retry-After seconds.
recipient_not_found404The recipient does not exist in the message.
render_unavailable503The renderer or its keys are temporarily unavailable; retry after Retry-After seconds.
reserved_domain422Platform domains cannot be registered by a tenant.
route_not_found404The route is not served by the API.
scope_missing403The credential lacks the scope the operation requires (for administration, platform:admin).
scope_not_grantable403The scope cannot be granted through the API (platform:admin is provisioned out of band) or exceeds what the issuing key holds.
sender_disabled403The sender address is disabled.
sender_limit_reached422The tenant reached its sender limit.
sender_not_authorized403The sender address is disabled or not allowed for the tenant under its sender policy.
sender_not_found404The sender is not registered.
sender_not_verified403The sender mailbox is not verified (Fast Onboarding); verificationSent tells whether a verification e-mail was just sent.
service_unavailable503A dependency is temporarily unavailable; retry after Retry-After seconds when present.
ses_error502The mail service rejected the operation.
ses_unavailable503The mail service is temporarily unavailable; retry after Retry-After seconds.
settings_conflict409expectedVersion or If-Match does not match the current version.
settings_rejected422The settings were rejected by the catalog validation (type, range, ceiling or infrastructure parameter).
storage_unavailable503Evidence storage is temporarily unavailable; retry after Retry-After seconds.
suppression_not_found404The suppression entry does not exist for the tenant.
tenant_conflict409The tenant changed concurrently; retry.
tenant_deleted409The tenant is deleted; a deleted tenant cannot be restored.
tenant_exists409The tenant already exists.
tenant_inactive403The tenant is not active.
tenant_mismatch403A tenant credential can only access the settings of its own tenant.
tenant_not_active403The tenant is not active; its settings cannot be changed.
tenant_not_found404The tenant does not exist.
too_many_metadata_entries422The message has more metadata entries than allowed (one slot is reserved under Fast Onboarding).
too_many_recipients422The total of recipients exceeds api.recipients.max.
unauthorized401The request carries no valid authorization context (missing or invalid API key).
unknown_scope422The request names a scope that does not exist.
unprocessable_entity422The request is well formed but cannot be accepted.
unsafe_entry400The container has an entry with an unsafe name.
unsupported_compression400The container uses encryption or an unsupported compression.
unsupported_media400The Content-Type is not application/json (control plane).
unsupported_media_type415The Content-Type is not supported; send application/json (or application/vnd.etsi.asic-e+zip for containers).
url_blocked422The URL is not allowed (not https, credentials in the URL or a non-public address).
url_unresolvable422The host of the URL does not resolve.
validation_error400The body failed validation; errors lists each offending field.
validation_failed422The body is well formed but a field is not acceptable; errors lists each offending field.
verification_token_expired403The sender verification link has expired.
verification_unavailable503The receipt keyring cannot be read; no detail is granted (fail closed). Try again later.
whole_domain_requires_verified_domain422WHOLE_DOMAIN needs at least one verified (ACTIVE) domain.
workflow_start_error503The processing workflow could not be started; retry.
workflow_stop_error503The processing workflow could not be stopped; retry.
zip_bomb400The compression ratio of the container is excessive.

Field validation codes (errors[].code)​

CodeCause
above_maximumThe setting value is above the maximum of the catalog.
ambiguous_attachmentAn attachment must be either inline or uploaded, not both.
below_minimumThe setting value is below the minimum of the catalog.
duplicate_list_itemThe setting list has a repeated item.
empty_itemA list item of the setting is empty.
empty_stringThe setting value must not be empty.
invalidThe value is not valid.
invalid_base64The contentBase64 value is empty or not valid Base64.
invalid_client_track_idclientTrackId must be 1 to 128 characters without control characters.
invalid_digestThe SHA-256 digest is malformed.
invalid_durationThe setting value is not a valid duration.
invalid_emailThe address is not a valid e-mail address.
invalid_email_addressThe value is not a valid e-mail address.
invalid_enumThe value is not one of the allowed values.
invalid_filenameThe file name is not valid (1 to 255 characters).
invalid_identifierThe value is not a valid identifier.
invalid_integerThe value is not an integer.
invalid_list_itemA list item of the setting is not valid.
invalid_media_typeThe media type is not valid.
invalid_metadata_keyMetadata keys must be 1 to 64 characters.
invalid_metadata_valueMetadata values must be strings of up to 512 characters.
invalid_rangeThe range is inverted (from must be earlier than to).
invalid_subjectThe subject is not valid (1 to 998 characters, no control characters).
invalid_timestampThe value is not an RFC 3339 instant.
invalid_typeThe value has the wrong JSON type.
invalid_valueThe value is outside the accepted values.
non_finiteThe setting value is not a finite number.
out_of_rangeA number or a list length is outside the allowed range.
pattern_mismatchThe setting value does not match the required pattern.
requiredA required property is missing.
too_few_itemsThe setting list has fewer items than allowed.
too_longThe text exceeds the allowed length.
too_many_itemsThe setting list has more items than allowed.
unknown_fieldThe property is not part of the contract (requests are strict).
unknown_propertyThe 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.

CodeStatusCause
body_too_large413The body exceeds the allowed size.
confirmation_not_required409The message does not require confirmation.
confirmation_required403Confirm receipt before downloading.
cross_origin403The request does not come from the portal origin.
expired410The access period of the link or session has ended.
internal_error500Unexpected failure.
invalid_body400The body is malformed or a required field (handle, session, index) is missing or invalid.
invalid_code400The code is not made of 8 digits.
invalid_code403The code is wrong or has expired; request a new one.
invalid_json400The body is not valid JSON.
method_not_allowed405Only POST is accepted.
missing_body400A JSON body is required.
not_acknowledged400Explicit confirmation is required (acknowledged: true).
not_found404The link or session is forged, malformed or unknown; every case answers the same.
otp_not_required400This message does not use a one-time code.
otp_unavailable409A code cannot be sent for this message (no registered address or mail service).
rate_limited429Too many requests; retry after Retry-After seconds.
unavailable503Temporarily unavailable; retry after Retry-After seconds.
unsupported_media_type415The Content-Type must be application/json.