---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://docs.sendcorex.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.sendcorex.com/llms.txt"
---

Source: https://docs.sendcorex.com/errors

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_HEADER` 401

Fix first Email API Webmail API & MCP

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

Link: #missing_auth_header

`INVALID_API_KEY` 401 / CMD

Fix first Email API Webmail 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_TOKEN` 401 / CMD

Fix first Email API Webmail API & MCP

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

Link: #invalid_token

`WRONG_CREDENTIAL_TYPE` 401 / CMD

Fix first Email API Webmail API & MCP

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

Link: #wrong_credential_type

`MISSING_SCOPE` 403 / CMD

Fix first Email API Webmail 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_PRIVILEGES` 401 / CMD

Fix first Email API Webmail 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_UNAVAILABLE` 503

Retry works Retry-After Email API Webmail API & MCP

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

Link: #auth_unavailable

`UNAUTHORIZED` CMD

Fix first Webmail API & MCP

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

Link: #unauthorized

`API_KEY_PAUSED` 403

Fix first Email API Webmail 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_EXPIRED` 401

Fix first Webmail 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_ALLOWED` 403

Fix first Webmail 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_PASSWORD` SMTP 535 5.7.8

Fix first SMTP Connection 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_USERNAME` SMTP 535 5.7.8

Fix first SMTP Connection 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_FAILURES` SMTP 535 5.7.8

Fix first SMTP Connection 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_LOCKED` SMTP 535 5.7.8

Fix first SMTP Connection 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_BLOCKED` SMTP 535 5.7.8

Retry works SMTP Connection 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_ALLOWED` SMTP 535 5.7.8

Fix first SMTP Connection 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_BLOCKED` SMTP 421 4.7.1

Fix first SMTP Sent 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_BLOCKED` CMD

Fix first Webmail 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_SERVICE` CMD

Fix first Webmail API & MCP

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

Link: #not_self_service

`UNBLOCK_QUOTA` CMD

Fix first Webmail 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_BLOCKED` 401 / 403 / CMD

Fix first Email API Webmail API & MCP

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

Link: #account_blocked

`ACCOUNT_SUSPENDED_SPOOFING` 403 / CMD

Fix first Email API Webmail API & MCP

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

Link: #account_suspended_spoofing

`USER_NOT_FOUND` 401 / CMD

Fix first Email API Webmail API & MCP

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

Link: #user_not_found

`EMAIL_NOT_VALIDATED` 401 / CMD

Fix first Email API Webmail 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_KEY` 403

Fix first Email API Webmail 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_VALIDATED` 401 / CMD

Fix first Email API Webmail 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_FOUND` CMD

Fix first Webmail 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_MISMATCH` 401 / CMD

Fix first Email API Webmail 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_BLOCKED` 401 / CMD

Fix first Email API Webmail 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_HAUS` 401 / CMD

Fix first Email API Webmail 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_FOUND` CMD

Fix first Webmail 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_FORMAT` 400 / CMD

Fix first Email API Webmail API & MCP

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

Link: #invalid_sender_format

`INVALID_FROM_FORMAT` 400

Fix first Email API

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

Link: #invalid_from_format

`MISSING_FROM` 400

Fix first Email API

Add from (an address on a verified domain).

Link: #missing_from

`MISSING_SENDERNAME` 400

Fix first Email API

Add sender_name (the display name, e.g. your brand).

Link: #missing_sendername

`INVALID_SENDERNAME_FORMAT` 400

Fix first Email API

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

Link: #invalid_sendername_format

### Credits & limits 9

`API_KEY_DAILY_CAP_REACHED` 429

Retry works Retry-After Email API Webmail 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_LEFT` 401

Fix first Email API

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

Link: #no_credits_left

`INSUFFICIENT_CREDITS` CMD

Fix first Webmail API & MCP

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

Link: #insufficient_credits

`EMAIL_CREDITS_NOT_FOUND` 401

Retry works Email API

Temporary problem reading credits. Retry in a few seconds.

Link: #email_credits_not_found

`CREDITS_UNAVAILABLE` CMD

Retry works Webmail API & MCP

Temporary problem reading credits. Retry in a few seconds.

Link: #credits_unavailable

`DAILY_LIMIT` 403 / CMD

Fix first Email API Webmail 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_REACHED` 403

Fix first Email 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

`PAID_PLAN_REQUIRED` CMD

Fix first Webmail API & MCP

This feature needs a paid plan. Upgrade in Dashboard → Billing.

Link: #paid_plan_required

`RISKY_TLD_REQUIRES_PAID_PLAN` CMD

Fix first Webmail 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_JSON` 400

Fix first Email API Webmail 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_ARGS` 400

Fix first Webmail API & MCP

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

Link: #invalid_args

`INVALID_ARGUMENT` CMD

Fix first Webmail API & MCP

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

Link: #invalid_argument

`MISSING_TO` 400

Fix first Email API

Add at least one recipient in to.

Link: #missing_to

`MISSING_SUBJECT` 400 / CMD

Fix first Email API Webmail API & MCP

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

Link: #missing_subject

`MISSING_BODY` 400

Fix first Email API

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

Link: #missing_body

`INVALID_TOADDRESS` 400 / CMD

