About this page · Updated 2026-11-27 23:30 UTC
What this page is: Every error code the Motorical transactional email API and Public API can return, what it means and what to do. One error shape, a stable code, and a request id on every response.
How far to trust this page: the build checked 61 names, paths, tools, scopes and error codes against the real product (0 do not match). Not yet reviewed claim by claim.
Updated 2026-11-27 23:30 UTCLatest change: Communications API: request ids, complete error answers, standard deprecation headerRecently updated pages
Errors
Every error from the HTTP Send API (POST /v1/send), the Public API (/api/public/v1), the Developer Sandbox API (/api/developer/sandbox), the onboarding routes (/api/auth, /api/domains) and the Communications API (/comm-api/api) has the same JSON shape and a stable code. Codes specific to the Communications API are listed on its API reference. Branch on code, never on the error or message text, which can change. MCP tool errors have their own page: MCP errors.
{
"success": false,
"code": "api_key_required",
"error": "API key required for /v1/send",
"message": "API key required for /v1/send: send Authorization: ApiKey mk_live_<prefix>_<secret> (or X-Api-Key), or an OAuth token with send:transactional",
"requestId": "req_5f0c2a9d4b7e41c3a8e2f6b1"
}
| Field | Always there | Meaning |
|---|---|---|
success | yes | Always false on an error. |
code | yes | Stable machine code from the tables below. Case-sensitive. |
error | yes | Short description, or the code itself on some routes. For display only. |
message | usually | Human-readable explanation. Can change between releases. |
requestId | yes | The same value as the X-Request-Id response header. |
details | sometimes | Per-field problems on validation errors ([{ field, message }]), or extra context. |
nextAction | sometimes | What to do next; humanRequired: true means a person must act (for example approve a permission). |
retryAfterSeconds | sometimes | On some 429 and 503 answers: seconds to wait. The Retry-After header carries it where set. |
Other fields can appear on specific errors (for example denied and allowlist on a sandbox refusal, or limit and used on a quota refusal). Ignore fields you do not know; new ones are added without notice, existing ones are not removed.
Request ids
Every response, success or error, carries an X-Request-Id header. Log it next to your own error, and quote it when you contact support: it finds the exact call in our logs. You can send your own X-Request-Id (8 to 128 characters: letters, digits, ., _, : and -) to tie our logs to your trace; anything else is replaced by an id we generate.
Retrying
Codes marked Retry are temporary: wait for Retry-After, retryAfterSeconds or X-RateLimit-Reset (seconds), then repeat the same request. For a send, keep the same Idempotency-Key so a retry can never send twice. Every other code needs a change first; repeating the same request gets the same answer. When 5xx answers keep coming, check System status (machine-readable: GET /api/system/public-status) before you retry harder.
Code casing
Codes never change once published. New codes are lower snake_case. Some older codes are upper case (marked legacy casing) and keep that exact spelling; compare codes exactly as written here. Two codes that differ only in case (rate_limit_exceeded and RATE_LIMIT_EXCEEDED) come from two different limiters and both stay.
Authentication
| Code | Status | Meaning | What to do |
|---|---|---|---|
api_key_required | 401 | No sending credential on a /v1 call, or a Motor Block key sent as Bearer. Checked before the body. | Send Authorization: ApiKey mk_live_... or X-Api-Key, or an OAuth token that holds send:transactional. |
invalid_api_key | 401 | The API key is malformed, unknown or revoked. | Use a full, active key from the dashboard. Do not retry unchanged. |
access_token_required | 401 | No bearer token on a Public API call. | Send Authorization: Bearer <token> (a Public API token, an account key or an OAuth token). |
invalid_access_token | 401 | The bearer token is expired or not valid. | Refresh or mint a new token, then retry once. |
invalid_token_type | 401 | The token is a valid Motorical token, but not one this API accepts. | Use a Public API token, an account key or an OAuth token. |
authorization_revoked | 401 | The person revoked this OAuth authorization. Takes effect on the next call. | Stop and ask the person to reconnect. |
INVALID_TOKEN legacy casing | 401 | The token could not be verified. | Get a new token. |
TOKEN_EXPIRED legacy casing | 401 | The token has expired. | Refresh it and retry once. |
Sign-up, sign-in and onboarding (/api/auth, /api/domains)
| Code | Status | Meaning | What to do |
|---|---|---|---|
MISSING_TOKEN legacy casing | 401 | No dashboard access token (JWT) on a route that needs one. | Sign in (POST /api/auth/login) or refresh, and send Authorization: Bearer <jwt>. |
AUTH_ERROR Retry · legacy casing | 500 | The access token could not be checked because of a server error. | Retry once; then contact support with the requestId. |
MISSING_REFRESH_TOKEN legacy casing | 401 | POST /api/auth/refresh was called without a refresh token. | Send { refreshToken } in the body. |
INVALID_REFRESH_TOKEN legacy casing | 401 | The refresh token is invalid, expired or already rotated. | Sign in again. |
PASSWORD_NOT_SET legacy casing | 401 | The account has no password yet, so password sign-in cannot work. | Finish setup with the emailed code (POST /api/auth/set-password) or sign in with a passkey. |
PASSWORD_SETUP_NOT_REQUIRED legacy casing | 400 | The account already has a password. | Sign in instead. |
ACCOUNT_SUSPENDED legacy casing | 403 | The account is suspended (dashboard routes; the Public API answers account_suspended). | Contact support. Do not retry. |
SIGNS_IN_ELSEWHERE legacy casing | 409 | An account with this email exists and signs in another way. | Sign in with the existing method. |
VERIFIED_NO_PASSWORD legacy casing | 409 | An account with this email exists and is verified, but setup is not finished. | Finish setup (set a password) instead of registering again. |
UNVERIFIED_TOKEN_REFRESHED legacy casing | 409 | An unverified account with this email exists; a new verification code was sent. | Read the new code from the inbox and verify. |
UNVERIFIED_EXPIRING_SOON legacy casing | 409 | An unverified account with this email exists and will be deleted soon. | Verify it now with the emailed code. |
EMAIL_CODE_REQUIRED legacy casing | 403 | This change needs the confirmation code that was emailed to the account. | Ask the person for the code and send it. |
EMAIL_CODE_NOT_APPLICABLE legacy casing | 400 | This account confirms the change with its authenticator or passkey, not an email code. | Use the authenticator or passkey. |
EMAIL_CODE_RATE_LIMITED Retry · legacy casing | 429 | Too many confirmation codes requested. | Wait, then request one more. |
NO_MFA_FACTOR legacy casing | 409 | This needs a passkey or authenticator app, and the account has neither. | Set one up first. |
TOTP_ALREADY_ENABLED legacy casing | 409 | An authenticator app is already set up. | Turn it off first (needs a current code), then set it up again. |
AUTH_RATE_LIMIT Retry · legacy casing | 429 | Too many sign-in attempts. | Wait X-RateLimit-Reset seconds. |
signup_handoff_rate_limit Retry | 429 | Too many signup handoff requests. | Retry later. |
signup_handoff_status_rate_limit Retry | 429 | Too many signup handoff status checks. | Poll more slowly. |
ACCESS_DENIED legacy casing | 403 | The service-token endpoint answers only local calls. | Not for customer use. |
DNS_TOKEN_MISMATCH legacy casing | 400 | The domain verification TXT record exists but holds a different token. | Publish the exact token from the domain's DNS records, then verify again. |
DNS_RECORD_NOT_FOUND Retry · legacy casing | 400 | No domain verification TXT record was found. | Publish the record; DNS can take a while to propagate. |
DNS_VERIFICATION_FAILED Retry · legacy casing | 400 | Domain verification failed with every DNS method. | Check the record, wait for propagation, verify again. |
EMAIL_REQUIRED legacy casing | 400 | Email verification of the domain needs an email address. | Send the address. |
INVALID_EMAIL legacy casing | 400 | Domain email verification needs a privileged address of the domain (for example admin@). | Use one of the listed addresses. |
DOMAIN_HAS_MOTOR_BLOCKS legacy casing | 400 | The domain still has active Motor Blocks, so it cannot be deleted. | Move or delete those Motor Blocks first. |
Permission and coverage
| Code | Status | Meaning | What to do |
|---|---|---|---|
missing_scope | 403 | The credential does not hold a scope this route needs. The body names it. | Add the scope to the key or authorization. Do not retry unchanged. |
grant_mismatch | 401, 403 | The token does not match the authorization it claims. | Reconnect (re-authorize) the client. |
delegation_grant_mismatch | 403 | A delegated token does not match its authorization. | Reconnect the client. |
motor_block_not_authorized | 403 | The authorization does not cover that Motor Block. | Reconnect and include the Motor Block. A person has to approve it. |
motor_block_not_owned | 403 | The Motor Block belongs to another account. | Use a Motor Block id from your own account. |
motor_block_not_found | 403 | The token is bound to a Motor Block that no longer exists. | List your Motor Blocks and mint a token for an existing one. |
motor_block_id_required | 400 | The authorization covers several Motor Blocks, so the call must name one. | Pass motorBlockId (list them with GET /api/public/v1/motor-blocks). |
motor_block_id_conflict | 400 | The request names two different Motor Blocks. | Name one Motor Block, in one place. |
no_motor_block_covered | 403 | The authorization covers no Motor Block yet. | Reconnect and grant at least one Motor Block. |
oauth_grant_inactive | 403 | The OAuth authorization is not active. | Reconnect the client. |
subscription_required | 403 | The feature needs a paid plan. | Tell the person; the body links to the upgrade page. |
account_suspended | 403 | The account is suspended. | Contact support. Do not retry. |
ACCOUNT_NOT_VERIFIED legacy casing | 403 | The account email address is not verified yet. | Ask the person to verify their email first. |
use_comms_api | 403 | The key belongs to a marketing Motor Block, which sends only through Communications. | Use a transactional Motor Block for transactional email, or the Communications API for campaigns. |
feature_not_enabled | 422 | The field or feature is not enabled for this Motor Block yet. | Retry without it, or tell the person. |
Request validation
| Code | Status | Meaning | What to do |
|---|---|---|---|
VALIDATION_ERROR legacy casing | 400, 422 | The body or query failed validation. details lists each field. | Fix the named fields. Do not retry unchanged. |
MISSING_REQUIRED_FIELD legacy casing | 400 | A required field is missing. | Add it. |
DISALLOWED_HEADERS legacy casing | 400 | A custom header the platform sets itself (From, To, Subject, DKIM and similar). | Remove it; use the dedicated field such as fromName or replyTo. |
ILLEGAL_HEADER_CHARS legacy casing | 400 | subject or fromName contains a line break or control character. | Remove the character. |
conflicting_fields | 422 | Two fields say contradictory things, for example replyTo and a Reply-To header. | Keep one. |
invalid_attachment | 422 | An attachment is malformed (for example content is not base64). field names it. | Fix the named attachment. |
invalid_email | 400 | An email address is not valid. | Fix the address. |
invalid_id | 400, 404 | An id is not in the expected format. | Use the id exactly as an API response gave it. |
invalid_smtp_code | 400 | The smtpCode log filter is not a valid SMTP code. | Pass a three-digit code such as 550. |
IDEMPOTENCY_KEY_REQUIRED legacy casing | 400 | This write needs an Idempotency-Key header. | Send a new UUID v4 per logical operation. |
IDEMPOTENCY_KEY_INVALID legacy casing | 400 | The Idempotency-Key is not a UUID v4. | Send a UUID v4. |
idempotency_key_conflict | 409 | The same Idempotency-Key was used with a different body. | Use a new key for a different request. |
webhook_url_blocked | 400 | The webhook URL is not a public http or https endpoint. | Use a public URL. |
Sending
| Code | Status | Meaning | What to do |
|---|---|---|---|
DOMAIN_DNS_INCOMPLETE legacy casing | 403 | The From domain is verified but SPF or DKIM is not in place yet. | Finish DNS, then call POST /api/public/v1/domains/{id}/check-dns. |
recipient_suppressed | 422 | Every recipient is on the suppression list (an earlier hard bounce, complaint or unsubscribe). | Do not resend to them. |
content_policy_rejected | 422 | The content scan refused the message or an attachment. | Change the content. A dry run does not run this scan. |
attachment_too_large | 413 | One attachment is over the plan limit. The body names the limit. | Send a smaller file, or over SMTP. |
attachments_total_too_large | 413 | All attachments together are over the plan limit. | Send fewer or smaller files. |
too_many_attachments | 422 | More attachments than the plan allows. | Send fewer files. |
attachment_type_not_allowed | 422 | The plan does not allow this file type. | Send another type, or tell the person. |
attachments_not_allowed | 422 | This Motor Block cannot send attachments. | Send without attachments. |
payload_too_large | 413 | The JSON body is over the platform message capacity. | Send a smaller message. |
message_too_large | 413 | The delivery gateway refused the message as too large. | Send a smaller message. |
gateway_reply_unreadable Retry | 502 | The message was accepted but its id could not be read back. | Retry with the same Idempotency-Key; it will not send twice. |
delivery_status_unknown Retry | 503 | The connection failed mid-send, so it is unknown whether the message was accepted. | Retry with the same Idempotency-Key; it will not send twice. |
temporarily_unavailable Retry | 503 | A temporary delivery failure. | Retry after Retry-After seconds. |
Sandbox and Free plan
| Code | Status | Meaning | What to do |
|---|---|---|---|
sandbox_outbound_locked | 403 | A locked sandbox: the recipient is not on the allowlist. Never redirected. | Confirm the recipient first (MCP motorical_free_recipient_add). |
sandbox_recipient_denied | 403 | An unlocked sandbox, but the recipient is not on the allowlist. The body lists denied and allowlist. | Confirm the recipient first. |
allowlist_full | 400 | The sandbox allowlist is full. The message states the maximum. | Remove a recipient before adding another. |
sandbox_monthly_limit | 429 | The sandbox monthly send allowance is used up. | Convert to production to send more. |
sandbox_dns_unavailable Retry | 503 | The sandbox domain could not be set up because DNS is unavailable. | Retry later. |
domain_has_motor_block | 409 | The domain already has a Motor Block. | Use that Motor Block. |
free_recipient_not_confirmed | 403 | A Free plan sends only to your own address and recipients you confirmed. | Confirm the recipient, or upgrade. |
free_policy_unavailable Retry | 503 | The Free plan policy could not be read, so the send was refused rather than guessed. | Retry shortly. |
own_address | 400 | Your own address needs no confirmation. | Send to it directly. |
recipient_limit | 409 | The maximum number of confirmed recipients is reached. | Remove one, or upgrade. |
invalid_code | 400 | The verification code or email is wrong. | Ask the person for the code again. |
expired | 400 | The verification code has expired. | Request a new code. |
email_send_failed Retry | 502 | The confirmation email could not be sent. | Retry once. |
Rate limits and quotas
| Code | Status | Meaning | What to do |
|---|---|---|---|
rate_limited_block Retry | 429 | This Motor Block's burst, hourly or daily send cap is reached. | Wait retryAfterSeconds (or Retry-After) and retry. |
rate_limited_account Retry | 429 | The account-wide send cap is reached. | Wait and retry; check GET /api/public/v1/account/rate-limits. |
rate_limited_warmup Retry | 429 | Warm-up pacing is holding this block's volume. | Wait Retry-After and retry. |
rate_limit_exceeded Retry | 429 | Too many API requests for this credential. | Wait X-RateLimit-Reset seconds. |
RATE_LIMIT_EXCEEDED Retry · legacy casing | 429 | Too many requests from this IP address (an older limiter). | Wait X-RateLimit-Reset seconds. |
RATE_LIMIT_ANONYMOUS Retry · legacy casing | 429 | Too many requests from this IP address without a credential. | Authenticate, or wait X-RateLimit-Reset seconds. |
rate_limited Retry | 429 | Too many requests of this kind (also the status fallback for 429). | Wait and retry. |
dryrun_rate_limited Retry | 429 | Too many dry runs with large attachments. | Retry after retryAfterSeconds. |
too_many_large_requests Retry | 429 | Too many large sends in a short time. | Slow down and retry. |
allowlist_request_rate_limit Retry | 429 | Too many sandbox allowlist requests. | Retry later. |
free_recipient_request_rate_limit Retry | 429 | Too many recipient confirmation requests. | Retry later. |
Resources
| Code | Status | Meaning | What to do |
|---|---|---|---|
NOT_FOUND legacy casing | 404 | No such route. | Check the method and path against the API reference. |
not_found | 400, 404 | The resource does not exist (also the status fallback for 404). | Check the id. |
domain_not_found | 404 | No such domain on this account. | List domains and use an id from the list. |
account_not_found | 404 | The account behind the credential no longer exists. | Contact support. |
user_not_found | 400, 404 | The user behind the credential no longer exists. | Contact support. |
grant_not_found | 404 | The OAuth authorization no longer exists. | Reconnect the client. |
not_an_oauth_grant | 404 | The call was not made over an OAuth authorization, so there is no grant to show. | Nothing to fix; there is no grant to read. |
DUPLICATE_RESOURCE legacy casing | 409 | The resource already exists. | Read the existing one. |
FOREIGN_KEY_ERROR legacy casing | 400 | The request refers to a resource that does not exist. | Check the ids in the body. |
Server and availability
| Code | Status | Meaning | What to do |
|---|---|---|---|
INTERNAL_ERROR Retry · legacy casing | 500 | An unexpected server error. | Retry once; if it persists, contact support with the requestId. |
APPLICATION_ERROR legacy casing | 400, 500 | A service error without a more specific code. | Read message; contact support with the requestId. |
SERVICE_UNAVAILABLE Retry · legacy casing | 503 | A dependency is unavailable. | Retry with backoff. |
FILE_TOO_LARGE legacy casing | 400 | An uploaded file is too large. | Upload a smaller file. |
TOO_MANY_FILES legacy casing | 400 | Too many files in one upload. | Upload fewer. |
Fallback codes
When a route refuses without a more specific code, the code comes from the HTTP status:
| Status | Code |
|---|---|
| 400 | bad_request |
| 401 | unauthorized |
| 403 | forbidden |
| 404 | not_found |
| 405 | method_not_allowed |
| 409 | conflict |
| 413 | payload_too_large |
| 422 | unprocessable |
| 429 | rate_limited |
| 500 | internal_error |
| 502 | bad_gateway |
| 503 | service_unavailable |
| 504 | gateway_timeout |
Treat a fallback code as "read message": it is stable, but it says less than a specific code. The machine-readable list of every code is x-motorical-error-codes in openapi.json; each error response there references the Error schema.