Skip to the documentation
API

Changelog

What changed in the API, newest first.

About this page

Every change to the REST API and its webhooks is listed here, newest first: what was added, what changed and what was taken away. A change that could break code you already wrote follows the deprecation policy, which says how much notice it gets.

The SDKs and the command line tool list their own releases.

November 2026

**Added**

  • Deleting another workspace you own, from 23 November. DELETE /workspaces/{id} takes the id of any workspace the account owns, not only the one the key or the app belongs to, so a program that made workspaces with POST /workspaces deletes them too. It takes a key with no role and no address or domain limit, made by the owner it acts for, or an app the owner connected with every address, and otherwise answers 403 beyond_caller_authority on id. That workspace keeps its own two-factor rule and suspension, and one the account does not own is a 404.
  • Removing the last domain, from 23 November. DELETE /domains/{id} takes confirm, the name of the domain, and with it removes the last domain of a workspace together with the whole mailbox, as removing it in the app does. Without it the call is still a 409 last_domain, and a confirm that is not the name of the domain is a 422 invalid_parameter. The answer carries mailboxPurged.
  • The envelope sender on routed mail, from 23 November. The data of email.routed carries envelopeFrom, the address the sending server gave in SMTP MAIL FROM, or null when it was empty, as on a bounce.
  • Prompt injection on messages, from 14 November. Each message from GET /threads/{id}/messages and GET /threads/{id}/messages/{messageId}, and the data of email.received, of email.replied and of a delivery report filed as mail on email.bounced, carries promptInjection, true when the AI check that reads arriving mail found instructions aimed at AI assistants or agents in the message.
  • Scanning an email, from 14 November. POST /emails/scan reads an email you pass in, as raw MIME or as a subject, html or text, with the model that checks the mail arriving in a mailbox, and answers a verdict (safe, suspicious or phishing), its confidence, the reason, the category, whether it carries instructions for an AI (injection) and six signals from 0 to 1. It needs threads:read, emails:send or drafts:write. Every 100 scans spend one AI action, and a 503 email_scan_unavailable is not counted.
  • API requests in pay as you go, from 14 November. Each plan from GET /billing/plans carries extraApiRequests and apiRequests in usageRates, the pay as you go state on GET /billing and GET /billing/pay-as-you-go reports coversApiRequests and extraApiRequests, GET /billing/pay-as-you-go adds apiRequests to prices and to period, and each month of GET /billing/usage reports extraApiRequests and apiRequestsCents, which cents includes.
  • Plans in more detail, from 13 November. Each plan from GET /billing/plans carries customPricing, true for a plan priced in a contract, whose prices then read 0, dailySends, the sends a day while no card is on file for pay as you go, monthlyReceived, the received emails it includes each month, extraReceived and extraStorage, whether pay as you go can buy received mail and storage past the allowance, payAsYouGoLimitCents, the monthly pay as you go limit a workspace on it starts with, and usageRates, what pay as you go bills on it past each allowance: a unit and a priceCents for sends, received, aiActions, addressChecks and storage.
  • Pay as you go for received mail and storage. payAsYouGo on GET /billing and GET /billing/pay-as-you-go report viaPlan, true when the plan subscription itself bills the extras, coversReceived, coversStorage, extraReceived and extraStorage, and GET /billing/pay-as-you-go adds received and storage to prices and to period.
  • Received mail in the cost estimate. GET /tools/cost takes received, the emails received in a month, need reports it, and each plan reports extraReceived and receivedCents, which extrasCents now includes. received joins the values of blockers. Each plan also reports extraDomains, domainsCents, extraStorage and storageCents, which the reference listed and the response left out.
  • Received mail and storage in the usage history. Each month of GET /billing/usage reports extraReceived and extraStorage, the received emails and GB of uploaded files pay as you go billed, with what they cost in receivedCents and storageCents, and cents now includes them.
  • API requests in the cost estimate. GET /tools/cost takes apiRequests, the API and MCP requests in a month, need reports it, and each plan reports extraApiRequests and apiRequestsCents, priced per 1,000,000 at the rate of the plan, which extrasCents now includes.
  • whiteLabel on GET /app-host, from 14 November. It says whether the workspace has white label, which a web app address needs and which comes with the Pro, Max or Enterprise plan.

**Removed**

  • The white-label add-on, from 21 November, a week after it arrived. White label is not bought on top of a plan any more: it comes with the Pro, Max or Enterprise plan, so POST /billing/checkout is how a workspace gets it. GET /billing/add-ons lists the dedicated IP alone, and addOn on POST /billing/add-ons/checkout and DELETE /billing/add-ons/{addOn} takes dedicated-ip and nothing else. whiteLabel on GET /app-host is unchanged, and still says whether the workspace has white label.
  • The free address. An account no longer comes with an address of its own, so a new workspace has none until it adds a domain or connects a mailbox. address is gone from GET /account/username, PUT /account/username and POST /signups/{id}/verify, and so are the errors address_reserved and domain_holds_reserved_addresses.