Fix first Email API Webmail API & MCP

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

Link: #invalid_toaddress

`INVALID_RECIPIENT` CMD

Fix first Webmail API & MCP

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

Link: #invalid_recipient

`RECIPIENT_LIMIT_EXCEEDED` 400 / CMD

Fix first Email API Webmail API & MCP

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

Link: #recipient_limit_exceeded

`TOADDRESS_LIMIT_EXCEEDED` 400

Fix first Email API

Too many addresses in to. Split into several calls.

Link: #toaddress_limit_exceeded

`TOO_MANY_RECIPIENTS` CMD

Fix first Webmail API & MCP

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

Link: #too_many_recipients

`RECIPIENT_UNSUBSCRIBED` 422 / CMD / SMTP 550 5.7.1

Fix first Email API Webmail API & MCP

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

Link: #recipient_unsubscribed

`FORBIDDEN_HTML_CONTENT` 403

Fix first Email API

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

Link: #forbidden_html_content

`UNSAFE_HTML` CMD

Fix first Webmail API & MCP

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

Link: #unsafe_html

`MISSING_UNSUBSCRIBE_PLACEHOLDER` 400

Fix first Email API

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

Link: #missing_unsubscribe_placeholder

`HEADER_NOT_ALLOWED` 400

Fix first Email API

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

Link: #header_not_allowed

`INVALID_HEADER_VALUE` 400

Fix first Email API

Header values cannot contain line breaks (CR/LF). Remove them.

Link: #invalid_header_value

`INVALID_ATTACHMENT` 400

Fix first Email API Webmail API & MCP

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

Link: #invalid_attachment

`DANGEROUS_ATTACHMENT` 400

Fix first Email 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_BLOCKED` CMD

Fix first Webmail 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_LARGE` 413

Fix first Webmail 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_AT` 400

Fix first Email API

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

Link: #invalid_scheduled_at

`INVALID_TIME` CMD

Fix first Webmail API & MCP

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

Link: #invalid_time

`INVALID_SENDING_IP` 400

Fix first Email API

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

Link: #invalid_sending_ip

`SPAM_DETECTED` 403 / CMD

Fix first Email API Webmail 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_FOUND` CMD

Fix first Webmail API & MCP

Check the template id with template_list (or list_templates).

Link: #template_not_found

`DRAFT_NOT_FOUND` CMD

Fix first Webmail API & MCP

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

Link: #draft_not_found

`ALREADY_SENT` CMD

Fix first Webmail API & MCP

This was already sent. Do not send again.

Link: #already_sent

`NOT_FOUND` 404

Fix first Webmail API & MCP

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

Link: #not_found

`EMAIL_NOT_FOUND_OR_ALREADY_SENT` CMD

Fix first Email API

The email was already sent or the id is wrong. Use the id returned by the send (ids[].id).

Link: #email_not_found_or_already_sent

### Idempotency 4

`INVALID_IDEMPOTENCY_KEY` 400 / CMD

Fix first Email API Webmail API & MCP

Use 1–255 characters: letters, numbers, _ - : . (a UUID works).

[How idempotency works →](https://docs.sendcorex.com/idempotency) Link: #invalid_idempotency_key

`IDEMPOTENCY_KEY_REUSED` 422 / CMD

Fix first Email API Webmail API & MCP

This key was used for a different email. Generate a new key for each different email; reuse a key only to retry the exact same call.

[How idempotency works →](https://docs.sendcorex.com/idempotency) Link: #idempotency_key_reused

`IDEMPOTENCY_IN_PROGRESS` 409 / CMD

Retry works Retry-After Email API Webmail API & MCP

The first call with this key is still running. Wait 1 second and retry the same call with the same key.

[How idempotency works →](https://docs.sendcorex.com/idempotency) Link: #idempotency_in_progress

`IDEMPOTENCY_REPLAY_FAILED` CMD

Fix first Webmail API & MCP

The email was already sent. Do not send it again.

[How idempotency works →](https://docs.sendcorex.com/idempotency) Link: #idempotency_replay_failed

### Temporary errors & retries 12

`RATE_LIMITED` 429

Retry works Retry-After Webmail API & MCP

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

Link: #rate_limited

`TOO_MANY_CONCURRENT_CONNECTIONS` 429

Retry works Retry-After Email 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_BLOCKED` 429

Fix first Retry-After Email 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_BLOCKED` 429

Fix first Retry-After Email 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_BLOCKED` 429

Fix first Retry-After Email 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_ERROR` 500

Retry works Email 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

`INTERNAL` 500

Retry works Webmail API & MCP

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

Link: #internal

`PERSIST_FAILED` 500

Retry works Email API

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

Link: #persist_failed

`SEND_UNAVAILABLE` CMD

Retry works Webmail API & MCP

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

Link: #send_unavailable

`NO_SERVERS_AVAILABLE` CMD

Retry works Webmail API & MCP

Sending is temporarily unavailable. Retry in a few seconds.

Link: #no_servers_available

`UNSUBSCRIBE_UNAVAILABLE` 503

Retry works Retry-After Email API

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

Link: #unsubscribe_unavailable

`UNKNOWN_COMMAND` CMD

Fix first Webmail 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.
