SmailPro Bridge · updates

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

Fixed

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

Fixed

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

Fixed

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

Changed

v2.9.1 drop-in2026-09-09

Запросы неподдерживаемым методом больше не висят до таймаута

Запрос методом, которого у API нет — `OPTIONS`, `PUT`, `PATCH` — не получал ответа вообще: ответ 501 формировался, но оставался в буфере записи и уходил только при закрытии соединения по таймауту. Через nginx, который держит пул соединений к сервису, это давало 120 секунд ожидания и 504 от Cloudflare. Больнее всего это било по браузерным клиентам: перед кросс-доменным POST браузер сам посылает `OPTIONS` (CORS preflight), поэтому первый же такой запрос из расширения или веб-страницы вставал на две минуты. В логах при этом не было ни строки: запрос не доходил до обработчика маршрута.

Changed

Fixed

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

Fixed

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

Fixed

Error codes introduced

StatusCodeMeaningRetry?
409alias_takenThat 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

Fixed

Error codes introduced

StatusCodeMeaningRetry?
503captcha_cooldownOur 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

Changed

Fixed

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

Changed

Fixed

Error codes introduced

StatusCodeMeaningRetry?
401unauthorizedThe API credential is missing, unknown, revoked or suspended.No. Check the credential; a suspended key needs an operator.
502registry_save_failedThe 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.
502upstream_errorThe mail provider failed in a way with no more specific code.Yes, after Retry-After.
410inbox_expiredThe inbox no longer exists upstream; its key is dead.No. Create a new inbox.
404not_foundNo such route, message, alias or attachment.No. Check the path or identifier.
400bad_jsonThe request body is not valid JSON, or is not a JSON object.No. Fix the body.
400bad_argumentA field is missing, of the wrong type, or outside its range; the message names it.No. Fix the request.
400bad_content_lengthThe Content-Length header is missing, negative or not an integer.No. Send a correct length.
400body_too_largeThe declared body exceeds the 1 MiB limit. The connection is closed.No. Send a smaller body.
400bad_content_typeThe route expects application/json (or a form for the panel login).No. Send the expected Content-Type.
502upstream_busyThe mail provider is rate-limiting us. Honour Retry-After.Yes, after Retry-After (about two minutes).
502networkThe mail provider did not answer.Yes, after a few seconds.
502timeoutThe mail provider did not answer within the operation budget.Yes.
502bad_responseThe mail provider returned something we could not parse.Yes, once; then report it.
502attachment_failedThe attachment could not be downloaded from the provider.Yes, once.
502attachment_too_largeThe attachment exceeds the 16 MiB ceiling.No.
502upstream_response_too_largeThe provider's response exceeded the size ceiling.No. Report it.
503upstream_probe_in_progressThe breaker is half-open and another request is probing recovery.Yes, after Retry-After (2s).
429long_poll_capacity_exhaustedEvery long-poll slot on the service is occupied.Yes, after Retry-After.
429long_poll_key_capacity_exhaustedThis key already holds its maximum concurrent long polls.Yes, after one finishes.
401session_expiredOur session with the mail provider lapsed and is being renewed.Yes, after a few seconds.
503key_store_errorThe API key registry could not be read.Yes, after a few seconds.
401token_requiredNo API credential was supplied on a protected route.No. Send your API key in the Authorization header.
403key_scope_deniedThe 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.
429key_rate_limitedThe API key exceeded its configured requests-per-minute limit.Yes, after Retry-After; the fixed window resets each minute.
429event_stream_fullAll 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

Changed

Fixed

Error codes introduced

StatusCodeMeaningRetry?
400unknown_domainThe domain is not offered. List valid ones with GET /domains?grouped=1.No. Fix the domain.
400bad_serverThat provider does not offer this server id; the message names the accepted ids.No. Send an accepted id, or omit server entirely.
429key_rate_limitedYour 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.
403key_scope_deniedYour 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

Changed

Error codes introduced