**Changed**

  • API requests are billed, from 14 November. While pay as you go is on, every request a key or a connected app makes to the REST API or the MCP server is billed per 1,000,000 at the rate of the plan, $0.50 on Starter, $0.30 on Pro and $0.20 on Max and Enterprise, up to the monthly spending limit. Requests refused with 429 rate_limited, requests that failed on our side with a 5xx and the ones made before pay as you go started are not billed, and the rate limits stay as they were.
  • The API rate limit, from 14 November: 1,000 requests a minute on Starter, 5,000 on Pro and 10,000 on Max, where it was 30 on Starter and 600 on the other plans. Requests to the MCP server now count toward it with REST requests, and a request past it is answered 429 rate_limited with Retry-After and is not billed.
  • Branding needs white label, from 14 November, where the rule named a paid plan: the web app address, the logo on the emails Nextmail sends for the workspace and their address on its domain, and taking the Powered by mark off its forms and booking pages. White label comes with the Pro, Max or Enterprise plan. A workspace without it keeps its address, paused, and PUT /app-host is refused with 403 plan_required.
  • The plans, from 13 November. The plan with the id free is now named Starter: it includes 3,000 sends and 3,000 received emails a month and sends at most 100 a day until a card is on file. Pro (professional) is $20 a month with 30,000 of each, and the plan with the id business, now named Max, $200 a month with 300,000 of each, both sold monthly only. Uploaded files get 5 GB on Starter, 50 GB on Pro, 500 GB on Max and 1 TB on Enterprise, and a dedicated IP can be added on every plan once a workspace sends 100,000 emails in a month. prioritySupport is true on Max and Enterprise only. Enterprise is priced in a contract, and the plan with the id starter is now Legacy Starter, kept for the workspaces already on it. No plan id changed, and every plan has unlimited domains, addresses, contacts and team members, so teamAccess is true on every plan.
  • Pay as you go on every plan. On Starter a card added in Billing turns it on, which lifts the daily send limit, so GET /limits then reports the day's limit as null, and bills the sends past the monthly allowance where they were refused with 429 send_quota_exceeded. On Pro and Max the plan subscription bills it. Past what a plan includes it bills at the rates of the plan: sends at 50 cents per 1,000 on Starter, 45 cents on Pro and 40 cents on Max and Enterprise, received mail at 40 cents per 1,000 on Starter, 35 cents on Pro and 30 cents on Max and Enterprise, and uploaded file storage at 30 cents a GB a month on Starter, 25 cents on Pro and 20 cents on Max and Enterprise. AI actions cost 50 cents per 100 and mailbox checks $1.50 per 100 on every plan. prices on GET /billing/pay-as-you-go are the rates of the plan of the workspace instead of one table for every plan. Uploads past the allowance are billed per GB a month instead of being refused with 507 upload_storage_full, which now comes only while pay as you go is off, paused or at its monthly limit.
  • The cost estimate. GET /tools/cost prices only the plans a workspace can choose for itself, each with the extras at its own rates, so Enterprise and the older plans are no longer in plans.
  • Checkouts. POST /billing/checkout sells professional and business, monthly only, and a yearly checkout is a 422 plan_unavailable.
  • Raw sends. POST /emails/raw refuses a From address the workspace cannot send as with 403 from_address_forbidden, and a scheduled raw message fails if the workspace no longer holds the address when it goes out.
  • Labels that AI applies. Each arriving message they read now spends one AI action, from the same daily allowance as everything else, and POST /labels and PATCH /labels/{id} no longer answer 403 plan_required for aiEnabled, because every plan has them. Once a workspace has no action left, mail arrives without those labels, unless pay as you go covers more.

**Deprecated**

  • dailyAutoLabels on GET /billing/plans. Labels that AI applies have no allowance of their own any more, so it repeats dailyAiActions, which is the field to read. It keeps working until at least 7 May 2027.
  • paidPlan on GET /app-host. It repeats whiteLabel, which is the field to read, and keeps working until at least 14 May 2027.

October 2026

