Reference

Errors

Every error response says what happened and what to do next. Find your code below: each card has the fix and tells you whether a retry will work.

  • fix
  • docs_url
  • retryable

What every error includes

fix

The next step to take, in plain words.

docs_url

A link straight to the card of the code on this page.

retryable

true: the same call will work after waiting. false: change something first.

Responses with status 429 or 503 send a Retry-After header (seconds). On POST /v3.0/send, IDEMPOTENCY_IN_PROGRESS (409) sends Retry-After: 1. Command errors (CMD) and MCP errors have no header: when retryable is true, wait a few seconds and retry.

On POST /v3.0/send the message is in error, not in message.

MCP tools return isError: true. The text is CODE: message with Fix: … on a new line, and structuredContent has code, message, fix, docs_url and retryable.

Email API response · POST /v3.0/send
{
  "error": "The to field is missing or empty.",
  "code": "MISSING_TO",
  "fix": "Add at least one recipient in to.",
  "docs_url": "https://docs.sendcorex.com/errors#missing_to",
  "retryable": false
}
MCP tool result
{
  "content": [{ "type": "text", "text": "DOMAIN_NOT_FOUND: Domain not found or does not belong to this account.\nFix: Add the domain first (domain_add / POST /v1/domain add_domain), then publish the DNS records it returns." }],
  "structuredContent": {
    "code": "DOMAIN_NOT_FOUND",
    "message": "Domain not found or does not belong to this account.",
    "fix": "Add the domain first (domain_add / POST /v1/domain add_domain), then publish the DNS records it returns.",
    "docs_url": "https://docs.sendcorex.com/errors#domain_not_found",
    "retryable": false
  },
  "isError": true
}

Error codes

Authentication 11

MISSING_AUTH_HEADER401
Fix firstEmail APIWebmail API & MCP

Send the API key in the header: Authorization: Bearer <your API key>.

Link: #missing_auth_header
INVALID_API_KEY401 / CMD
Fix firstEmail APIWebmail API & MCP

The key is wrong, revoked or expired. Create a new key in Dashboard → API keys (with the email:send scope) and use it.

Link: #invalid_api_key
INVALID_TOKEN401 / CMD
Fix firstEmail APIWebmail API & MCP

The access token is invalid or expired. Refresh it (POST /v1/token/refresh) or reconnect the app.

Link: #invalid_token
WRONG_CREDENTIAL_TYPE401 / CMD
Fix firstEmail APIWebmail API & MCP

This token is for a mailbox, not the account. Reconnect using the account (not a single mailbox).

Link: #wrong_credential_type
MISSING_SCOPE403 / CMD
Fix firstEmail APIWebmail API & MCP

The key/connection lacks the scope named in the message. Edit the key in Dashboard → API keys and add it, or reconnect and allow it.

Link: #missing_scope
MISSING_USER_PRIVILEGES401 / CMD
Fix firstEmail APIWebmail API & MCP

This account is not allowed to send through the API yet. Finish onboarding in the dashboard or contact support.

Link: #missing_user_privileges
AUTH_UNAVAILABLE503
Retry worksRetry-AfterEmail APIWebmail API & MCP

Temporary problem validating the credential. Retry in a few seconds with the same request.

Link: #auth_unavailable
UNAUTHORIZEDCMD
Fix firstWebmail API & MCP

Authenticate first: send a valid API key or access token.

Link: #unauthorized
API_KEY_PAUSED403
Fix firstEmail APIWebmail API & MCP

The key owner paused this key. Resume it in Dashboard → API keys (or use another key); retrying will not help until then.

Link: #api_key_paused
API_KEY_EXPIRED401
Fix firstWebmail API & MCP

The API key has expired. Create a new key in Dashboard → API keys and use it. On POST /v3.0/send this comes back as INVALID_API_KEY, with the reason in the message.

