Skip to main content
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"
}
FieldAlways thereMeaning
successyesAlways false on an error.
codeyesStable machine code from the tables below. Case-sensitive.
erroryesShort description, or the code itself on some routes. For display only.
messageusuallyHuman-readable explanation. Can change between releases.
requestIdyesThe same value as the X-Request-Id response header.
detailssometimesPer-field problems on validation errors ([{ field, message }]), or extra context.
nextActionsometimesWhat to do next; humanRequired: true means a person must act (for example approve a permission).
retryAfterSecondssometimesOn 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​

CodeStatusMeaningWhat to do
api_key_required401No 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_key401The API key is malformed, unknown or revoked.Use a full, active key from the dashboard. Do not retry unchanged.
access_token_required401No bearer token on a Public API call.Send Authorization: Bearer <token> (a Public API token, an account key or an OAuth token).
invalid_access_token401The bearer token is expired or not valid.Refresh or mint a new token, then retry once.
invalid_token_type401The 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_revoked401The person revoked this OAuth authorization. Takes effect on the next call.Stop and ask the person to reconnect.
INVALID_TOKEN
legacy casing
401The token could not be verified.Get a new token.
TOKEN_EXPIRED
legacy casing
401The token has expired.Refresh it and retry once.

Sign-up, sign-in and onboarding (/api/auth, /api/domains)​

CodeStatusMeaningWhat to do
MISSING_TOKEN
legacy casing
401No 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
500The access token could not be checked because of a server error.Retry once; then contact support with the requestId.
MISSING_REFRESH_TOKEN
legacy casing
401POST /api/auth/refresh was called without a refresh token.Send { refreshToken } in the body.
INVALID_REFRESH_TOKEN
legacy casing
401The refresh token is invalid, expired or already rotated.Sign in again.
PASSWORD_NOT_SET
legacy casing
401The 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
400The account already has a password.Sign in instead.
ACCOUNT_SUSPENDED
legacy casing
403The account is suspended (dashboard routes; the Public API answers account_suspended).Contact support. Do not retry.
SIGNS_IN_ELSEWHERE
legacy casing
409An account with this email exists and signs in another way.Sign in with the existing method.
VERIFIED_NO_PASSWORD
legacy casing
409An 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
409An 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
409An unverified account with this email exists and will be deleted soon.Verify it now with the emailed code.
EMAIL_CODE_REQUIRED
legacy casing
403This 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
400This 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
429Too many confirmation codes requested.Wait, then request one more.
NO_MFA_FACTOR
legacy casing
409This needs a passkey or authenticator app, and the account has neither.Set one up first.
TOTP_ALREADY_ENABLED
legacy casing
409An 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
429Too many sign-in attempts.Wait X-RateLimit-Reset seconds.
signup_handoff_rate_limit
Retry
429Too many signup handoff requests.Retry later.
signup_handoff_status_rate_limit
Retry
429Too many signup handoff status checks.Poll more slowly.
ACCESS_DENIED
legacy casing
403The service-token endpoint answers only local calls.Not for customer use.
DNS_TOKEN_MISMATCH
legacy casing
400The 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
400No domain verification TXT record was found.Publish the record; DNS can take a while to propagate.
DNS_VERIFICATION_FAILED
Retry · legacy casing
400Domain verification failed with every DNS method.Check the record, wait for propagation, verify again.
EMAIL_REQUIRED
legacy casing
400Email verification of the domain needs an email address.Send the address.
INVALID_EMAIL
legacy casing
400Domain email verification needs a privileged address of the domain (for example admin@).Use one of the listed addresses.
DOMAIN_HAS_MOTOR_BLOCKS
legacy casing
400The domain still has active Motor Blocks, so it cannot be deleted.Move or delete those Motor Blocks first.

Permission and coverage​