**Added**

  • Booking pages. /booking-pages makes, reads, changes and deletes the public pages where somebody books a meeting, GET /booking-pages/{id}/times lists their open times, and PUT /booking-pages/{id}/background puts a photo behind the card. /bookings reads what was booked and approves, declines or cancels a booking or sends its email again, and GET /bookings/analytics reports how the pages did.
  • Tasks. /tasks, /task-runs and /task-approvals give the assistant work it does by itself, on a schedule, when mail arrives or when asked, and let you approve or deny what a run asks to do.
  • Connectors. /connectors, /connector-apps, /connector-categories and /connector-calls connect outside apps, run their actions and list what was done through them.
  • Team inbox. GET /threads/{id}/team, /threads/{id}/assignee, /threads/{id}/done, /threads/{id}/reopen and /threads/{id}/comments give a thread to one person, mark it done for everyone and keep comments the sender never sees.
  • Messages in a fixed shape. GET /threads/{id}/messages and GET /threads/{id}/messages/{messageId} return each message with from, to, cc, bcc, replyTo, date, messageId, text, html, attachments and headers. These fields are added to and never renamed or taken away.
  • Signatures. /signatures keeps several named signatures for each address, and POST /emails takes signatureId to pick one.
  • Segments. /segments saves conditions on contacts under a name, and POST /segments/preview counts the contacts a set of conditions matches.
  • Contacts. GET /contacts/cards/duplicates and POST /contacts/cards/{id}/merge find and merge the cards of one person, GET /contacts/birthdays lists the birthdays between two dates, a card can be a group, and every contact carries its custom fields in attributes.
  • Broadcasts. POST /broadcasts/drafts, PATCH /broadcasts/{id} and POST /broadcasts/{id}/send save, change and send a draft, POST /broadcasts/test sends a test, POST /broadcasts/{id}/duplicate copies a broadcast, and POST /broadcasts/{id}/resend sends it again to the people who did not open it.
  • Marketing. POST /broadcasts takes excludeAudienceIds, segmentId, utm and abTest, a broadcast fills {{attributes.<key>}} from each contact, GET /broadcasts/{id}/stats adds links, clients, countries and abTest, POST /audiences/{id}/import takes attributes on each row, a form field with saveAs saves its answer to a custom field, and an audience with showOnPreferences is listed on the email preferences page the unsubscribe link opens.
  • Unsubscribes. /suppressions/unsubscribes lists, records and takes back unsubscribes, which now hold for the whole workspace and outlast deleting a contact.
  • Automations. GET /automations/analytics and GET /automations/{id}/runs report how automations did and what each one did, and an automation can start when an email arrives and answer it.
  • Calendar. GET /calendar/free-busy reads when people are busy, POST /calendar/events/{id}/hide and /unhide take an event off your calendar and put it back, GET /calendar/events takes q, and scope changes one date of a repeating event or the dates after it.
  • Your account. /account/sessions, /account/passkeys and /account/security-events list the devices a person is signed in on and sign them out, manage their passkeys and read their security log, and GET /account/connected-apps/{clientId}/requests reads the calls a connected app made. GET /security/events reads the security log of the workspace.
  • Sent mail. GET /emails takes since, until, recipient and tag, and GET /analytics/sending takes the same four.
  • Attachments by address. POST /emails and POST /emails/batch take a file at an https address as { url }, fetched once when the message is accepted. Inline files may come to 10 MB together and a message to 25 MB, and attachmentDelivery: auto sends anything larger as links.
  • SMTP. A message handed over with an API key takes X-Mail-Tags, X-Mail-Scheduled-At, X-Mail-Track-Opens and X-Mail-Track-Clicks, which set the tags, scheduledAt and tracking of the send.
  • API keys. ipAllowlist on POST /keys and PATCH /keys/{id} holds a key to some IP addresses and ranges, and a call or an SMTP sign-in from anywhere else is refused with 403 ip_not_allowed.
  • Webhook events. The OpenAPI document has a webhooks section with the data of every event. New events: booking.*, broadcast.*, task.run.*, approval.requested, connector.*, contact.*, sending.paused, sending.resumed and automation.resumed.
  • Webhook data. Every email.* event carries the tags of its send, and email.received and email.replied carry messageId, from, fromName and date, with the attachments of a received message listed without their bytes.
  • Webhook content. POST /webhooks and PATCH /webhooks/{id} take includeContent, which puts the message into each email.received event as data.content: its text, its HTML up to 512 KiB and a link to each attachment that downloads it for an hour without a key. Turning it on needs threads:read.
  • DNS records. Each record GET /domains/{id} lists carries found, what public DNS answers at its name, and problem, a code and a message for the usual reason it does not match, such as the domain added to the name twice, a value saved with its quote marks, a proxied CNAME or a lookup that failed.
  • App setup records. PATCH /domains/{id} takes autodiscovery, which offers the SRV and TXT records that let mail, calendar and contacts apps find the servers from an address on the domain alone, and GET /domains/{id} lists them in autodiscoveryRecords.
  • Address limits. GET and PATCH /domains/{id}/addresses/{addressId}/limits read and set what one address may send and receive: a sending hold, paused or disabled, caps on messages and recipients per hour, day and month, recipients per message, allowed and blocked recipients, a receiving hold, receiving caps and allowed senders, with what the address has used and when each window resets. A send over a limit is refused with 429 address_limit_reached or address_sending_paused, or 403 address_sending_disabled or recipient_not_allowed, and a 429 that knows when its limit lifts carries retryAfterSeconds in the error body.
  • Pattern routes. GET and POST /domains/{id}/routes and GET, PATCH and DELETE /domains/{id}/routes/{routeId} manage routes that catch mail to addresses nobody created whose local part matches a pattern such as support-*, and deliver it to an address, forward it once the destination confirms, post it to a webhook as email.routed or read it on another domain. Routes are tried by priority, then the longest literal text, and each reports active and inactiveReason. POST /domains/{id}/routes/test answers which step decides mail to an address and where it goes, without sending anything. New codes: invalid_route_pattern, route_pattern_taken, route_target_not_found and route_limit_reached.
  • Group members. GET and POST /domains/{id}/addresses/{addressId}/group-members and DELETE /domains/{id}/addresses/{addressId}/group-members/{memberId} manage the group members of a group address: addresses of the workspace, and addresses at other providers that confirm by email first and read pending, live or refused. New codes: not_a_group, group_member_limit, group_member_not_found and group_nesting_too_deep.
  • Domain aliases. PATCH /domains/{id} takes aliasOf, which makes a domain an alias of another domain of the workspace, and every domain reports aliasOf and aliases. New codes: alias_not_allowed, alias_chain and alias_has_addresses, which POST /domains/{id}/addresses also answers for an address on an alias.
  • Verification codes. POST /domains/{id}/routes, PATCH /domains/{id}/routes/{routeId} and POST /domains/{id}/addresses/{addressId}/group-members ask an OAuth access token for one, as forwarding does.
  • Storage quota per address. PATCH /domains/{id}/addresses/{addressId}/limits takes receiving.storageBytes, from 1 MiB to 1 TiB, and the limits report it with usage.storage, the bytes and messages the address keeps. A message that would take the address past its quota gets a permanent bounce, 5.2.2, and deleting mail for good makes room again. Mail stored before the quota shipped and mail routed to a webhook are not counted.
  • Webhook secrets. After POST /webhooks/{id}/rotate-secret the old secret keeps signing beside the new one for 24 hours, and previousSecretExpiresAt on the endpoint says until when.
  • Webhook retries and dead letters. POST /webhooks and PATCH /webhooks/{id} take retryPolicy, standard (8 attempts over about 27 and a half hours, as before) or extended (16 attempts over about 3 days), and includeRaw, which needs threads:read. An event whose last automatic attempt fails is kept as a dead letter for 30 days: GET /webhooks/{id}/dead-letters lists them, POST /webhooks/{id}/dead-letters/replay sends up to 100 again and says what happened to each, and DELETE /webhooks/{id}/dead-letters/{deadLetterId} discards one, which is a 409 dead_letter_resolved once it was replayed.
  • Message source. GET /threads/{id}/messages/{messageId}/raw downloads any message as a message/rfc822 file, and X-Message-Source says whether it is the original as it arrived or rebuilt from the stored message, the same bytes the IMAP server serves. keepOriginal on POST /domains/{id}/addresses and PATCH /domains/{id}/addresses/{addressId} keeps every message an address receives byte for byte, and every address reports it. An endpoint with includeRaw on gets data.raw in each email.received event: a link to the source that works for an hour, its size and its source.
  • Disposable addresses. POST /domains/{id}/addresses and PATCH /domains/{id}/addresses/{addressId} take expiresAt, a time from 60 seconds to 10 years ahead, and onExpiry, stop or delete, and every address reports them with expiredAt. From that time the address takes no mail and sends none, a send from it is a 403 address_expired, and within a minute it is switched off, or deleted with the conversations delivered to it. The new address.expired webhook event announces each one. A later expiresAt, null or enabled: true turns a stopped address back on.
  • Address delivery. destination on the same two operations also takes webhook, which sends every message to the endpoint in webhookId, and group, set up with groupPosting and groupKeepCopy, and tapWebhookIds copies every message an address receives to up to 5 endpoints. New codes: webhook_not_found and too_many_taps.
  • Mail to a webhook. An address whose destination is webhook, and a route with the webhook action, keep each message for 30 days instead of filing it and post it as the new email.routed event, only to the endpoint they name and to the taps of the address. Every attempt carries content and raw whatever the endpoint asks for, with routedBy, the recipient with its plus tag and the verdicts of the receiving server. A tap gets email.received with tap: true, and an endpoint gets each message once even when it also subscribes.
  • Group addresses. A message to a group address goes to each of its group members, groups inside it included up to three deep, and every mailbox gets it once. A sender that groupPosting turns away, or that fails DMARC under members or workspace, gets a 5.7.1 bounce.
  • Forms. allowedSites lists the sites that may use a form, refuseDisposable refuses sign-ups from throwaway addresses, and checkMailbox runs a deep check on every sign-up and refuses a missing mailbox. A refused address that looks like a typo carries suggestion in fields.
  • Mailbox. A rule condition can ask whether a message bounced, and GET /threads/counts returns unlabelled, the inbox without labelled mail.
  • Upload storage. GET /files/stats returns uploadStorage, the space the uploads of the whole workspace take beside what its plan allows, and each plan from GET /billing/plans carries uploadStorageBytes.
  • Search on lists. GET /domains, GET /members, GET /keys, GET /webhooks, GET /rules and GET /connected-mailboxes take q, which searches every field a person reads on the row, ignoring case and accents and allowing for a typo when nothing matches exactly.
  • Rule stats. GET /rules/stats reports how the rules did inside a window: messages matched and failed, a series of buckets, the matches of each rule, the actions taken, the failures and the senders matched most.
  • ARC verdicts. Each entry of GET /traffic and every email.routed event carry verdicts.arc: pass when every server that forwarded the message on its way in sealed it in a way that checks out, fail when one does not, none when it carried no ARC headers, temperror when a seal could not be checked yet, and null on an entry written before ARC was checked.