Link: #api_key_expired
IP_NOT_ALLOWED403
Fix firstWebmail API & MCP

The call came from an IP that is not in the key's Allowed IPs. Add the IP to the key in Dashboard → API keys, or call from an allowed IP.

Link: #ip_not_allowed

SMTP login 7

SMTP_WRONG_PASSWORDSMTP 535 5.7.8
Fix firstSMTPConnection stays open (3 tries)

Wrong username or password (the same reply is used when the username does not exist). Copy the password again from Dashboard → SMTP → Credentials, or reset it, and update it in every app that uses this username.

Link: #smtp_wrong_password
SMTP_INVALID_USERNAMESMTP 535 5.7.8
Fix firstSMTPConnection stays open (3 tries)

Use the SMTP username (user-… or graph-…), never an email address. Copy it from Dashboard → SMTP → Credentials.

Link: #smtp_invalid_username
SMTP_IP_LOCKED_AFTER_FAILURESSMTP 535 5.7.8
Fix firstSMTPConnection closes

This IP was locked after 5 wrong passwords for this username within 1 hour. Fix the password in every app, then unblock the IP in Dashboard → SMTP → Credentials (or unblock_ip on POST /v1/security), or wait up to 1 hour.

Link: #smtp_ip_locked_after_failures
SMTP_CREDENTIAL_LOCKEDSMTP 535 5.7.8
Fix firstSMTPConnection closes

Wrong passwords came from 5 different IPs within 1 hour, so this credential is locked. Reset its password in Dashboard → SMTP → Credentials and update it in every app.

Link: #smtp_credential_locked
SMTP_CREDENTIAL_TEMPORARILY_BLOCKEDSMTP 535 5.7.8
Retry worksSMTPConnection closes

Too many failed logins in a short time. Fix the password, wait a few minutes and try again.

Link: #smtp_credential_temporarily_blocked
SMTP_IP_NOT_ALLOWEDSMTP 535 5.7.8
Fix firstSMTPConnection closes

This IP is not in the credential's Allowed IPs. Add it in Dashboard → SMTP → Credentials, remove the restriction, or connect from an allowed IP.

Link: #smtp_ip_not_allowed
SMTP_IP_BLOCKEDSMTP 421 4.7.1
Fix firstSMTPSent on connect, before EHLO

This IP is blocked (wrong passwords, daily limit or too many connections). See the reason and unblock it in Dashboard → SMTP → Credentials → Blocked IPs, or with unblock_ip on POST /v1/security. Abuse blocks need support.

Link: #smtp_ip_blocked

IP unblock 3

NOT_BLOCKEDCMD
Fix firstWebmail API & MCP

This IP is not blocked on your account, so there is nothing to unblock. Check list_blocked_ips.

Link: #not_blocked
NOT_SELF_SERVICECMD
Fix firstWebmail API & MCP

This IP was blocked for abuse and cannot be unblocked here. Contact support.

Link: #not_self_service
UNBLOCK_QUOTACMD
Fix firstWebmail API & MCP

You already used the 3 self-service unblocks of the last 30 days (for the whole account). Wait until quota.resets_at, or contact support.

Link: #unblock_quota

Account 4

ACCOUNT_BLOCKED401 / 403 / CMD
Fix firstEmail APIWebmail API & MCP

The account is blocked; no retry will work. The account owner must contact support.

Link: #account_blocked
ACCOUNT_SUSPENDED_SPOOFING403 / CMD
Fix firstEmail APIWebmail API & MCP

Suspended after repeated From-header mismatches. Contact support; then send only from your verified domains.

Link: #account_suspended_spoofing
USER_NOT_FOUND401 / CMD
Fix firstEmail APIWebmail API & MCP

The account behind this key no longer exists. Use a key from an active account.

Link: #user_not_found
EMAIL_NOT_VALIDATED401 / CMD
Fix firstEmail APIWebmail API & MCP

The account owner must confirm their email address (link in the welcome email) before sending.

