Documentation

Errors and limits

This page lists how Pombus reports an error, the codes you will meet most often, and the limits that apply to requests, reads and sends.

The error body

Every error from a /v0 route has the same JSON shape.

{
  "name": "Too Many Requests",
  "code": "quota_exceeded",
  "message": "quota exceeded",
  "scope": "inbox",
  "limit": 200,
  "window_seconds": 86400
}
FieldMeaning
nameThe HTTP status in words.
codeA stable code in snake_case. When the error has no specific code, this is the generic code of the status: bad_request, unauthorized, forbidden, not_found, conflict, payload_too_large, unprocessable_entity, too_many_requests, internal_error, bad_gateway, service_unavailable.
messageA sentence for a person. Write your program against code and the HTTP status.
errorsPresent on 400 and 422. For a 422 raised by request validation, the list of fields that failed. Otherwise null.
other fieldsSome errors add detail, such as addresses, scope, limit or page_count.

Routes that wait before a retry send a Retry-After header, in seconds.

Errors through MCP

A tool that fails returns a short text instead of JSON.

TextMeaning
error: not_foundThe HTTP answer was 401, 403 or 404. The three are reported as one. See below.
error: <code>Any other HTTP error, with the code of the table below.
error: invalid_argument:<field>An argument is missing or has the wrong type.
error: inbox_requiredThe key reaches several inboxes and the call had no inbox_id.
error: pod_requiredThe key reaches several spaces and the call had no pod_id.
error: networkPombus could not be reached.
error: bad_responseThe answer was not what the tool expected.
error: internalAn unexpected failure in the MCP server.
unknown tool: <name>The tool does not exist, or the key does not allow it.
POMBUS_API_KEY is not set. ...The local server runs without a key.

What error: not_found can mean

The MCP server turns every 401, 403 and 404 into the same text, error: not_found. The agent cannot tell these cases apart:

HTTPCases
401The key is wrong, revoked or expired.
403The key lacks the permission; a recipient is suppressed (suppressed), on the send block list (recipient_blocked) or not on the allow list of an allow-list-only key (not_in_allowlist); the plan has no inbox or domain left (inbox_limit, domain_limit).
404The item does not exist, or it is outside the key's scope; the message to reply to is not visible (reply_target_not_found); a page past the end of a PDF.

When a send fails with error: not_found, the agent should tell you instead of retrying. The same call on the HTTP API returns the status and the code. npx pombus doctor tells you whether the key itself still works.

Codes

Authentication and permission

StatuscodeCauseWhat to do
401unauthorizedNo key, a wrong key, a revoked key or an expired key.Check the Authorization: Bearer header. Create a new key if needed.
403missing_permissionThe key does not have the permission of the route.Use a key with that permission. See API keys and permissions.
403forbidden (message: scoped key: not permitted on this route)A key with scope inbox or domain called a route that does not name an inbox.Use the route under /v0/inboxes/{inbox_id}/..., or connect through Connect an agent (scope pod).
403platform_inbox_not_allowedAn API key tried to create an inbox at @pombus.com.Create the inbox on a verified domain of your own.
403inbox_limit, domain_limitThe plan has no inbox or domain left.Delete one, or change plan.
404not_foundThe item does not exist, or it belongs to another account or scope. Both give the same answer.Check the id.

Requests

StatuscodeCauseWhat to do
400bad_requestThe request is malformed. message says what is wrong, for example q must be at least 2 characters or invalid page_token.Fix the request.
400bad_fieldA field has the wrong form.Fix the field.
409conflict (message: message must be in trash before permanent delete)DELETE /v0/messages/{message_id} on a message that is not in the trash.Move it to the trash first.
409no_verified_domainA key was requested for a domain that is not verified.Verify the domain first.
409pod_not_empty, pod_has_domainsThe space still has inboxes or domains.Remove them first.
409domain_has_inboxesThe domain still has inboxes.Remove them first.
410blob_missing, blob_unreadableThe message exists, but its stored bytes cannot be served.Retrying does not help. Report it to Pombus.
413too_largeThe body or the file is over a limit.Send less.
422unprocessable_entityA parameter has the wrong type or value. errors lists the fields. Also: thread has 100 or more messages on a label update of a large thread, and cannot add or remove system labels.Fix the parameters.

Sending

Send and reply has the full table. The codes are no_recipient, too_many_recipients, bad_field, recipient_refused, pod_paused, domain_send_paused (400), suppressed, recipient_blocked, not_in_allowlist (403), reply_target_not_found (404), domain_not_ready (409), too_large (413), unsupported_type (415), quota_exceeded, reputation_throttled (429).

Attachments

StatuscodeCauseWhat to do
403forbidden (message: invalid or expired signature)A download link older than 5 minutes, or changed.Ask for a new link with get_attachment.
404page_out_of_rangeThe page is past the end of the PDF. The answer has page_count.Ask for an existing page.
404no_page_mapThe attachment has no page text: it is not a PDF that was read page by page.Use the attachment's md, or fetch the file.
413too_largeThe PDF is over 25 MB and cannot be rendered.Fetch the file.
429render_busyAnother render is running. Retry-After: 1.Retry after a second.
429rate_limitedMore than 30 page images in a minute in this space. Retry-After: 60.Wait a minute.
429render_budget_exhaustedThe daily render budget of the space is spent. Retry-After is the time to the next UTC midnight.Fetch the file instead.
503render_unavailablePage rendering is off on the server.Fetch the file instead.

Rate limits

StatuscodeCauseWhat to do
429too_many_requests, with "reason": "busy"Search is busy. Retry-After: 1.Retry after a second. Run one search at a time per key.
429quota_exceededA sending limit of the 24-hour window is reached.Wait for the window.
429reputation_throttledToo many bounces or spam reports.Fix the recipient list.

Rate limits

WhatLimitWhen exceeded
SearchOne search at a time per key. Two at a time on the whole service.429, reason: busy, Retry-After: 1
Search time500 ms per search.The answer has truncated: true and searched_through. This is not an error: the search covered part of the mail.
Search queryAt least 2 characters.400
Page images30 per minute per space, one at a time, plus a daily budget.429
Keys created in the webmail10 per hour per user.429
OAuth endpoints of mcp.pombus.com30 requests per minute per IP address and endpoint.429 rate_limited, Retry-After: 60
WebSocket connections20 per space, 40 for all your spaces together.The connection is closed with code 1013. Try again later.

Limits by plan

LimitFreeBuilderProScale
External recipients per 24 hours, all your spaces together1005001,0002,000
Inboxes31050250
Domains1525100

Limits that are the same on every plan

Sending

LimitValue
Message size, with attachments25 MB
Recipients per message with an API key10
Recipients per message from the webmail50
Attachments per message100
Inline images per message8, of 256 KB each
External recipients per 24 hours, one inbox200
External recipients per 24 hours, one space1,000
External recipients per 24 hours, a space less than 24 hours old25

Reading

LimitValue
Messages in one thread read100. cur is the cursor for older ones.
Body text in one thread readAbout 4 MB. Over it, a message comes with body_omitted: true.
Attachment text per attachment in a read20,000 characters
Attachment text per message in a read100,000 characters
Download link5 minutes

Attachments lists the limits of text extraction.

Organizing

LimitValue
Labels per space200
Label name64 characters
List entries per space10,000
TrashMessages are deleted permanently after 30 days in the trash.

API keys and connections

LimitValue
Authorization through mcp.pombus.com1 hour
Time to finish the consent screen10 minutes
WebSocket key checkEvery 30 seconds. A revoked or expired key closes the connection with code 4401.