**Changed**

  • A broadcast cannot go to the built-in audience of everyone the workspace has written to: POST /broadcasts and POST /broadcasts/preview answer 422 audience_is_everyone.
  • Every broadcast and automation email that does not place {{unsubscribeUrl}} itself ends with an unsubscribe footer.
  • POST /forms turns settings.doubleOptIn on unless it is sent as false.
  • POST /subscribe/{formId} refuses an address whose domain takes no mail with 422 invalid_form_submission and the field error undeliverable.
  • The export operations need the read scope of everything an export holds, not threads:read alone.
  • POST /domains/{id}/addresses/{addressId}/app-passwords and /mail-app-setup are refused with 403 insufficient_authority unless the caller holds every scope the password would carry.
  • GET /calendar/events lists your own events. includeTeam=true adds the rest of the workspace, apart from events marked private.
  • Chats belong to the person who holds them, so an access token reaches the chats of the person who connected it, where it was refused with 403 owner_only.
  • automation.webhook goes only to the endpoint its step names, and GET /webhooks/events no longer lists it.
  • A 422 invalid_parameter message names the field and what it takes. Codes and param are unchanged.
  • The team counts of GET /threads/counts leave out labelled mail, as the inbox does, unless the person has chosen to show labelled mail in the inbox.
  • Uploads are held to the storage of the plan instead of 10 GB on every plan: 10 GB on Free, 50 GB on Starter, 250 GB on Business and 1 TB on Enterprise. Past it an upload is a 507 upload_storage_full.
  • A connected mailbox can be the sender of POST /emails with an API key, of broadcasts, automations and sign-up forms, and a key or an app can send from the free address of the person it acts for. Only that person may send as a free address, and anyone else gets 403 from_address_forbidden.
  • too_many_recipients can also be a 403, when a message has more recipients than a cap on its sending address allows, with param naming the cap. The 422 for more recipients than one send allows is unchanged.
  • How many addresses and webhook endpoints a workspace may have depends on its plan: 1,000 addresses and 10 endpoints on Free, 10,000 and 25 on Starter, 100,000 and 100 on Business, and 1,000,000 and 500 on Enterprise. Past it a create is a 422 workspace_limit_reached, as before.
  • destination on an address, and on the forwarding destinations of GET /domains/{id}/addresses/{addressId}/forwards, can read webhook or group as well as mailbox and forward.
  • A forwarding destination whose server refused forwarded mail for good reads bounced where it read refused, on the forwards of an address, on group members and in the forwardStatus of a route, and such a route reads forward_bounced in inactiveReason. POST /domains/{id}/addresses/{addressId}/forwards/{forwardId}/resend asks a bounced destination again, where it answered revoked.

**Removed**

  • The developerMode setting. GET /settings no longer returns it, and PATCH /settings ignores it, or answers 422 not_per_address when it comes with address.