Link: #email_not_validated

Domains & senders 12

SENDER_NOT_ALLOWED_FOR_KEY403
Fix firstEmail APIWebmail API & MCP

This API key only sends from the addresses/domains in allowed_senders. Use one of them as from, or edit the key's allowed senders in Dashboard → API keys.

Link: #sender_not_allowed_for_key
DOMAIN_NOT_VALIDATED401 / CMD
Fix firstEmail APIWebmail API & MCP

The sender domain is not verified. Get its DNS records (domain_get / POST /v1/domain get_domain), add them at the DNS provider and wait for verification; or send from an already verified domain (domain_list).

Link: #domain_not_validated
DOMAIN_NOT_FOUNDCMD
Fix firstWebmail API & MCP

Add the domain first (domain_add / POST /v1/domain add_domain), then publish the DNS records it returns.

Link: #domain_not_found
FROM_HEADER_DOMAIN_MISMATCH401 / CMD
Fix firstEmail APIWebmail API & MCP

The From address must be on one of your verified domains (domain_list). Do not put another domain in the From header.

Link: #from_header_domain_mismatch
ISP_DOMAIN_BLOCKED401 / CMD
Fix firstEmail APIWebmail API & MCP

You cannot send as gmail.com, outlook.com and other mailbox providers. Use an address on your own verified domain.

Link: #isp_domain_blocked
LISTED_SPAM_HAUS401 / CMD
Fix firstEmail APIWebmail API & MCP

The sender domain is on Spamhaus. Request delisting at spamhaus.org (domain_request_remediation helps), or send from another verified domain.

Link: #listed_spam_haus
SENDER_NOT_FOUNDCMD
Fix firstWebmail API & MCP

Create the sender first (sender_create / POST /v1/sender create_sender) or use one from sender_list.

Link: #sender_not_found
INVALID_SENDER_FORMAT400 / CMD
Fix firstEmail APIWebmail API & MCP

The from address is malformed. Use a plain address like hello@yourdomain.com.

Link: #invalid_sender_format
INVALID_FROM_FORMAT400
Fix firstEmail API

from must be a valid email address on a verified domain, e.g. hello@yourdomain.com.

Link: #invalid_from_format
MISSING_FROM400
Fix firstEmail API

Add from (an address on a verified domain).

Link: #missing_from
INVALID_SENDERNAME_FORMAT400
Fix firstEmail API

sender_name cannot contain @ / \ ' " [ ] ( ) : — use plain text like your brand name.

Link: #invalid_sendername_format

Credits & limits 9

API_KEY_DAILY_CAP_REACHED429
Retry worksRetry-AfterEmail APIWebmail API & MCP

This key reached its daily recipient limit. Wait until 00:00 UTC (Retry-After) or raise the key's daily limit in Dashboard → API keys.

Link: #api_key_daily_cap_reached
NO_CREDITS_LEFT401
Fix firstEmail API

No email credits left. Upgrade the plan or buy credits in Dashboard → Billing; sending works again right after.

Link: #no_credits_left
INSUFFICIENT_CREDITSCMD
Fix firstWebmail API & MCP

Not enough credits for all recipients. Send to fewer recipients or add credits in Dashboard → Billing.

Link: #insufficient_credits
CREDITS_UNAVAILABLECMD
Retry worksWebmail API & MCP

Temporary problem reading credits. Retry in a few seconds.

Link: #credits_unavailable
DAILY_LIMIT403 / CMD
Fix firstEmail APIWebmail API & MCP

Daily sending limit reached. Wait until the limit resets (00:00 UTC) or upgrade the plan for a higher limit. Retrying now will fail.

Link: #daily_limit
MARKETING_LIMIT_REACHED403
Fix firstEmail API

Free-plan marketing limit reached for today. Transactional emails still go out; upgrade (upgradeUrl in the response) to send more marketing.

