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 withPOST /workspacesdeletes 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 403beyond_caller_authorityonid. 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}takesconfirm, 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 409last_domain, and aconfirmthat is not the name of the domain is a 422invalid_parameter. The answer carriesmailboxPurged. - The envelope sender on routed mail, from 23 November. The data of
email.routedcarriesenvelopeFrom, 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}/messagesandGET /threads/{id}/messages/{messageId}, and the data ofemail.received, ofemail.repliedand of a delivery report filed as mail onemail.bounced, carriespromptInjection, 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/scanreads 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 averdict(safe,suspiciousorphishing), itsconfidence, thereason, thecategory, whether it carries instructions for an AI (injection) and sixsignalsfrom 0 to 1. It needsthreads:read,emails:sendordrafts:write. Every 100 scans spend one AI action, and a 503email_scan_unavailableis not counted. - API requests in pay as you go, from 14 November. Each plan from
GET /billing/planscarriesextraApiRequestsandapiRequestsinusageRates, the pay as you go state onGET /billingandGET /billing/pay-as-you-goreportscoversApiRequestsandextraApiRequests,GET /billing/pay-as-you-goaddsapiRequeststopricesand toperiod, and each month ofGET /billing/usagereportsextraApiRequestsandapiRequestsCents, whichcentsincludes. - Plans in more detail, from 13 November. Each plan from
GET /billing/planscarriescustomPricing, 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,extraReceivedandextraStorage, 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, andusageRates, what pay as you go bills on it past each allowance: aunitand apriceCentsforsends,received,aiActions,addressChecksandstorage. - Pay as you go for received mail and storage.
payAsYouGoonGET /billingandGET /billing/pay-as-you-goreportviaPlan, true when the plan subscription itself bills the extras,coversReceived,coversStorage,extraReceivedandextraStorage, andGET /billing/pay-as-you-goaddsreceivedandstoragetopricesand toperiod. - Received mail in the cost estimate.
GET /tools/costtakesreceived, the emails received in a month,needreports it, and each plan reportsextraReceivedandreceivedCents, whichextrasCentsnow includes.receivedjoins the values ofblockers. Each plan also reportsextraDomains,domainsCents,extraStorageandstorageCents, which the reference listed and the response left out. - Received mail and storage in the usage history. Each month of
GET /billing/usagereportsextraReceivedandextraStorage, the received emails and GB of uploaded files pay as you go billed, with what they cost inreceivedCentsandstorageCents, andcentsnow includes them. - API requests in the cost estimate.
GET /tools/costtakesapiRequests, the API and MCP requests in a month,needreports it, and each plan reportsextraApiRequestsandapiRequestsCents, priced per 1,000,000 at the rate of the plan, whichextrasCentsnow includes. whiteLabelonGET /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-labeladd-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, soPOST /billing/checkoutis how a workspace gets it.GET /billing/add-onslists the dedicated IP alone, andaddOnonPOST /billing/add-ons/checkoutandDELETE /billing/add-ons/{addOn}takesdedicated-ipand nothing else.whiteLabelonGET /app-hostis 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.
addressis gone fromGET /account/username,PUT /account/usernameandPOST /signups/{id}/verify, and so are the errorsaddress_reservedanddomain_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_limitedwithRetry-Afterand 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, andPUT /app-hostis refused with 403plan_required. - The plans, from 13 November. The plan with the id
freeis 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 idbusiness, 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.prioritySupportis true on Max and Enterprise only. Enterprise is priced in a contract, and the plan with the idstarteris 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, soteamAccessis 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 /limitsthen reports the day's limit as null, and bills the sends past the monthly allowance where they were refused with 429send_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.pricesonGET /billing/pay-as-you-goare 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 507upload_storage_full, which now comes only while pay as you go is off, paused or at its monthly limit. - The cost estimate.
GET /tools/costprices 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 inplans. - Checkouts.
POST /billing/checkoutsellsprofessionalandbusiness, monthly only, and a yearly checkout is a 422plan_unavailable. - Raw sends.
POST /emails/rawrefuses a From address the workspace cannot send as with 403from_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 /labelsandPATCH /labels/{id}no longer answer 403plan_requiredforaiEnabled, 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**
dailyAutoLabelsonGET /billing/plans. Labels that AI applies have no allowance of their own any more, so it repeatsdailyAiActions, which is the field to read. It keeps working until at least 7 May 2027.paidPlanonGET /app-host. It repeatswhiteLabel, which is the field to read, and keeps working until at least 14 May 2027.
October 2026
**Added**
- Booking pages.
/booking-pagesmakes, reads, changes and deletes the public pages where somebody books a meeting,GET /booking-pages/{id}/timeslists their open times, andPUT /booking-pages/{id}/backgroundputs a photo behind the card./bookingsreads what was booked and approves, declines or cancels a booking or sends its email again, andGET /bookings/analyticsreports how the pages did. - Tasks.
/tasks,/task-runsand/task-approvalsgive 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-categoriesand/connector-callsconnect 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}/reopenand/threads/{id}/commentsgive 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}/messagesandGET /threads/{id}/messages/{messageId}return each message withfrom,to,cc,bcc,replyTo,date,messageId,text,html,attachmentsandheaders. These fields are added to and never renamed or taken away. - Signatures.
/signatureskeeps several named signatures for each address, andPOST /emailstakessignatureIdto pick one. - Segments.
/segmentssaves conditions on contacts under a name, andPOST /segments/previewcounts the contacts a set of conditions matches. - Contacts.
GET /contacts/cards/duplicatesandPOST /contacts/cards/{id}/mergefind and merge the cards of one person,GET /contacts/birthdayslists the birthdays between two dates, a card can be a group, and every contact carries its custom fields inattributes. - Broadcasts.
POST /broadcasts/drafts,PATCH /broadcasts/{id}andPOST /broadcasts/{id}/sendsave, change and send a draft,POST /broadcasts/testsends a test,POST /broadcasts/{id}/duplicatecopies a broadcast, andPOST /broadcasts/{id}/resendsends it again to the people who did not open it. - Marketing.
POST /broadcaststakesexcludeAudienceIds,segmentId,utmandabTest, a broadcast fills{{attributes.<key>}}from each contact,GET /broadcasts/{id}/statsaddslinks,clients,countriesandabTest,POST /audiences/{id}/importtakesattributeson each row, a form field withsaveAssaves its answer to a custom field, and an audience withshowOnPreferencesis listed on the email preferences page the unsubscribe link opens. - Unsubscribes.
/suppressions/unsubscribeslists, records and takes back unsubscribes, which now hold for the whole workspace and outlast deleting a contact. - Automations.
GET /automations/analyticsandGET /automations/{id}/runsreport how automations did and what each one did, and an automation can start when an email arrives and answer it. - Calendar.
GET /calendar/free-busyreads when people are busy,POST /calendar/events/{id}/hideand/unhidetake an event off your calendar and put it back,GET /calendar/eventstakesq, andscopechanges one date of a repeating event or the dates after it. - Your account.
/account/sessions,/account/passkeysand/account/security-eventslist the devices a person is signed in on and sign them out, manage their passkeys and read their security log, andGET /account/connected-apps/{clientId}/requestsreads the calls a connected app made.GET /security/eventsreads the security log of the workspace. - Sent mail.
GET /emailstakessince,until,recipientandtag, andGET /analytics/sendingtakes the same four. - Attachments by address.
POST /emailsandPOST /emails/batchtake 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, andattachmentDelivery: autosends anything larger as links. - SMTP. A message handed over with an API key takes
X-Mail-Tags,X-Mail-Scheduled-At,X-Mail-Track-OpensandX-Mail-Track-Clicks, which set thetags,scheduledAtandtrackingof the send. - API keys.
ipAllowlistonPOST /keysandPATCH /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 403ip_not_allowed. - Webhook events. The OpenAPI document has a
webhookssection with the data of every event. New events:booking.*,broadcast.*,task.run.*,approval.requested,connector.*,contact.*,sending.paused,sending.resumedandautomation.resumed. - Webhook data. Every
email.*event carries thetagsof its send, andemail.receivedandemail.repliedcarrymessageId,from,fromNameanddate, with the attachments of a received message listed without their bytes. - Webhook content.
POST /webhooksandPATCH /webhooks/{id}takeincludeContent, which puts the message into eachemail.receivedevent asdata.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 needsthreads:read. - DNS records. Each record
GET /domains/{id}lists carriesfound, what public DNS answers at its name, andproblem, acodeand amessagefor 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}takesautodiscovery, which offers the SRV and TXT records that let mail, calendar and contacts apps find the servers from an address on the domain alone, andGET /domains/{id}lists them inautodiscoveryRecords. - Address limits.
GETandPATCH /domains/{id}/addresses/{addressId}/limitsread and set what one address may send and receive: a sending hold,pausedordisabled, 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 429address_limit_reachedoraddress_sending_paused, or 403address_sending_disabledorrecipient_not_allowed, and a 429 that knows when its limit lifts carriesretryAfterSecondsin the error body. - Pattern routes.
GETandPOST /domains/{id}/routesandGET,PATCHandDELETE /domains/{id}/routes/{routeId}manage routes that catch mail to addresses nobody created whose local part matches a pattern such assupport-*, and deliver it to an address, forward it once the destination confirms, post it to a webhook asemail.routedor read it on another domain. Routes are tried bypriority, then the longest literal text, and each reportsactiveandinactiveReason.POST /domains/{id}/routes/testanswers 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_foundandroute_limit_reached. - Group members.
GETandPOST /domains/{id}/addresses/{addressId}/group-membersandDELETE /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 readpending,liveorrefused. New codes:not_a_group,group_member_limit,group_member_not_foundandgroup_nesting_too_deep. - Domain aliases.
PATCH /domains/{id}takesaliasOf, which makes a domain an alias of another domain of the workspace, and every domain reportsaliasOfandaliases. New codes:alias_not_allowed,alias_chainandalias_has_addresses, whichPOST /domains/{id}/addressesalso answers for an address on an alias. - Verification codes.
POST /domains/{id}/routes,PATCH /domains/{id}/routes/{routeId}andPOST /domains/{id}/addresses/{addressId}/group-membersask an OAuth access token for one, as forwarding does. - Storage quota per address.
PATCH /domains/{id}/addresses/{addressId}/limitstakesreceiving.storageBytes, from 1 MiB to 1 TiB, and the limits report it withusage.storage, thebytesandmessagesthe 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-secretthe old secret keeps signing beside the new one for 24 hours, andpreviousSecretExpiresAton the endpoint says until when. - Webhook retries and dead letters.
POST /webhooksandPATCH /webhooks/{id}takeretryPolicy,standard(8 attempts over about 27 and a half hours, as before) orextended(16 attempts over about 3 days), andincludeRaw, which needsthreads:read. An event whose last automatic attempt fails is kept as a dead letter for 30 days:GET /webhooks/{id}/dead-letterslists them,POST /webhooks/{id}/dead-letters/replaysends up to 100 again and says what happened to each, andDELETE /webhooks/{id}/dead-letters/{deadLetterId}discards one, which is a 409dead_letter_resolvedonce it was replayed. - Message source.
GET /threads/{id}/messages/{messageId}/rawdownloads any message as amessage/rfc822file, andX-Message-Sourcesays whether it is theoriginalas it arrived orrebuiltfrom the stored message, the same bytes the IMAP server serves.keepOriginalonPOST /domains/{id}/addressesandPATCH /domains/{id}/addresses/{addressId}keeps every message an address receives byte for byte, and every address reports it. An endpoint withincludeRawon getsdata.rawin eachemail.receivedevent: a link to the source that works for an hour, itssizeand itssource. - Disposable addresses.
POST /domains/{id}/addressesandPATCH /domains/{id}/addresses/{addressId}takeexpiresAt, a time from 60 seconds to 10 years ahead, andonExpiry,stopordelete, and every address reports them withexpiredAt. From that time the address takes no mail and sends none, a send from it is a 403address_expired, and within a minute it is switched off, or deleted with the conversations delivered to it. The newaddress.expiredwebhook event announces each one. A laterexpiresAt, null orenabled: trueturns a stopped address back on. - Address delivery.
destinationon the same two operations also takeswebhook, which sends every message to the endpoint inwebhookId, andgroup, set up withgroupPostingandgroupKeepCopy, andtapWebhookIdscopies every message an address receives to up to 5 endpoints. New codes:webhook_not_foundandtoo_many_taps. - Mail to a webhook. An address whose destination is
webhook, and a route with thewebhookaction, keep each message for 30 days instead of filing it and post it as the newemail.routedevent, only to the endpoint they name and to the taps of the address. Every attempt carriescontentandrawwhatever the endpoint asks for, withroutedBy, therecipientwith its plus tag and theverdictsof the receiving server. A tap getsemail.receivedwithtap: 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
groupPostingturns away, or that fails DMARC undermembersorworkspace, gets a 5.7.1 bounce. - Forms.
allowedSiteslists the sites that may use a form,refuseDisposablerefuses sign-ups from throwaway addresses, andcheckMailboxruns a deep check on every sign-up and refuses a missing mailbox. A refused address that looks like a typo carriessuggestioninfields. - Mailbox. A rule condition can ask whether a message
bounced, andGET /threads/countsreturnsunlabelled, the inbox without labelled mail. - Upload storage.
GET /files/statsreturnsuploadStorage, the space the uploads of the whole workspace take beside what its plan allows, and each plan fromGET /billing/planscarriesuploadStorageBytes. - Search on lists.
GET /domains,GET /members,GET /keys,GET /webhooks,GET /rulesandGET /connected-mailboxestakeq, 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/statsreports 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 /trafficand everyemail.routedevent carryverdicts.arc:passwhen every server that forwarded the message on its way in sealed it in a way that checks out,failwhen one does not,nonewhen it carried no ARC headers,temperrorwhen 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 /broadcastsandPOST /broadcasts/previewanswer 422audience_is_everyone. - Every broadcast and automation email that does not place
{{unsubscribeUrl}}itself ends with an unsubscribe footer. POST /formsturnssettings.doubleOptInon unless it is sent asfalse.POST /subscribe/{formId}refuses an address whose domain takes no mail with 422invalid_form_submissionand the field errorundeliverable.- The export operations need the read scope of everything an export holds, not
threads:readalone. POST /domains/{id}/addresses/{addressId}/app-passwordsand/mail-app-setupare refused with 403insufficient_authorityunless the caller holds every scope the password would carry.GET /calendar/eventslists your own events.includeTeam=trueadds 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.webhookgoes only to the endpoint its step names, andGET /webhooks/eventsno longer lists it.- A 422
invalid_parametermessage names the field and what it takes. Codes andparamare unchanged. - The
teamcounts ofGET /threads/countsleave 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 /emailswith 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 403from_address_forbidden. too_many_recipientscan also be a 403, when a message has more recipients than a cap on its sending address allows, withparamnaming 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. destinationon an address, and on the forwarding destinations ofGET /domains/{id}/addresses/{addressId}/forwards, can readwebhookorgroupas well asmailboxandforward.- A forwarding destination whose server refused forwarded mail for good reads
bouncedwhere it readrefused, on the forwards of an address, on group members and in theforwardStatusof a route, and such a route readsforward_bouncedininactiveReason.POST /domains/{id}/addresses/{addressId}/forwards/{forwardId}/resendasks a bounced destination again, where it answeredrevoked.
**Removed**
- The
developerModesetting.GET /settingsno longer returns it, andPATCH /settingsignores it, or answers 422not_per_addresswhen it comes withaddress.