CodeStatusMeaningWhat to do
missing_scope403The 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_mismatch401, 403The token does not match the authorization it claims.Reconnect (re-authorize) the client.
delegation_grant_mismatch403A delegated token does not match its authorization.Reconnect the client.
motor_block_not_authorized403The authorization does not cover that Motor Block.Reconnect and include the Motor Block. A person has to approve it.
motor_block_not_owned403The Motor Block belongs to another account.Use a Motor Block id from your own account.
motor_block_not_found403The 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_required400The 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_conflict400The request names two different Motor Blocks.Name one Motor Block, in one place.
no_motor_block_covered403The authorization covers no Motor Block yet.Reconnect and grant at least one Motor Block.
oauth_grant_inactive403The OAuth authorization is not active.Reconnect the client.
subscription_required403The feature needs a paid plan.Tell the person; the body links to the upgrade page.
account_suspended403The account is suspended.Contact support. Do not retry.
ACCOUNT_NOT_VERIFIED
legacy casing
403The account email address is not verified yet.Ask the person to verify their email first.
use_comms_api403The 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_enabled422The field or feature is not enabled for this Motor Block yet.Retry without it, or tell the person.

Request validation​

CodeStatusMeaningWhat to do
VALIDATION_ERROR
legacy casing
400, 422The body or query failed validation. details lists each field.Fix the named fields. Do not retry unchanged.
MISSING_REQUIRED_FIELD
legacy casing
400A required field is missing.Add it.
DISALLOWED_HEADERS
legacy casing
400A 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
400subject or fromName contains a line break or control character.Remove the character.
conflicting_fields422Two fields say contradictory things, for example replyTo and a Reply-To header.Keep one.
invalid_attachment422An attachment is malformed (for example content is not base64). field names it.Fix the named attachment.
invalid_email400An email address is not valid.Fix the address.
invalid_id400, 404An id is not in the expected format.Use the id exactly as an API response gave it.
invalid_smtp_code400The smtpCode log filter is not a valid SMTP code.Pass a three-digit code such as 550.
IDEMPOTENCY_KEY_REQUIRED
legacy casing
400This write needs an Idempotency-Key header.Send a new UUID v4 per logical operation.
IDEMPOTENCY_KEY_INVALID
legacy casing
400The Idempotency-Key is not a UUID v4.Send a UUID v4.
idempotency_key_conflict409The same Idempotency-Key was used with a different body.Use a new key for a different request.
webhook_url_blocked400The webhook URL is not a public http or https endpoint.Use a public URL.

Sending​

CodeStatusMeaningWhat to do
DOMAIN_DNS_INCOMPLETE
legacy casing
403The 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_suppressed422Every recipient is on the suppression list (an earlier hard bounce, complaint or unsubscribe).Do not resend to them.
content_policy_rejected422The content scan refused the message or an attachment.Change the content. A dry run does not run this scan.
attachment_too_large413One attachment is over the plan limit. The body names the limit.Send a smaller file, or over SMTP.
attachments_total_too_large413All attachments together are over the plan limit.Send fewer or smaller files.
too_many_attachments422More attachments than the plan allows.Send fewer files.
attachment_type_not_allowed422The plan does not allow this file type.Send another type, or tell the person.
attachments_not_allowed422This Motor Block cannot send attachments.Send without attachments.
payload_too_large413The JSON body is over the platform message capacity.Send a smaller message.
message_too_large413The delivery gateway refused the message as too large.Send a smaller message.
gateway_reply_unreadable
Retry
502The 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
503The 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
503A temporary delivery failure.Retry after Retry-After seconds.

Sandbox and Free plan​