Link: #marketing_limit_reached
RISKY_TLD_REQUIRES_PAID_PLANCMD
Fix firstWebmail API & MCP

Sending from this domain extension needs a paid plan. Upgrade, or use a domain with a common extension (.com, .io…).

Link: #risky_tld_requires_paid_plan

Content & recipients 30

INVALID_JSON400
Fix firstEmail APIWebmail API & MCP

The body is not valid JSON or has a wrong field type. Check the request against the API reference.

Link: #invalid_json
INVALID_ARGS400
Fix firstWebmail API & MCP

One argument is missing or invalid — the message says which. Fix it and send again.

Link: #invalid_args
INVALID_ARGUMENTCMD
Fix firstWebmail API & MCP

One argument is missing or invalid — the message says which. Fix it and send again.

Link: #invalid_argument
MISSING_SUBJECT400 / CMD
Fix firstEmail APIWebmail API & MCP

Add a subject (or use a template that has one).

Link: #missing_subject
MISSING_BODY400
Fix firstEmail API

Add the email body (html/body or text, or a template).

Link: #missing_body
INVALID_TOADDRESS400 / CMD
Fix firstEmail APIWebmail API & MCP

One recipient is not a valid email address. Fix or remove it.

Link: #invalid_toaddress
INVALID_RECIPIENTCMD
Fix firstWebmail API & MCP

One recipient is not a valid email address. Fix or remove it.

Link: #invalid_recipient
RECIPIENT_LIMIT_EXCEEDED400 / CMD
Fix firstEmail APIWebmail API & MCP

Too many recipients in one call (to+cc+bcc max 50). Split into several calls.

Link: #recipient_limit_exceeded
TOO_MANY_RECIPIENTSCMD
Fix firstWebmail API & MCP

Too many recipients in one call. Split into several calls.

Link: #too_many_recipients
RECIPIENT_UNSUBSCRIBED422 / CMD / SMTP 550 5.7.1
Fix firstEmail APIWebmail API & MCP

This person unsubscribed from you. Do not send to them again.

Link: #recipient_unsubscribed
FORBIDDEN_HTML_CONTENT403
Fix firstEmail API

Remove the active content listed in findings (script, on* handlers, javascript: links, forms) and send again.

Link: #forbidden_html_content
UNSAFE_HTMLCMD
Fix firstWebmail API & MCP

Remove scripts, on* handlers, javascript: links and forms from the HTML and send again.

Link: #unsafe_html
MISSING_UNSUBSCRIBE_PLACEHOLDER400
Fix firstEmail API

With unsubscribe=true the body must contain [unsubscribe_url] (e.g. <a href="[unsubscribe_url]">Unsubscribe</a>).

Link: #missing_unsubscribe_placeholder
HEADER_NOT_ALLOWED400
Fix firstEmail API

Only List-Id, X-Report-Abuse, Feedback-ID and X-* custom headers are allowed. Remove the others.

Link: #header_not_allowed
INVALID_ATTACHMENT400
Fix firstEmail APIWebmail API & MCP

Attachment content must be valid base64 with a filename. Re-encode the file.

Link: #invalid_attachment
DANGEROUS_ATTACHMENT400
Fix firstEmail API

The file type is blocked for security (executables, scripts, macros). Send a safe format (like PDF) or a download link instead.

Link: #dangerous_attachment
FILE_BLOCKEDCMD
Fix firstWebmail API & MCP

The file was blocked by the security scan. Do not send it; share a safe format or a link instead.

Link: #file_blocked
ATTACHMENTS_TOO_LARGE413
Fix firstWebmail API & MCP

Attachments exceed the size limit (25 MB in total). Send fewer/smaller files or a download link.

Link: #attachments_too_large
INVALID_SCHEDULED_AT400
Fix firstEmail API

scheduled_at must be in the future: ISO 8601 (2026-11-01T09:00:00Z) or "in 2 hours".