StatusCodeMeaningRetry?
429create_key_already_queuedThis key already has a create waiting.Yes, after Retry-After. Do not open a second concurrent create.
429create_queue_fullAll 32 waiting positions are taken.Yes, after Retry-After with jitter.
429create_queue_timeoutWaited 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

Changed

Fixed

Error codes introduced

StatusCodeMeaningRetry?
409idempotency_conflictThe key was reused with a different request body.No. Use a fresh key for a genuinely different request.
409idempotency_outcome_unknownThe upstream result for this key cannot be proven.No, not automatically, and never with a new key.
503upstream_unavailableCreation 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.

StatusCodeMeaningRetry?Since
400bad_argumentA field is missing, of the wrong type, or outside its range; the message names it.No. Fix the request.2.5.0
400bad_content_lengthThe Content-Length header is missing, negative or not an integer.No. Send a correct length.2.5.0
400bad_jsonThe request body is not valid JSON, or is not a JSON object.No. Fix the body.2.5.0
400bad_serverThat 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
400body_too_largeThe declared body exceeds the 1 MiB limit. The connection is closed.No. Send a smaller body.2.5.0
400unknown_domainThe domain is not offered. List valid ones with GET /domains?grouped=1.No. Fix the domain.2.4.0
401session_expiredOur session with the mail provider lapsed and is being renewed.Yes, after a few seconds.2.5.0
401token_requiredNo API credential was supplied on a protected route.No. Send your API key in the Authorization header.2.5.0
401unauthorizedThe API credential is missing, unknown, revoked or suspended.No. Check the credential; a suspended key needs an operator.2.5.0
403key_scope_deniedThe 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
404not_foundNo such route, message, alias or attachment.No. Check the path or identifier.2.5.0
409alias_takenThat 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
409idempotency_conflictThe key was reused with a different request body.No. Use a fresh key for a genuinely different request.2.2.0
409idempotency_outcome_unknownThe upstream result for this key cannot be proven.No, not automatically, and never with a new key.2.2.0
410inbox_expiredThe inbox no longer exists upstream; its key is dead.No. Create a new inbox.2.5.0
429create_key_already_queuedThis key already has a create waiting.Yes, after Retry-After. Do not open a second concurrent create.2.3.0
429create_queue_fullAll 32 waiting positions are taken.Yes, after Retry-After with jitter.2.3.0
429create_queue_timeoutWaited 30 s without reaching the front of the queue.Yes, after Retry-After with jitter.2.3.0
429event_stream_fullAll 16 admin event-stream connections are occupied.Yes, after Retry-After, or use the JSON events snapshot.2.5.0
429key_rate_limitedThe API key exceeded its configured requests-per-minute limit.Yes, after Retry-After; the fixed window resets each minute.2.5.0
429long_poll_capacity_exhaustedEvery long-poll slot on the service is occupied.Yes, after Retry-After.2.5.0
429long_poll_key_capacity_exhaustedThis key already holds its maximum concurrent long polls.Yes, after one finishes.2.5.0
502attachment_failedThe attachment could not be downloaded from the provider.Yes, once.2.5.0
502attachment_too_largeThe attachment exceeds the 16 MiB ceiling.No.2.5.0
502bad_responseThe mail provider returned something we could not parse.Yes, once; then report it.2.5.0
502networkThe mail provider did not answer.Yes, after a few seconds.2.5.0
502registry_save_failedThe 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
502timeoutThe mail provider did not answer within the operation budget.Yes.2.5.0
502upstream_busyThe mail provider is rate-limiting us. Honour Retry-After.Yes, after Retry-After (about two minutes).2.5.0
502upstream_errorThe mail provider failed in a way with no more specific code.Yes, after Retry-After.2.5.0
502upstream_response_too_largeThe provider's response exceeded the size ceiling.No. Report it.2.5.0
503captcha_cooldownOur 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
503key_store_errorThe API key registry could not be read.Yes, after a few seconds.2.5.0
503upstream_probe_in_progressThe breaker is half-open and another request is probing recovery.Yes, after Retry-After (2s).2.5.0
503upstream_unavailableCreation is in a known cooldown.Yes, after Retry-After.2.2.0