CodeStatusMeaningWhat to do
sandbox_outbound_locked403A locked sandbox: the recipient is not on the allowlist. Never redirected.Confirm the recipient first (MCP motorical_free_recipient_add).
sandbox_recipient_denied403An unlocked sandbox, but the recipient is not on the allowlist. The body lists denied and allowlist.Confirm the recipient first.
allowlist_full400The sandbox allowlist is full. The message states the maximum.Remove a recipient before adding another.
sandbox_monthly_limit429The sandbox monthly send allowance is used up.Convert to production to send more.
sandbox_dns_unavailable
Retry
503The sandbox domain could not be set up because DNS is unavailable.Retry later.
domain_has_motor_block409The domain already has a Motor Block.Use that Motor Block.
free_recipient_not_confirmed403A Free plan sends only to your own address and recipients you confirmed.Confirm the recipient, or upgrade.
free_policy_unavailable
Retry
503The Free plan policy could not be read, so the send was refused rather than guessed.Retry shortly.
own_address400Your own address needs no confirmation.Send to it directly.
recipient_limit409The maximum number of confirmed recipients is reached.Remove one, or upgrade.
invalid_code400The verification code or email is wrong.Ask the person for the code again.
expired400The verification code has expired.Request a new code.
email_send_failed
Retry
502The confirmation email could not be sent.Retry once.

Rate limits and quotas​

CodeStatusMeaningWhat to do
rate_limited_block
Retry
429This Motor Block's burst, hourly or daily send cap is reached.Wait retryAfterSeconds (or Retry-After) and retry.
rate_limited_account
Retry
429The account-wide send cap is reached.Wait and retry; check GET /api/public/v1/account/rate-limits.
rate_limited_warmup
Retry
429Warm-up pacing is holding this block's volume.Wait Retry-After and retry.
rate_limit_exceeded
Retry
429Too many API requests for this credential.Wait X-RateLimit-Reset seconds.
RATE_LIMIT_EXCEEDED
Retry · legacy casing
429Too many requests from this IP address (an older limiter).Wait X-RateLimit-Reset seconds.
RATE_LIMIT_ANONYMOUS
Retry · legacy casing
429Too many requests from this IP address without a credential.Authenticate, or wait X-RateLimit-Reset seconds.
rate_limited
Retry
429Too many requests of this kind (also the status fallback for 429).Wait and retry.
dryrun_rate_limited
Retry
429Too many dry runs with large attachments.Retry after retryAfterSeconds.
too_many_large_requests
Retry
429Too many large sends in a short time.Slow down and retry.
allowlist_request_rate_limit
Retry
429Too many sandbox allowlist requests.Retry later.
free_recipient_request_rate_limit
Retry
429Too many recipient confirmation requests.Retry later.

Resources​

CodeStatusMeaningWhat to do
NOT_FOUND
legacy casing
404No such route.Check the method and path against the API reference.
not_found400, 404The resource does not exist (also the status fallback for 404).Check the id.
domain_not_found404No such domain on this account.List domains and use an id from the list.
account_not_found404The account behind the credential no longer exists.Contact support.
user_not_found400, 404The user behind the credential no longer exists.Contact support.
grant_not_found404The OAuth authorization no longer exists.Reconnect the client.
not_an_oauth_grant404The 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
409The resource already exists.Read the existing one.
FOREIGN_KEY_ERROR
legacy casing
400The request refers to a resource that does not exist.Check the ids in the body.

Server and availability​

CodeStatusMeaningWhat to do
INTERNAL_ERROR
Retry · legacy casing
500An unexpected server error.Retry once; if it persists, contact support with the requestId.
APPLICATION_ERROR
legacy casing
400, 500A service error without a more specific code.Read message; contact support with the requestId.
SERVICE_UNAVAILABLE
Retry · legacy casing
503A dependency is unavailable.Retry with backoff.
FILE_TOO_LARGE
legacy casing
400An uploaded file is too large.Upload a smaller file.
TOO_MANY_FILES
legacy casing
400Too 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:

StatusCode
400bad_request
401unauthorized
403forbidden
404not_found
405method_not_allowed
409conflict
413payload_too_large
422unprocessable
429rate_limited
500internal_error
502bad_gateway
503service_unavailable
504gateway_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.