Skip to content

Errors

Errors are JSON of the form { "error": "Human-readable message" } with an HTTP status. MCP tools return the same message as text starting with Error:. Some errors also carry a stable machine-readable code next to the message, for example { "error": "You are not a member of this team", "code": "team_access" }. Rate-limit errors (429) add retry_after seconds and a Retry-After header. Internal failures never include internal details.

HTTP status codes
StatusMeaningTypical cause
400Bad requestA parameter is missing or invalid: an invalid address, an unknown folder, scope or event, a non-https webhook URL, or no recipients.
401UnauthorizedMissing or invalid API key or session. Send Authorization: Bearer <key>.
402Plan limitInbox, recipient-per-message or custom domain limit reached for the account's plan, or a feature (custom domains) that needs Pro.
403ForbiddenSeveral causes, told apart by the message: the API key lacks the required scope ("This API key lacks the mail:send scope"), the key is restricted to some inboxes ("Inbox-restricted API keys can't ..."), the endpoint needs a signed-in session, your team role is too low ("This needs the admin role in the team"), the account is suspended, or sending is paused for the account or domain. A team you don't belong to returns code team_access.
404Not foundThe inbox, message, thread, label, webhook, team or other resource doesn't exist, isn't yours, or (for inbox-restricted keys) is outside the key's inboxes. Teams you aren't in look nonexistent. Originals of mail from before they were kept also return 404.
408TimeoutGET /inboxes/:inbox/wait found no matching message in time. Retry. (The MCP tool returns null instead.)
409ConflictThe address or domain is taken, was used before, or is still in use; a team's last owner can't leave; the team still has an active subscription; or you already have a subscription.
410GoneThe inbox expired (its ttl_minutes passed), or a team invitation expired.
413Too largeAttachments exceed 20 MB.
422Not sentA recipient is on your suppression list after a bounce or complaint.
429Rate limitA burst limit or the daily send limit was exceeded. See Rate limits below.
500Server errorSomething went wrong on our side. Details are logged; retry later.
502Bad gatewayA team invitation email couldn't be sent. Try again later.