Link: #invalid_scheduled_at
INVALID_TIMECMD
Fix firstWebmail API & MCP

Use RFC 3339 with timezone (2026-11-01T09:00:00Z), 1 minute to 1 year from now.

Link: #invalid_time
INVALID_SENDING_IP400
Fix firstEmail API

sending_ip must be one of your dedicated IPs. Omit it to use automatic routing.

Link: #invalid_sending_ip
SPAM_DETECTED403 / CMD
Fix firstEmail APIWebmail API & MCP

The content looked like spam and is held in quarantine. Rewrite it (fewer links, no misleading claims, real sender name) and send again, or ask for release with quarantine_id (POST /v3.0/quarantine/release).

Link: #spam_detected
TEMPLATE_NOT_FOUNDCMD
Fix firstWebmail API & MCP

Check the template id with template_list (or list_templates).

Link: #template_not_found
DRAFT_NOT_FOUNDCMD
Fix firstWebmail API & MCP

The draft was already sent or deleted. Check list_drafts before sending again.

Link: #draft_not_found
ALREADY_SENTCMD
Fix firstWebmail API & MCP

This was already sent. Do not send again.

Link: #already_sent
NOT_FOUND404
Fix firstWebmail API & MCP

The id does not exist in this account/mailbox. List first and use an id from the list.

Link: #not_found

Idempotency 4

Temporary errors & retries 12

RATE_LIMITED429
Retry worksRetry-AfterWebmail API & MCP

Too many requests. Wait the Retry-After seconds, then retry.

Link: #rate_limited
TOO_MANY_CONCURRENT_CONNECTIONS429
Retry worksRetry-AfterEmail API

Too many calls at the same time. Send one at a time and retry after Retry-After seconds.

Link: #too_many_concurrent_connections
IP_TEMPORARILY_BLOCKED429
Fix firstRetry-AfterEmail API

Blocked after repeated policy violations. Stop retrying, fix the cause of the earlier errors, then wait Retry-After seconds.

Link: #ip_temporarily_blocked
CREDENTIAL_TEMPORARILY_BLOCKED429
Fix firstRetry-AfterEmail API

This key is blocked after repeated policy violations. Stop retrying, fix the cause of the earlier errors, then wait Retry-After seconds.

Link: #credential_temporarily_blocked
TEMPORARILY_BLOCKED429
Fix firstRetry-AfterEmail API

Blocked after repeated policy violations. Stop retrying, fix the cause of the earlier errors, then wait Retry-After seconds.

Link: #temporarily_blocked
INTERNAL_SERVER_ERROR500
Retry worksEmail API

Unexpected error on our side. Retry with the same Idempotency-Key in a few seconds; if it keeps failing, contact support.

Link: #internal_server_error
INTERNAL500
Retry worksWebmail API & MCP

Unexpected error on our side. Retry in a few seconds (with the same idempotency_key when sending).

Link: #internal
PERSIST_FAILED500
Retry worksEmail API

Could not queue the email. Retry with the same Idempotency-Key in a few seconds.

Link: #persist_failed
SEND_UNAVAILABLECMD
Retry worksWebmail API & MCP

Sending is temporarily unavailable. Retry in a few seconds (with the same idempotency_key).

Link: #send_unavailable
NO_SERVERS_AVAILABLECMD
Retry worksWebmail API & MCP

Sending is temporarily unavailable. Retry in a few seconds.

Link: #no_servers_available
UNSUBSCRIBE_UNAVAILABLE503
Retry worksRetry-AfterEmail API

Temporary problem creating the unsubscribe link. Retry in a few seconds.

Link: #unsubscribe_unavailable
UNKNOWN_COMMANDCMD
Fix firstWebmail API & MCP

Check the command name in the API reference (or call whoami / tools/list).

Link: #unknown_command

Codes not listed here: read the message, and retry only on 5xx or 429.