---
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/it/api-reference/errors

Riferimento API

# Codici di errore

Ogni codice di errore che l'API può restituire, con il suo stato HTTP e cosa fare. Send e Receive usano formati di errore diversi.

## Invia email

Gli errori restituiscono un oggetto JSON con `error`, `code` e `responseTime`. Vedi [Invia email](https://docs.sendcorex.com/it/api-reference/email/send) .

- 401`MISSING_AUTH_HEADER`
Header Authorization assente.
- 401`INVALID_API_KEY`
La API key non è valida o è stata revocata.
- 401`ACCOUNT_BLOCKED`
L'account è stato bloccato.
- 401`NO_CREDITS_LEFT`
Crediti email insufficienti per tutti i destinatari. Ogni indirizzo to, cc e bcc usa 1 credito.
- 401`DOMAIN_NOT_VALIDATED`
Dominio del mittente non verificato.
- 401`LISTED_SPAM_HAUS`
Il dominio del mittente è in lista su Spamhaus.
- 401`ISP_DOMAIN_BLOCKED`
Non è consentito inviare da domini noti (gmail.com, outlook.com, ecc.).
- 401`FROM_HEADER_DOMAIN_MISMATCH`
Il dominio dell'header From non è autorizzato per questo mittente.
- 401`USER_NOT_FOUND`
Utente non trovato.
- 401`MISSING_USER_PRIVILEGES`
Privilegi utente mancanti.
- 401`EMAIL_CREDITS_NOT_FOUND`
Errore nel recupero dei crediti email.
- 401`EMAIL_NOT_VALIDATED`
L'indirizzo email dell'account non è ancora stato verificato.
- 429`CREDENTIAL_TEMPORARILY_BLOCKED`
API key bloccata temporaneamente per ripetute violazioni delle policy.
- 429`IP_TEMPORARILY_BLOCKED`
IP richiedente bloccato temporaneamente per ripetute violazioni delle policy.
- 429`TOO_MANY_CONCURRENT_CONNECTIONS`
Troppe richieste simultanee da questo IP. Riprova tra poco.
- 400`INVALID_JSON`
Il body della richiesta non è un JSON valido.
- 400`MISSING_FROM`
Il campo from manca o è vuoto.
- 400`INVALID_FROM_FORMAT`
Il campo from deve essere un indirizzo email valido.
- 400`MISSING_SENDERNAME`
Il campo senderName manca o è vuoto.
- 400`INVALID_SENDERNAME_FORMAT`
Il campo senderName contiene caratteri non validi.
- 400`MISSING_SUBJECT`
Il campo subject manca o è vuoto.
- 400`MISSING_BODY`
Il campo body manca o è vuoto.
- 400`MISSING_TOADDRESS`
Il campo to manca o è vuoto.
- 400`MISSING_TO`
Il campo to manca o è vuoto.
- 400`INVALID_TOADDRESS`
Uno o più indirizzi destinatari non sono validi.
- 400`TOADDRESS_LIMIT_EXCEEDED`
Più di 50 destinatari nell'array to.
- 400`INVALID_CCADDRESS`
Uno o più indirizzi cc non sono validi.
- 400`INVALID_BCCADDRESS`
Uno o più indirizzi bcc non sono validi.
- 400`RECIPIENT_LIMIT_EXCEEDED`
to, cc e bcc insieme hanno più di 50 destinatari unici.
- 400`INVALID_SCHEDULED_AT`
scheduled_at non è una data valida o è nel passato.
- 400`INVALID_SENDER_FORMAT`
Il formato dell'email del mittente non è valido.
- 400`HEADER_NOT_ALLOWED`
La chiave dell'header personalizzato non è nell'elenco consentito (List-Unsubscribe, List-Id, X-*, ecc.).
- 400`INVALID_HEADER_VALUE`
Il valore dell'header contiene caratteri non validi (CR/LF non ammessi).
- 400`DANGEROUS_ATTACHMENT`
Uno o più allegati sono stati bloccati per motivi di sicurezza.
- 400`INVALID_ATTACHMENT`
Il contenuto di un allegato non è base64 valido.
- 400`MISSING_UNSUBSCRIBE_PLACEHOLDER`
unsubscribe è true ma il body non ha un segnaposto di disiscrizione ([unsubscribe_url], [unsubscribe], [unsub_url] o [opt_out_url]).
- 403`ACCOUNT_RESTRICTED`
L'account è temporaneamente limitato.
- 403`DAILY_LIMIT`
Raggiunto il limite giornaliero di invio email.
- 403`MARKETING_LIMIT_REACHED`
Raggiunto il limite marketing giornaliero del piano gratuito: 30 email marketing o di cold outreach al giorno, contate per destinatario su una finestra mobile di 24 ore. La risposta include limit, used, recipients e upgradeUrl. Le email transazionali partono comunque; nulla va in coda.
- 403`FORBIDDEN_HTML_CONTENT`
L'HTML contiene contenuti attivi non consentiti nelle email (script, iframe, form, input, button, embed, object, svg, handler on*, link javascript:, meta refresh…). La risposta elenca cosa è stato trovato. Usa un <a> con stile al posto di pulsanti o form.
- 403`SPAM_DETECTED`
Contenuto dell'email segnalato come spam. La risposta include quarantine_id e le istruzioni per lo sblocco.
- 403`SENDER_NAME_MISMATCH`
Rilevati più nomi mittente per lo stesso indirizzo.
- 403`FOLLOWUP_PATTERN_DETECTED`
Contenuto dell'email segnalato come schema di follow-up sospetto ripetuto.
- 403`SCAM_PATTERN_DETECTED`
Contenuto dell'email segnalato come schema di truffa.
- 403`SHARED_DOMAIN_REQUIRES_PAID_PLAN`
Questo dominio di invio condiviso è disponibile solo nei piani a pagamento. La risposta elenca in allowedDomains i domini condivisi che puoi usare, più upgradeUrl. Usane uno o il tuo dominio verificato.
- 403`ACCOUNT_SUSPENDED_SPOOFING`
Account sospeso per ripetuti tentativi di spoofing dell'header From.
- 400`INVALID_IDEMPOTENCY_KEY`
L'header Idempotency-Key non è valido. Usa 1–255 caratteri: lettere, numeri, _ - : .
- 409`IDEMPOTENCY_IN_PROGRESS`
Una richiesta con la stessa Idempotency-Key è ancora in elaborazione. Attendi (Retry-After: 1) e riprova con la stessa chiave.
- 422`RECIPIENT_UNSUBSCRIBED`
Sent with unsubscribe enabled (unsubscribe: true) to someone who already unsubscribed through the Sendcorex link. The whole request is refused and the unsubscribed array lists them. This person unsubscribed from you: remove them and send again, and do not send to them again.
- 422`IDEMPOTENCY_KEY_REUSED`
Questa Idempotency-Key è già stata usata con un body diverso. Usa una chiave nuova per ogni nuova email.
- 500`INTERNAL_SERVER_ERROR`
Errore imprevisto del server. Riprova.
- 500`PARSE_ERROR`
Impossibile elaborare il contenuto dell'email (errore di parsing MIME).
- 500`PERSIST_FAILED`
Impossibile mettere l'email in coda (errore di salvataggio nel database).
- 503`AUTH_UNAVAILABLE`
Impossibile verificare la API key in questo momento. Riprova.
- 503`UNSUBSCRIBE_UNAVAILABLE`
Servizio del link di disiscrizione temporaneamente non disponibile. Riprova più tardi.

## Limiti del piano gratuito

Con il piano gratuito, marketing e cold outreach sono limitati a 30 email al giorno, contate per destinatario (un'email a 5 persone conta 5) su una finestra mobile di 24 ore. Le email transazionali non sono interessate. Oltre il limite la richiesta viene rifiutata e nulla va in coda: invia di nuovo quando la finestra si azzera, o passa a un piano superiore.

403 `MARKETING_LIMIT_REACHED`

Restituito da `/v3.0/send` quando questa email supererebbe il limite marketing del piano gratuito. `used` è quanto già conteggiato nelle ultime 24 ore e `recipients` quanti ne aggiungerebbe questa email.

```
{
  "code": "MARKETING_LIMIT_REACHED",
  "error": "Daily marketing limit reached for the free plan (30/30, 2 recipients in this email). Transactional emails still go out.",
  "limit": 30,
  "used": 30,
  "recipients": 2,
  "upgradeUrl": "https://app.sendcorex.com/dashboard/billing"
}
```

403 `SHARED_DOMAIN_REQUIRES_PAID_PLAN`

Restituito quando crei un mittente su un dominio condiviso disponibile solo nei piani a pagamento. `allowedDomains` elenca i domini condivisi che il tuo piano può usare; il tuo dominio verificato funziona sempre.

```
{
  "code": "SHARED_DOMAIN_REQUIRES_PAID_PLAN",
  "error": "This shared domain is available on paid plans. Use inboxtaken.com or your own domain.",
  "allowedDomains": ["inboxtaken.com"],
  "upgradeUrl": "https://app.sendcorex.com/dashboard/billing"
}
```

Regole complete: [Acceptable Use Policy — Piano gratuito](https://sendcorex.com/terms-condition#free-plan)

## Receive: errori HTTP

Rifiutano l'intera richiesta. Il body è `{ "type": "ERROR", "code": "...", "message": "..." }`. Con `RATE_LIMITED`, attendi i secondi indicati nell'header `Retry-After`.

- 400`INVALID_JSON`
The body is not {"commands":[...]} or has more than 20 commands.
- 401`MISSING_AUTH_HEADER`
No Authorization header was sent.
- 401`INVALID_TOKEN`
The token is malformed, unknown or revoked.
- 401`TOKEN_EXPIRED`
The access token has expired. Call Refresh Token and repeat the request.
- 401`INVALID_REFRESH_TOKEN`
The refresh token is invalid, expired, revoked or already used. Generate a new token in the dashboard.
- 429`RATE_LIMITED`
More than 15 requests/s or 15 in flight for the same IP + mailbox. Wait the number of seconds in Retry-After.
- 503`AUTH_UNAVAILABLE`
Authentication is temporarily unavailable. Try again.

## Receive: errori dei comandi

Tornano dentro il risultato del comando, con HTTP `200`, così un comando fallito non blocca gli altri della stessa richiesta. Controlla `results[].type`. Vedi [Esegui comandi](https://docs.sendcorex.com/it/api-reference/receive-emails/routes/run-commands) .

- CMD`INVALID_ARGS`
A required argument is missing or invalid.
- CMD`UNKNOWN_COMMAND`
The command name does not exist.
- CMD`NOT_FOUND`
The message, thread or folder does not exist for this token.
- CMD`INVALID_CURSOR`
The cursor is malformed or belongs to another account or folder.
- CMD`ALREADY_EXISTS`
A folder or label with this name already exists.
- CMD`NOT_IN_TRASH`
delete only works on messages in Trash or Spam. Use move to send a message to Trash first.
- CMD`SENDER_NOT_FOUND`
The sender behind the token is not registered.
- CMD`SENDER_NO_DOMAIN`
The sender behind the token has no domain.
- CMD`NO_CREDITS`
The account has fewer email credits than recipients (1 credit per copy).
- CMD`NO_RECIPIENT`
The conversation has no recipient to reply to.
- CMD`INVALID_RULE`
The rule is not valid. The message says which condition or action and why.
- CMD`LIMIT`
The mailbox reached the limit (100 rules, 200 templates or 100 labels).
- CMD`INVALID_TOADDRESS`
The to address is not a valid email.
- CMD`INVALID_CCADDRESS`
One of the cc addresses is not a valid email.
- CMD`INVALID_BCCADDRESS`
One of the bcc addresses is not a valid email.
- CMD`INVALID_RECIPIENT`
The recipient is missing or not a valid email.
- CMD`RECIPIENT_LIMIT_EXCEEDED`
to, cc and bcc together have more than 50 addresses.
- CMD`INVALID_ATTACHMENT`
An attachment content is not valid base64.
- CMD`FILE_BLOCKED`
A file was blocked by the security scan.
- CMD`ATTACHMENTS_TOO_LARGE`
The attachments of the email add up to more than 25 MB, or the mailbox already has 500 MB of uploads waiting to be sent.
- CMD`TOO_MANY_OPEN_COMPOSES`
The mailbox has 50 emails with uploads that were not sent yet. Send them, or wait for the unused ones to be deleted after 48 hours.
- CMD`ATTACHMENT_MISSING`
An uploaded attachment no longer exists (uploads not sent within 48 hours, and not used by a draft or scheduled email, are deleted). Upload it again.
- CMD`ALREADY_SENT`
The compose_uid belongs to an email that was already sent.
- CMD`INVALID_TIME`
send_at is missing, less than 1 minute away or more than 1 year away.
- CMD`MISSING_SUBJECT`
A new email needs a subject.
- CMD`MISSING_TARGET`
Reply and forward need the original email, and it must still exist.
- CMD`DRAFT_NOT_FOUND`
The draft does not exist anymore: it was sent, deleted, or saved again (every save returns a new draft_id).
- CMD`NOT_SCHEDULED`
The email was already sent or canceled.
- CMD`SEND_FAILED`
The send was refused. The email is back in Drafts and the message says why.
- CMD`NO_UNSUBSCRIBE`
The email has no List-Unsubscribe header.
- CMD`RECIPIENT_UNSUBSCRIBED`
One or more recipients unsubscribed from this mailbox. `recipients` lists them: remove them or send again with `unsubscribe: false`.
- CMD`PAID_PLAN_REQUIRED`
More than one address in `to` needs a paid plan.
- CMD`TOO_MANY_RECIPIENTS`
`to` has more than 30 addresses.
- CMD`INVALID_AUDIENCE`
The audience is not valid: unknown group, a segment of another mailbox or a message this mailbox didn’t send.
- CMD`AUDIENCE_OVER_LIMIT`
The audience has more people than you can send to (up to 5,000 per email and your daily limit). `total` and `allowed` say how many.
- CMD`EMPTY_AUDIENCE`
Nobody in this audience right now.
- CMD`BEST_TIME_NEEDS_AUDIENCE`
`best_time` needs an `audience` and `mode: new`.
- CMD`READ_ONLY_ACCESS`
The token or app has Read only access and the command writes. In the attachment upload route it is HTTP 403.
- CMD`INVALID_IDEMPOTENCY_KEY`
`idempotency_key` must have 1–255 characters: letters, numbers, `_ - : .`.
- CMD`IDEMPOTENCY_KEY_REUSED`
This `idempotency_key` was already used with different args. Use a new key for every new email.
- CMD`IDEMPOTENCY_IN_PROGRESS`
A call with the same `idempotency_key` is still running. Try again in 1 second with the same key.
- CMD`INTERNAL`
Server error. The detail is only written to the server log.
