Skip to main content

Error codes

Every error response includes a machine-readable code alongside the HTTP status.

CodeHTTP statusDescription
unauthorized401API key is missing, invalid, or revoked.
account_not_active403The account that owns the API key is restricted or suspended.
validation_error400The request body failed validation (missing or malformed fields).
payload_too_large413The request body exceeds the size limit.
domain_not_verified422The from address's domain has not completed SPF/DKIM verification.
invalid_recipient422One or more recipient addresses failed validation.
suppressed_recipient422A recipient is on your suppression list (bounced or complained) and was not sent to.
sending_limit_exceeded429The account's monthly sending limit would be exceeded by this request.
sending_not_configured503Sending is temporarily unavailable because the sending provider is not configured.
internal_error500An unexpected error occurred. Safe to retry with the same idempotency_key.