What changed, and what you must do.
Release notes for the temporary-email API. Every entry states whether it is drop-in or breaking, and the exact client-side action required.
Русская версия · Full documentation · Machine-readable feed · OpenAPI JSON · AI instructions
How to track updates
Poll GET /changelog.json — it is public, needs no token, and reports the current version plus the full history. Compare latest against the version you last integrated against.
curl -sS https://smailpro.bridgefive.top/changelog.json | jq '{version, latest}'
# Every release entry carries breaking[] and action.
curl -sS https://smailpro.bridgefive.top/changelog.json | jq '.releases[0] | {version, breaking, action}'
We do not remove or rename an existing field without a breaking entry. Additive fields can appear at any time, so parse defensively and ignore unknown keys.
v2.10.3 drop-in2026-09-19
The request-body contract is published where clients read it
A managed key lost seven POST /wait calls to 400 bad_json in one session while its other fifteen succeeded: the bodies were malformed, and no surface the client's author could read said what the parser expects or what either 400 means. The OpenAPI document also described no request body for /wait, /otp, /link, /create or /poll/batch, so a client generating from the spec had to guess field names the parser has always accepted. Nothing in the service changed; the documents now state the contract.
Added
- The OpenAPI document describes the request body of every writing route: /create, /restore, /poll, /poll/batch, /wait, /otp and /link, with every field the parser accepts - timeout, interval, from_contains, subject_contains, body_contains, max_interval, backoff, body, include_existing, length, permissive, hosts - their types, ranges and defaults.
Fixed
- /docs and llms.txt now state that a POST body must be one raw JSON document and distinguish the two 400s a malformed request can earn: bad_json (the body is not parseable JSON) from bad_argument (the body parsed, but a field is wrong); the Russian mirrors say the same.
- The /poll request schema omitted the alias handle, so a spec-generated client could not address an inbox by name.
v2.10.2 drop-in2026-09-19
The disk severity now survives a service restart
The admin panel and the smailpro-disk-alert timer apply the same hysteresis rules but kept their episode state apart: the timer persisted its severity, the service held its own in memory only. A restart while free space sat in the 10-12% recovery band therefore re-entered at the entry threshold, and the panel read `ok` while the timer's journal still showed the episode open. The service now persists its severity and its rate samples to a state file under its own StateDirectory and restores them at startup. Persistence is visibility, not authority: the live statvfs reading decides everything, a failed or corrupt state write is logged and ignored, and a restart whose state cannot be restored behaves exactly as before.
Changed
- After a restart the disk condition continues the previous episode instead of re-entering at the entry threshold: inside the recovery band `disk.severity` keeps the persisted tier until the reading recovers past the leave-threshold or drops deeper. `GET /ready` responses keep their exact shape; only the value of `disk.severity` immediately after a restart can differ - it now agrees with the still-open smailpro-disk-alert episode.
Fixed
- A service restart during a disk episode no longer flips the admin panel's disk row (and the public /ready severity) back to `ok` while the timer's journal still shows the episode open.
v2.10.1 breaking2026-09-19
The public /ready disk block no longer publishes host capacity
2.10.0 added a `disk` block to the public `/ready` response and served the whole reading from it, including `free_bytes`, `total_bytes`, `free_pct`, `rate_bps`, `eta_seconds` and `thresholds`. `/ready` is answered with no credential, so anyone who asked learned exactly how much room the host has, how fast it is draining and when it runs out. The block now reports the CONDITION only - `severity` and the `reason` that raised it - and every figure remains available to the operator in the session-gated admin panel.
Breaking
- `free_bytes`, `total_bytes`, `free_pct`, `rate_bps`, `eta_seconds` and `thresholds` are no longer present in `disk` on `GET /ready`. A client that parsed them from that response must stop: read `severity` and `reason` instead, or take the figures from the authenticated admin panel. `disk.severity`, `disk.reason`, `disk.path` and `disk.measured` are unchanged.
What you need to do
If you read disk figures from the public GET /ready response, switch to `disk.severity` (`ok` | `warning` | `critical` | `unknown`) and `disk.reason` (`none` | `threshold` | `rate`); the numeric fields are gone from that route and the numbers now live only in the admin panel.
Changed
- `/ready` publishes a coarse `disk` block: `path`, `measured`, `severity` (`ok` | `warning` | `critical` | `unknown`), `reason` (`none` | `threshold` | `rate`) and `error` when the reading could not be taken. A low reading is still visible to a probe - only the measurements are withheld.
- The admin panel block is unchanged: it still carries `free_bytes`, `total_bytes`, `free_pct`, `rate_bps`, `eta_seconds`, `thresholds` and the remedy text, because that route sits behind the admin session. Nothing was removed from it.
Fixed
- The public `/ready` response no longer discloses the host's free space, total capacity, percentage free, drain rate, projected time to full, or the warning and critical thresholds. A reader of the public edge can see that the condition is `warning` or `critical`; it can no longer measure the box.
v2.10.0 drop-in2026-09-19
Free disk space is reported in /ready and in the admin panel
On 2026-09-19 the root filesystem filled completely and the service could not write for about 12 minutes: API-key creation answered HTTP 500 and session, rollup and key-touch writes failed with Errno 28. The unit stayed active and /health kept answering 200 the whole time, because at ENOSPC only the write paths fail, so no health check of the service could have caught it. Headroom is now visible where it is looked for: in the /ready response for monitoring, and as a row in the admin panel for the operator, before the first failed write.
Added
- /ready reports a `disk` block: the state of the filesystem the service writes to, read with statvfs as the service account sees it (`f_bavail`), as `severity` and `reason` - the fields a probe needs to see the condition. The measurements behind it (free and total bytes, percentage free, drain rate, projected time to full, thresholds) are shown in the admin panel. The field is added beside the existing ones: `upstream` is neither renamed nor moved, and nothing is removed.
- The admin panel shows headroom as a row on the overview page, with the full reading, and when it is low adds what to do about it: free /tmp and the tool caches first, vacuum the journal next, and grow the LVM volume last. The same wording is printed by the smailpro-disk-alert timer in the journal.
Changed
- The thresholds are the smailpro-disk-alert timer's own: warning below 10% free, critical below 4%, leaving warning only at 12% and critical only at 6%. The hysteresis is what stops a log rotation that frees a gigabyte from flapping the state. A contract test parses the timer's file and fails on any drift, so the two definitions cannot diverge silently.
v2.9.1 drop-in2026-09-09
Запросы неподдерживаемым методом больше не висят до таймаута
Запрос методом, которого у API нет — `OPTIONS`, `PUT`, `PATCH` — не получал ответа вообще: ответ 501 формировался, но оставался в буфере записи и уходил только при закрытии соединения по таймауту. Через nginx, который держит пул соединений к сервису, это давало 120 секунд ожидания и 504 от Cloudflare. Больнее всего это било по браузерным клиентам: перед кросс-доменным POST браузер сам посылает `OPTIONS` (CORS preflight), поэтому первый же такой запрос из расширения или веб-страницы вставал на две минуты. В логах при этом не было ни строки: запрос не доходил до обработчика маршрута.
Changed
- Ответ, после которого сервис намеренно закрывает соединение (401, отказ парсера, неподдерживаемый метод), теперь содержит заголовок `Connection: close`. Клиент и пул соединений nginx закрывают такой сокет сразу, вместо того чтобы вернуть его в пул и получить ошибку на следующем запросе.
Fixed
- `OPTIONS`, `PUT` и `PATCH` на любой путь отвечают 501 `http_error` немедленно (десятки миллисекунд на публичном адресе) вместо 120-секундного ожидания и 504. Это же исправление убирает 504 на CORS preflight, то есть браузерный клиент, которому нужен preflight, наконец получает ответ.
- Ответ на неподдерживаемый метод больше не терялся на переиспользованном keep-alive соединении. Сервис отвечал на новом соединении за миллисекунды и всё равно отдавал 504 через nginx, потому что признак «на этот запрос уже ответили» относился к соединению, а не к запросу: статус предыдущего успешного запроса подавлял ответ целиком.
v2.9.0 breaking2026-09-08
Re-attaching an address now asks which mailbox you mean
`alias` and `real` are two different mailboxes, and POST /restore was quietly assuming `alias` for everyone. Restoring a `real` address therefore re-attached a mailbox the caller had never used, answered 200 with an address and key, and every later poll reported the inbox as live with no mail — indistinguishable from mail that never arrived. The field now has to be stated, so the mistake is a clear rejection instead of an inbox that looks fine and stays empty.
Breaking
- POST /restore without `type` is now 400 `bad_argument` instead of silently restoring the `alias` mailbox. Every /restore caller must send the field. If you restore addresses created with {"type":"real"} — the default for real Gmail and Outlook inboxes — your previous calls were re-attaching a different mailbox, so adding the field also fixes empty polls you may have attributed to lost mail.
What you need to do
Add `type` to every POST /restore body, set to the value you created the address with, and store that value next to the address, key and timestamp so it survives a restart. If you no longer know which flavour an address is, create a new inbox rather than guessing: restoring the wrong flavour returns 200 and no mail.
Changed
- POST /restore requires `type`, exactly "alias" or "real", matching how the address was originally created. Omitting it, or sending any other value, is 400 `bad_argument` naming both accepted values.
- POST /create and POST /inboxes reject a `type` that is not "alias" or "real" instead of passing it upstream, where it surfaced as an unexplained failure. Both still treat the field as optional and still default to "alias", so nothing changes for a caller that omits it or already sends a valid value. The check runs before the create queue, so a rejected value costs no create slot and no Idempotency-Key.
Fixed
- POST /restore no longer re-attaches the wrong mailbox without saying so. A `real` address restored over HTTP was always re-attached as `alias`, because the field could not be sent at all: the response was a success and the mail was in a mailbox nobody was polling.
v2.8.0 breaking2026-09-07
Your aliases and idempotency keys are now private to your key
Two pieces of state were shared across every API key. The alias registry listed and resolved every stored inbox for any caller, so one client could read another client's mail by name. And an Idempotency-Key — a value the client chooses — was a single global namespace, so two clients using the same string were handed each other's created inbox, address and polling credential included.
Breaking
- Aliases created before this release, and any created from the admin panel or the command line, have no owning key recorded, so they are not addressable over the API. If your integration drives inboxes by `alias`, create them once more with `POST /inboxes` — the new records belong to your key. Polling with `address`+`key` is unaffected.
What you need to do
If you drive inboxes by `alias`, re-create the ones you use with `POST /inboxes` and keep using them as before; an alias that answers 404 was created before ownership existed. Treat 409 `alias_taken` as permanent: pick another name. If you poll with `address`+`key`, or you do not use aliases, nothing changes.
Changed
- `GET /inboxes` lists only the aliases your own key created. An alias belonging to another key answers 404 `not_found` on every route that takes one — the same answer as an alias that does not exist, so the API cannot be used to discover what other clients hold.
- `POST /inboxes` with an alias another key already holds is refused with 409 `alias_taken` instead of quietly repointing that name at your new inbox.
- An `Idempotency-Key` is private to the API key that presents it. Replaying your own scoped key with the same body returns its stored result; two different API keys using the same value never collide. Pre-cutover unscoped outcomes were discarded to close cross-key replay, so retrying a key first sent before this release may create one new inbox.
- An upstream refusal the provider did not explain on /poll, /wait, /otp and /poll/batch is now 502 `upstream_error` with Retry-After instead of 400 `bad_argument`. Only a body that genuinely names your request as the fault - an address outside the pool ("no … email found") or a validation error naming the field - stays a permanent 400.
- A response cut off in transit, where the connection dropped before the body finished arriving, is reported as 502 `network` with Retry-After instead of an unhandled HTTP 500. /wait retries it within your deadline like any other transient fault.
Fixed
- An `Idempotency-Key` whose create was rejected before it reached the provider is released instead of staying claimed. Retrying such a key answered 409 `idempotency_outcome_unknown` for a full day, for an inbox that was never created.
- `DELETE /inboxes/<alias>` no longer reports success while leaving the alias in place. A poll of the same alias finishing during the delete could write its rotated key straight back and restore the record.
- Two operations on one alias can no longer overlap. Deleting an alias while another request was polling it released the serialisation that keeps the stored polling credential valid, so the alias could be left holding a key the provider had already replaced.
Error codes introduced
| Status | Code | Meaning | Retry? |
|---|---|---|---|
409 | alias_taken | That alias is already held by another API key, or predates per-key ownership and belongs to the admin panel. | No — choose a different alias; retrying unchanged cannot succeed. |
v2.7.0 drop-in2026-09-05
A transient upstream hiccup is no longer your bug to fix
Clients reported intermittent failures rather than an outage. Two provider conditions that clear on their own were reported as permanent client errors, so well-behaved clients stopped retrying and lost mail that the next poll would have delivered.
What you need to do
Treat 503 `captcha_cooldown` and 502 `upstream_error` as retryable and honour Retry-After. If you special-cased 400 `bad_argument` on /poll for Microsoft addresses, that case is now `upstream_error`.
Changed
- A Microsoft mailbox whose provider-side sign-in lapsed is reported as `upstream_error` (retryable) instead of 400 `bad_argument`. The provider answers "The user must sign in again" on a mailbox that is alive: the identical poll succeeds minutes later, so this was never the caller's request to fix.
- A paused login challenge is answered 503 `captcha_cooldown` with Retry-After carrying the exact remaining seconds, instead of a bare 401 that was indistinguishable from a bad token.
Fixed
- The upstream login backoff no longer ratchets across healthy sessions. A successful session renewal now clears it, so an old burst of challenge failures could no longer push a later, unrelated failure straight to the ten-minute ceiling.
- Admin long-poll reads now consume the same bounded long-poll capacity as the public routes, so an open panel can no longer park server threads and block /poll and /wait on the same address.
Error codes introduced
| Status | Code | Meaning | Retry? |
|---|---|---|---|
503 | captcha_cooldown | Our upstream session lapsed and the login challenge could not be solved yet, so session-bound calls are paused while it backs off. | Yes, after Retry-After, which carries the exact remaining seconds. |
v2.6.0 drop-in2026-09-02
Mail that arrived is now mail you receive
Clients reported verification mail never arriving, on outlook.com and elsewhere. Seven defects on the delivery path each dropped or misreported real mail; the two largest affected every provider, and one affected Microsoft addresses only.
What you need to do
If you request a Microsoft domain, read `address` from the response and check `domain_substituted`. Treat `upstream_busy` as retryable and honour Retry-After.
Added
- POST /create and POST /restore now return `requested_domain` and `domain_substituted`. The upstream issues Microsoft addresses from a shared pool, so asking for hotmail.com or outlook.fr yields an @outlook.com address. Send verification mail to the address in `address`, never to the domain you requested.
Changed
- A wait now decides what is 'new' by when a message arrived, not by whether it was present in the first response. Mail landing during that first round trip - the normal case when you trigger a verification email and then call /wait - was previously treated as pre-existing and never returned.
- Microsoft dates (ISO-8601) are parsed alongside Google's RFC-2822. On outlook.com every date read as zero, so newest-first ordering was arbitrary and a wait could not tell fresh mail from days-old mail.
- Transport faults and provider throttling are retried until your deadline instead of stopping after three attempts, and HTTP 429/503 from the upstream is now reported as `upstream_busy` with Retry-After: 120 rather than a generic 502 with 30.
- An inbox read is retried once when it fails in transit and the deadline allows. A single slow response used to be a lost poll.
- A rejected key is answered 400 `bad_argument`, not `inbox_expired`. Polling a live mailbox with a wrong key reported the mailbox as dead, so callers discarded an inbox that still held mail.
- A per-request budget that runs out is reported as `timeout` rather than `network`: the provider did not fail, our clock did.
Fixed
- GET /message?format=text returned an empty body with HTTP 200 for every read after the first. Re-reading a message now returns the message.
- One-time codes split one digit per table cell, <span> or <div> are extracted, and a full stop between the keyword and the code no longer hides it. Both templates are in daily use and both made POST /otp time out with the code sitting in the message.
- A calendar year next to a word like 'login' is no longer returned as a code, unless you asked for exactly four digits.
- An upstream refusal to restore an address that was never issued is 400 `bad_argument` instead of a 502 that invited endless retries.
- One caller's rejected create no longer opens the service-wide create breaker on POST /inboxes, which answered 503 to every client for up to 10 minutes.
v2.5.0 drop-in2026-08-20
Operations telemetry, live events, health and key policies
The admin panel now answers what happened, what is happening, and whether the upstream is healthy — including data that survives a process restart.
What you need to do
No client migration is required for the HTTP API. If you operate the admin panel, use upstream-health for unknown-versus-degraded semantics, and configure separate API keys with scopes/rate limits instead of sharing the environment fallback credential.
Added
- GET /admin/api/rollups?hours=1..168 and the Telemetry panel: durable minute windows with request/error totals, route and client-key breakdowns, p50/p95 latency, and queue peaks.
- GET /admin/api/events/stream: authenticated Server-Sent Events with filters, a bounded 60-second connection, heartbeats and automatic JSON polling fallback in the panel.
- GET /admin/api/upstream-health: tri-state availability, breaker cooldown, consecutive failures, safe error-rate and upstream-only p50/p95 latency.
- API-key controls: suspend/resume, requests-per-minute limits, and route scopes. The env fallback token can be revoked from the panel and remains revoked after restart.
- Address inventory and maintenance controls: identify idle/abandoned inboxes, prune expired keys, compact state, and inspect durable file sizes.
- Admin audit history now keeps seven rotated generations and fsyncs each record.
Changed
- The panel displays duration percentiles and last metric events instead of hiding them inside a raw JSON block. Failed admin responses are classified by their actual HTTP status, so 401/403 cannot appear as successful events.
- Event records are redacted before both journald output and the admin event ring. Plaintext credentials, message bodies and URLs are not exposed.
- The documentation, changelog, OpenAPI and llms.txt responses now carry an ETag and Cache-Control: public, max-age=300, must-revalidate. Send If-None-Match to get 304 and skip the body; the documents themselves are unchanged.
Fixed
- Overview now reports real Premium/session state and handles an unavailable status page as explicit unknown rather than false negative data.
- OpenAPI and changelog documentation now cover the new 403 key_scope_denied and 429 key_rate_limited client errors.
- Session credentials received from upstream are now persisted atomically when they change, so Premium authentication survives service restarts instead of reverting to stale state.
- The create breaker no longer turns one request-specific upstream 400 into a global outage; after a real outage, half-open recovery admits one probe and suppresses a request herd.
- Status and capability reads degrade to bounded diagnostic/fallback responses during network failures, and dynamic admin message ids no longer create unbounded metric labels.
- Capability parser drift is now reported as unverified instead of authoritative live data; upstream text and attachment responses have explicit memory bounds.
- GET /domains and /capabilities report the full other-provider pool again. Upstream moved that catalog, so the bridge had fallen back to a handful of stale defaults and rejected valid domains at /create with 400 unknown_domain. Domain counts are no longer quoted anywhere: the pool rotates server-side, so read the catalog.
Error codes introduced
| Status | Code | Meaning | Retry? |
|---|---|---|---|
401 | unauthorized | The API credential is missing, unknown, revoked or suspended. | No. Check the credential; a suspended key needs an operator. |
502 | registry_save_failed | The inbox was created upstream but could not be saved to the local registry. | No. The inbox exists; re-register it or read it by address and key. |
502 | upstream_error | The mail provider failed in a way with no more specific code. | Yes, after Retry-After. |
410 | inbox_expired | The inbox no longer exists upstream; its key is dead. | No. Create a new inbox. |
404 | not_found | No such route, message, alias or attachment. | No. Check the path or identifier. |
400 | bad_json | The request body is not valid JSON, or is not a JSON object. | No. Fix the body. |
400 | bad_argument | A field is missing, of the wrong type, or outside its range; the message names it. | No. Fix the request. |
400 | bad_content_length | The Content-Length header is missing, negative or not an integer. | No. Send a correct length. |
400 | body_too_large | The declared body exceeds the 1 MiB limit. The connection is closed. | No. Send a smaller body. |
400 | bad_content_type | The route expects application/json (or a form for the panel login). | No. Send the expected Content-Type. |
502 | upstream_busy | The mail provider is rate-limiting us. Honour Retry-After. | Yes, after Retry-After (about two minutes). |
502 | network | The mail provider did not answer. | Yes, after a few seconds. |
502 | timeout | The mail provider did not answer within the operation budget. | Yes. |
502 | bad_response | The mail provider returned something we could not parse. | Yes, once; then report it. |
502 | attachment_failed | The attachment could not be downloaded from the provider. | Yes, once. |
502 | attachment_too_large | The attachment exceeds the 16 MiB ceiling. | No. |
502 | upstream_response_too_large | The provider's response exceeded the size ceiling. | No. Report it. |
503 | upstream_probe_in_progress | The breaker is half-open and another request is probing recovery. | Yes, after Retry-After (2s). |
429 | long_poll_capacity_exhausted | Every long-poll slot on the service is occupied. | Yes, after Retry-After. |
429 | long_poll_key_capacity_exhausted | This key already holds its maximum concurrent long polls. | Yes, after one finishes. |
401 | session_expired | Our session with the mail provider lapsed and is being renewed. | Yes, after a few seconds. |
503 | key_store_error | The API key registry could not be read. | Yes, after a few seconds. |
401 | token_required | No API credential was supplied on a protected route. | No. Send your API key in the Authorization header. |
403 | key_scope_denied | The API key is valid but the requested route is outside its configured scopes. | No. Use a permitted route, or ask for the scope to be widened. |
429 | key_rate_limited | The API key exceeded its configured requests-per-minute limit. | Yes, after Retry-After; the fixed window resets each minute. |
429 | event_stream_full | All 16 admin event-stream connections are occupied. | Yes, after Retry-After, or use the JSON events snapshot. |
v2.4.0 drop-in2026-08-20
All 43 domains, alias registry over the API, richer telemetry
Domain discovery is no longer Gmail-shaped: the catalog lists every offered domain with the server ids its provider accepts, and /create validates the pair before it costs you a create slot.
What you need to do
If your client hardcodes gmail.com, switch to GET /domains?grouped=1 and pick a server id from that domain's server_ids. Handle two new 400 codes: unknown_domain and bad_server.
Added
- GET /domains?grouped=1 — the full catalog: provider, accepted server_ids, plan type, expiry and pool sizes. 43 domains today: google (2), microsoft (9), other (32).
- GET /otp?address=&mid=&length=&permissive= — read an OTP out of a message you already received. Unlike POST /otp it never waits and never consumes a long-poll slot.
- GET /inboxes, POST /inboxes, DELETE /inboxes/<alias> — the alias registry the admin panel uses is now available to API clients. Aliases match [A-Za-z0-9_-]{1,64}.
- GET /changelog.json and this page, so you can watch for changes without asking us.
Changed
- POST /create and POST /restore now validate the domain and server pair against the live catalog. Validation runs before the Idempotency-Key is recorded and before the create slot is taken, so a rejected request costs neither.
- A server id sent with an `other`-provider domain is ignored rather than rejected, because that pool has no server concept.
- GET /stats duration entries now include p50, p95 and p99 next to count/avg/max.
Fixed
- Admin routes addressing an unknown alias returned 500; they now return 404 not_found.
- Responses on reused upstream connections lost roughly 40 ms each to a TCP delayed-ACK interaction. Median latency for a small response dropped from about 41 ms to 0.5 ms.
- The OpenAPI Inbox schema omitted the `messages` array and `live` flag even though every create/restore/poll response carries them, so a generated client discarded the mail it had just fetched. Both are documented now, with a Message schema for the entries. Regenerate your client to pick them up.
Error codes introduced
| Status | Code | Meaning | Retry? |
|---|---|---|---|
400 | unknown_domain | The domain is not offered. List valid ones with GET /domains?grouped=1. | No. Fix the domain. |
400 | bad_server | That provider does not offer this server id; the message names the accepted ids. | No. Send an accepted id, or omit server entirely. |
429 | key_rate_limited | Your key has a requests-per-minute cap and this request exceeded it. | Yes, after Retry-After. Slow your call rate; the cap resets each minute. |
403 | key_scope_denied | Your key is restricted to a set of routes and this route is not one of them. | No. Use a permitted route, or ask for the scope to be widened. |
v2.3.0 drop-in2026-08-19
Fair create queue across API keys
One busy client can no longer crowd everyone else out of inbox creation. Concurrent creates now wait in FIFO order instead of failing immediately.
What you need to do
Give every client its own API key. Fairness and diagnostics are tracked per key, so a shared token collapses all traffic into one identity. Honour Retry-After on 429 and add random jitter; never retry in a tight loop.
Added
- Bounded FIFO admission for POST /create: up to 32 waiting requests, 30 s maximum wait.
- GET /stats exposes create_queue_depth, create_queue_wait and per-key request counters.
Changed
- Only one upstream create runs at a time — unchanged — but each API key may hold only one waiting position, so no single client can occupy the queue.
Error codes introduced
| Status | Code | Meaning | Retry? |
|---|---|---|---|
429 | create_key_already_queued | This key already has a create waiting. | Yes, after Retry-After. Do not open a second concurrent create. |
429 | create_queue_full | All 32 waiting positions are taken. | Yes, after Retry-After with jitter. |
429 | create_queue_timeout | Waited 30 s without reaching the front of the queue. | Yes, after Retry-After with jitter. |
v2.2.0 drop-in2026-08-18
Idempotent create, durable state, readiness probe
Retrying a create can no longer silently issue a second inbox, and the service states whether upstream creation is currently possible.
What you need to do
Send an Idempotency-Key on every create and reuse it when retrying that same create. Treat 409 idempotency_outcome_unknown as 'do not retry with a new key' — the outcome is unproven and a new key risks a duplicate inbox.
Added
- Idempotency-Key header on POST /create (8-128 chars of [A-Za-z0-9._:-]). Replaying the same key with the same body replays the same result.
- GET /ready — public readiness: create availability, breaker ETA and delivery freshness.
- Long-poll capacity limits: 64 concurrent waits service-wide, 4 per API key.
Changed
- 429 and 503 responses now always carry Retry-After plus retry_after_seconds and retry_at_unix in the body.
Fixed
- /wait, /otp and /link honour a single absolute deadline, so a slow upstream can no longer stretch a request past its timeout.
Error codes introduced
| Status | Code | Meaning | Retry? |
|---|---|---|---|
409 | idempotency_conflict | The key was reused with a different request body. | No. Use a fresh key for a genuinely different request. |
409 | idempotency_outcome_unknown | The upstream result for this key cannot be proven. | No, not automatically, and never with a new key. |
503 | upstream_unavailable | Creation is in a known cooldown. | Yes, after Retry-After. |
All error codes
Every documented code in one table, with the release that introduced it. Retry only where the table says so.
| Status | Code | Meaning | Retry? | Since |
|---|---|---|---|---|
400 | bad_argument | A field is missing, of the wrong type, or outside its range; the message names it. | No. Fix the request. | 2.5.0 |
400 | bad_content_length | The Content-Length header is missing, negative or not an integer. | No. Send a correct length. | 2.5.0 |
400 | bad_json | The request body is not valid JSON, or is not a JSON object. | No. Fix the body. | 2.5.0 |
400 | bad_server | That provider does not offer this server id; the message names the accepted ids. | No. Send an accepted id, or omit server entirely. | 2.4.0 |
400 | body_too_large | The declared body exceeds the 1 MiB limit. The connection is closed. | No. Send a smaller body. | 2.5.0 |
400 | unknown_domain | The domain is not offered. List valid ones with GET /domains?grouped=1. | No. Fix the domain. | 2.4.0 |
401 | session_expired | Our session with the mail provider lapsed and is being renewed. | Yes, after a few seconds. | 2.5.0 |
401 | token_required | No API credential was supplied on a protected route. | No. Send your API key in the Authorization header. | 2.5.0 |
401 | unauthorized | The API credential is missing, unknown, revoked or suspended. | No. Check the credential; a suspended key needs an operator. | 2.5.0 |
403 | key_scope_denied | The API key is valid but the requested route is outside its configured scopes. | No. Use a permitted route, or ask for the scope to be widened. | 2.5.0 |
404 | not_found | No such route, message, alias or attachment. | No. Check the path or identifier. | 2.5.0 |
409 | alias_taken | That alias is already held by another API key, or predates per-key ownership and belongs to the admin panel. | No — choose a different alias; retrying unchanged cannot succeed. | 2.8.0 |
409 | idempotency_conflict | The key was reused with a different request body. | No. Use a fresh key for a genuinely different request. | 2.2.0 |
409 | idempotency_outcome_unknown | The upstream result for this key cannot be proven. | No, not automatically, and never with a new key. | 2.2.0 |
410 | inbox_expired | The inbox no longer exists upstream; its key is dead. | No. Create a new inbox. | 2.5.0 |
429 | create_key_already_queued | This key already has a create waiting. | Yes, after Retry-After. Do not open a second concurrent create. | 2.3.0 |
429 | create_queue_full | All 32 waiting positions are taken. | Yes, after Retry-After with jitter. | 2.3.0 |
429 | create_queue_timeout | Waited 30 s without reaching the front of the queue. | Yes, after Retry-After with jitter. | 2.3.0 |
429 | event_stream_full | All 16 admin event-stream connections are occupied. | Yes, after Retry-After, or use the JSON events snapshot. | 2.5.0 |
429 | key_rate_limited | The API key exceeded its configured requests-per-minute limit. | Yes, after Retry-After; the fixed window resets each minute. | 2.5.0 |
429 | long_poll_capacity_exhausted | Every long-poll slot on the service is occupied. | Yes, after Retry-After. | 2.5.0 |
429 | long_poll_key_capacity_exhausted | This key already holds its maximum concurrent long polls. | Yes, after one finishes. | 2.5.0 |
502 | attachment_failed | The attachment could not be downloaded from the provider. | Yes, once. | 2.5.0 |
502 | attachment_too_large | The attachment exceeds the 16 MiB ceiling. | No. | 2.5.0 |
502 | bad_response | The mail provider returned something we could not parse. | Yes, once; then report it. | 2.5.0 |
502 | network | The mail provider did not answer. | Yes, after a few seconds. | 2.5.0 |
502 | registry_save_failed | The inbox was created upstream but could not be saved to the local registry. | No. The inbox exists; re-register it or read it by address and key. | 2.5.0 |
502 | timeout | The mail provider did not answer within the operation budget. | Yes. | 2.5.0 |
502 | upstream_busy | The mail provider is rate-limiting us. Honour Retry-After. | Yes, after Retry-After (about two minutes). | 2.5.0 |
502 | upstream_error | The mail provider failed in a way with no more specific code. | Yes, after Retry-After. | 2.5.0 |
502 | upstream_response_too_large | The provider's response exceeded the size ceiling. | No. Report it. | 2.5.0 |
503 | captcha_cooldown | Our upstream session lapsed and the login challenge could not be solved yet, so session-bound calls are paused while it backs off. | Yes, after Retry-After, which carries the exact remaining seconds. | 2.7.0 |
503 | key_store_error | The API key registry could not be read. | Yes, after a few seconds. | 2.5.0 |
503 | upstream_probe_in_progress | The breaker is half-open and another request is probing recovery. | Yes, after Retry-After (2s). | 2.5.0 |
503 | upstream_unavailable | Creation is in a known cooldown. | Yes, after Retry-After. | 2.2.0 |