Domains
Adding domains, the DNS records they need, their logo, their addresses, the web app address and the workspace brand.
Domains tools
| Tool | What it does |
|---|---|
| listDomains | The domains in this workspace, with whether each is verified, can send, has its catch-all on, and how many addresses it has. Returned a page at a time. query searches the domain name and id. |
| getDomain | Everything about one domain, by id or name, including every DNS record to publish and whether it is found, missing or not checked yet. |
| listTraffic | The traffic log of the workspace or one domain, newest first: where mail that arrived went, and what the receiving server said about mail sent, with the reason, the status and the reply. |
| addDomain | Add a domain and get back the DNS records to publish at its DNS host. |
| verifyDomain | Check a domain’s DNS again now and say which records are still missing. |
| setDomainCatchAll | Turn the catch-all on or off, so either any address on the domain or only its listed addresses take mail. |
| getDomainLogo | The domain’s logo, its mark certificate, what public DNS publishes for it and, for a subdomain, the DMARC of the domain it belongs to. |
| setDomainLogo | Upload the logo inboxes show next to mail from a domain, as SVG. |
| removeDomainLogo | Remove the logo and take its record down. A chat always asks first. |
| setDomainLogoCertificate | Upload the VMC or CMC that Gmail and Apple Mail need before they show the logo. |
| removeDomainLogoCertificate | Remove the mark certificate. A chat always asks first. |
| setDomainDmarcPolicy | Set the DMARC policy to none, quarantine or reject. Inboxes show a logo only at quarantine or reject. A chat always asks first. |
| removeDomain | Remove a domain and withdraw the records written to a connected DNS host. The last domain of the workspace takes the whole mailbox with it, so it needs confirm, the domain name. A chat always asks first. |
| listDomainAddresses | The addresses on one domain, with their label, whether each takes mail and keeps originals, and when it last received any. Returned a page at a time. |
| addDomainAddress | Create an address on a domain, with an optional label, keepOriginal to keep every message it receives byte for byte, where its mail goes, when it expires and, for a group, who may post. |
| updateDomainAddress | Change an address’s label, whether it takes mail, whether it keeps the original of every message it receives, where its mail goes (destination, webhookId, tapWebhookIds), when it expires (expiresAt, onExpiry) and its group settings. |
| setAddressPhoto | Upload the photo shown for an address in Nextmail, in base64 or from Files, cropped as you choose. |
| removeAddressPhoto | Remove an address’s photo. A chat always asks first. |
| startGravatarPublish | A link that publishes an address’s photo to Gravatar once the person opens it, signed in, and allows it. |
| removeDomainAddress | Remove an address, so it stops taking mail and any sign-in for it ends. A chat always asks first. |
| getAppHost | The web app address of the workspace, whether people can sign in there or it is paused, and the DNS records it needs. |
| getBrandedSender | The address the emails to members come from, and whether it still waits on a logo or on the signing records of its domain. |
| setAppHost | Set the web app address, a subdomain such as mailbox.example.com on any domain, and get the records to publish. |
| verifyAppHost | Check the web app address again now. |
| removeAppHost | Remove the web app address and sign everyone out of it. A chat always asks first. |
| getBranding | The brand of the workspace: its mark, its logo, its logo for dark mode, its sign-in photo, its two fonts and its sign-in background. |
| updateBranding | Change the primary and secondary fonts, or the sign-in background: a preset, a colour or the uploaded photo. |
| setBrandImage | Set the mark, the logo, the logo for dark mode or the sign-in photo from an image in Files, cropped as you choose. |
| removeBrandImage | Remove one of the brand images, so the default shows in its place. |
| setDomainTrackingHost | Set or remove the tracking host of a domain, the subdomain its tracked links and open pixel go through, and get the record to publish. |
| setDomainStorageHost | Set or remove the files host of a domain, the subdomain its public download links are served from, and get the record to publish. |
| listAddressForwards | Where the mail of an address is forwarded, whether each destination confirmed it, and whether the address keeps a copy here. |
| addAddressForwards | Forward the mail of an address to more places. Each one is asked by email to confirm before it receives anything. |
| setAddressForwardEnabled | Pause a forwarding destination, or switch it back on. |
| removeAddressForward | Stop forwarding to a destination. A chat always asks first. |
| resendAddressForwardConsent | Send a destination that has not answered the email asking it to confirm, once more. |
| setAddressForwardMode | Keep the mail of an address here as well as forwarding it, or only forward it. A chat always asks first. |
| listAddressMembers | Who can read an address and how: as the owner, through a role, through a grant of its domain or through a grant of the address. |
| getAddressLogin | Whether an address has a password of its own to sign in with, and when it was set and last used. |
| removeAddressLogin | Take the password away from an address and sign out whoever used it. A chat always asks first. |
| listDnsConnections | The DNS provider accounts connected to the workspace, with the domains each one serves and the records it keeps there. |
| getDnsConnection | One DNS connection and what disconnecting it would leave behind, including the verified domains that would stop receiving mail. |
| disconnectDnsConnection | Disconnect a DNS provider account and take down the records written through it, or remove one that is already disconnected. A chat always asks first. |
| startDnsConnection | A link that connects a Cloudflare account to the workspace once the person opens it, signed in, and allows it. |
| getDomainDns | How the DNS of a domain is set up, where each kind of record stands, and which connected zone answers for it. |
| setDomainDnsZone | Choose the zone a domain is set up through, when several connected zones could answer for it. |
| syncDomainDns | Write or repair the DNS records a domain needs through its connected zone, as Sync does in the app. |
| getMailAppSettings | The server settings that put an address into Apple Mail, Outlook, Thunderbird, the Gmail app or any other mail app: the IMAP, SMTP and POP3 hosts and ports, the CalDAV and CardDAV servers with their principal URLs, the username, and which of those connections the address accepts. |
| listAppPasswords | The app passwords that let mail apps sign in to an address: who holds each one, when it was created and when a mail app last used it. The passwords themselves are never shown again. |
| revokeAppPassword | Revoke one app password, so the mail app using it is signed out within minutes. The address and its mail stay. A chat always asks first. |
| sendMailAppSetup | Email someone a one-time link that sets up an address in their mail app. The app password it creates acts as you, for that address alone, and the link expires after three days. A chat asks first unless you asked for it. |
| createAppPassword | Create an app password that signs a mail, calendar or contacts app in to one address as you. The password comes back once, with the server settings, and appleProfile: true adds the Apple configuration profile as XML. A chat always asks first, an OAuth connection needs a verification code, and a client limited to some addresses or domains cannot use it. |
| createMailAppProfileLink | Make a one-time link that sets an address up on an iPhone, iPad or Mac. Opening it downloads an Apple configuration profile with a new app password that signs in as you for that address alone, and the link expires within minutes. A chat always asks first, an OAuth connection needs a verification code, and a client limited to some addresses or domains cannot use it. |
| renameAppPassword | Rename one app password, such as when the device it is for changes. The password itself stays the same and keeps working. |
| listCalendarLogins | The calendar sign-ins of a person: logins for calendar and contacts apps that belong to the person rather than to an address, with their usernames, who made each one and when an app last used it. Another member's need the workspace owner or a role that manages members. |
| createCalendarLogin | Create a calendar sign-in, a username starting with cal- and a password that sign calendar and contacts apps in over CalDAV and CardDAV to a person's calendars, the calendars and address books shared with them, and their contacts, even when they hold no address. Mail apps refuse it and it never sends. The password comes back once, and appleProfile: true adds the Apple configuration profile. A chat always asks first, an OAuth connection needs a verification code, and a client limited to some addresses or domains cannot use it. |
| revokeCalendarLogin | Revoke one calendar sign-in, so the calendar and contacts apps using it are signed out within minutes. The calendars and contacts stay. A chat always asks first. |
| createCalendarLoginProfileLink | Make a one-time link that sets calendars and contacts up on an iPhone, iPad or Mac. Opening it downloads an Apple configuration profile with a new calendar sign-in and no mail account, and the link expires within minutes. A chat always asks first, and an OAuth connection needs a verification code. |
| updateMailAppSettings | Turn imap, smtp, pop3, caldav and carddav on or off for an address, passing only the ones to change. A switched-off kind refuses every sign-in, and apps connected over it are signed out within minutes. Only the workspace owner or someone who manages domains may change them. A chat asks first unless you asked for it. |
| setDomainSenderName | Set the name mail from a domain goes out under when the address has no name of its own, or clear it. A chat asks first unless you asked for it. |
| setDomainAutodiscovery | Offer or stop offering the DNS records that let mail, calendar and contacts apps set themselves up from an address on the domain. A chat asks first unless you asked for it. |
| getAddressLimits | The sending and receiving limits of one address, what it has sent and received this hour, in the last 24 hours and this month, and when each count goes down. |
| setAddressLimits | Pause, disable or cap what one address sends and receives: messages and recipients an hour, a day and a month, recipients in one message, who it may send to and whose mail it accepts. Pass only what changes, and null clears a field. A chat asks first unless you asked for it. |
| listDomainRoutes | The pattern routes of a domain, such as support-*, in the order they are tried, with whether each one takes mail now and why not. |
| getDomainRoute | One pattern route of a domain: what it catches, what it does and whether it takes mail now. |
| testDomainRoute | Test where mail to an address would go, without sending anything: the step that decides, the route and where the mail ends up. |
| createDomainRoute | Add a pattern route that delivers mail to an address nobody created to another address, forwards it, posts it to a webhook or reads it on another domain. A chat always asks first, and an OAuth connection needs a verification code. |
| updateDomainRoute | Change a pattern route, passing only what changes. A chat always asks first, and an OAuth connection needs a verification code. |
| deleteDomainRoute | Delete a pattern route. A chat always asks first. |
| listGroupMembers | The group members of a group address, inside the workspace and at other providers, and whether each outside one has confirmed. |
| addGroupMembers | Add group members to a group address. An outside address is asked by email to confirm first. A chat always asks first, and an OAuth connection needs a verification code. |
| removeGroupMember | Remove one group member from a group address. A chat always asks first. |
| setDomainAlias | Make a domain an alias of another domain of the workspace, so its mail is handled as the mail of that domain, or stop it being one. A chat asks first unless you asked for it. |
Reading needs domains:read and changing needs domains:write. A domain reaches every address on it, so a client limited to some addresses or domains cannot add one, and changes a domain or its addresses only when it holds that whole domain.
Removing the workspace’s last domain deletes the whole mailbox with it, so removeDomain asks for confirm, the name of the domain, the way the app asks the person to type it. A client limited to some addresses or domains when it was connected cannot remove the last domain.
The tools act exactly as the REST API does, and the /domains pages of the API reference describe every field and refusal.
Removing a domain or an address also needs workspace:manage in your role unless you own the workspace, the same permission the app asks for. It is console-only, so no approval can give it to a client.
Some tools on this server make a change the REST API guards with a verification code, and ask for the same code. Until the client has verified a code in the last 60 minutes, or the person has chosen Allow changes for 60 minutes on it in Account → Connected apps, such a tool answers with a result that starts Refused (step_up_required): and changes nothing. beginStepUp asks for a code, verifyStepUp checks the one the person gives, and getStepUpStatus says whether the client is verified. emptyAudience never asks for a code. The API Authentication page lists every tool that asks.
Changing a logo, its certificate or the DMARC policy also publishes the DNS record where Nextmail writes the domain’s DNS, and the result says how that went or which record to publish yourself.
The web app address belongs to the whole workspace, so any client with domains:read can read it, and only the workspace owner’s client, connected with every address, sets or removes it. Setting one needs white label, which comes with the Pro, Max or Enterprise plan, and the /app-host pages of the API reference describe every field and refusal.
The brand belongs to the whole workspace too. Reading it needs settings:read and changing it settings:write, and a client limited to some addresses or domains can read it but not change it. The /branding pages of the API reference describe every field and refusal.
Forwarding needs domains:write and reaches only an address you reach yourself. Seeing who reaches an address needs members:read, and its sign-in needs members:write. Setting the password of an address is not a tool: it is done in the app or with PUT /domains/{id}/addresses/{addressId}/login.
A DNS provider account is connected in a browser, because the provider asks the person to sign in there: startDnsConnection only gives the link, which the person opens signed in to the app. Once one is connected, these tools read it and write records through it. Starting or disconnecting one needs the whole workspace, and workspace:manage in your role unless you own it.
Reading the mail app settings needs threads:read, and turning their connections on or off needs threads:read and domains:write. Listing app passwords needs threads:read on the address. Creating, renaming and revoking app passwords, emailing a setup link and making a link for an Apple device need members:write, which a client limited to some addresses or domains never holds. createAppPassword shows the password once, in its result, and createMailAppProfileLink shows a link that works once, so anyone who can read the chat can use either. createAppPassword, sendMailAppSetup and createMailAppProfileLink hand the address to a mail app, so the client must itself hold every one of these permissions that your role holds: threads:read, threads:write, emails:send, drafts:write, labels:write, calendar:read, calendar:write, contacts:read and contacts:write. Without one of them the tool is refused.
Reference
listDomainsgetDomainlistTrafficaddDomainverifyDomainsetDomainCatchAllgetDomainLogosetDomainLogoremoveDomainLogosetDomainLogoCertificateremoveDomainLogoCertificatesetDomainDmarcPolicyremoveDomainlistDomainAddressesaddDomainAddressupdateDomainAddresssetAddressPhotoremoveAddressPhotostartGravatarPublishremoveDomainAddressgetAppHostgetBrandedSendersetAppHostverifyAppHostremoveAppHostgetBrandingupdateBrandingsetBrandImageremoveBrandImagesetDomainTrackingHostsetDomainStorageHostlistAddressForwardsaddAddressForwardssetAddressForwardEnabledremoveAddressForwardresendAddressForwardConsentsetAddressForwardModelistAddressMembersgetAddressLoginremoveAddressLoginlistDnsConnectionsgetDnsConnectiondisconnectDnsConnectionstartDnsConnectiongetDomainDnssetDomainDnsZonesyncDomainDnsgetMailAppSettingslistAppPasswordsrevokeAppPasswordsendMailAppSetupcreateAppPasswordcreateMailAppProfileLinkrenameAppPasswordlistCalendarLoginscreateCalendarLoginrevokeCalendarLogincreateCalendarLoginProfileLinkupdateMailAppSettingssetDomainSenderNamesetDomainAutodiscoverygetAddressLimitssetAddressLimitslistDomainRoutesgetDomainRoutetestDomainRoutecreateDomainRouteupdateDomainRoutedeleteDomainRoutelistGroupMembersaddGroupMembersremoveGroupMembersetDomainAlias
listDomains
The domains in this workspace, by name: whether each is verified, whether it can send, whether its catch-all is on, and how many addresses it has. getDomain gives the DNS records of one. query searches the domain name and id. One page at a time: when more follow, the last line gives a cursor to pass back for the next page.
Inputs
limitinteger- At least 1At most 100
cursorstringquerystringWords to search for. Every word has to appear somewhere on the row, ignoring case and accents, and close spellings count when nothing matches exactly. Pass the same query with the cursor for the next page.
Up to 200 characters
Also available in
- API
GET /domainsGET /domains/{id}GET /rolesGET /roles/permissions- TypeScript
domains.list()domains.listAll()domains.iterate()domains.get()roles.list()roles.listAll()roles.iterate()roles.listPermissions()- Python
domains.list()domains.list_all()domains.iterate()domains.get()roles.list()roles.list_all()roles.iterate()roles.list_permissions()- Ruby
domains.listdomains.list_alldomains.iteratedomains.getroles.listroles.list_allroles.iterateroles.list_permissions- PHP
domains->listdomains->listAlldomains->iteratedomains->getroles->listroles->listAllroles->iterateroles->listPermissions- Go
Domains.ListDomains.ListAllDomains.IterateDomains.GetRoles.ListRoles.ListAllRoles.IterateRoles.ListPermissions- Java
domains().listdomains().listAlldomains().iteratedomains().getroles().listroles().listAllroles().iterateroles().listPermissions- C#
Domains.ListAsyncDomains.ListAllAsyncDomains.IterateAsyncDomains.GetAsyncRoles.ListAsyncRoles.ListAllAsyncRoles.IterateAsyncRoles.ListPermissionsAsync
getDomain
Everything about one domain: whether it is verified and why not, whether it can send and what stops it, the catch-all, DMARC, the tracking and files hosts, and every DNS record to publish with its status (found, missing, or not checked yet).
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characters
Also available in
- API
GET /domainsGET /domains/{id}- TypeScript
domains.list()domains.listAll()domains.iterate()domains.get()- Python
domains.list()domains.list_all()domains.iterate()domains.get()- Ruby
domains.listdomains.list_alldomains.iteratedomains.get- PHP
domains->listdomains->listAlldomains->iteratedomains->get- Go
Domains.ListDomains.ListAllDomains.IterateDomains.Get- Java
domains().listdomains().listAlldomains().iteratedomains().get- C#
Domains.ListAsyncDomains.ListAllAsyncDomains.IterateAsyncDomains.GetAsync
listTraffic
The traffic log, newest first: one entry for each message and recipient at each step it took in or out of the workspace, kept for 30 days. Inbound, where mail that arrived went: filed, spam, routed to a webhook, forwarded, refused with a bounce or dropped, with the reason. Outbound, what the receiving server said about mail sent or forwarded: delivered, deferred, bounced, complained, suppressed, rejected or failed, with its reply. Use it to answer why a message never arrived or never reached someone. Outbound entries need emails:read and inbound ones threads:read; with one of them only that direction is listed. One page at a time: when more follow, the last line gives a cursor to pass back for the next page.
Inputs
domainstringThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersdirectionstring- One of
"inbound""outbound" outcomesstring[]- Up to 14 itemsOne of
"delivered""deferred""bounced""suppressed""complained""rejected""failed""forwarded""filed""spam""routed""refused""dropped""report" addressstringOne of your addresses: the one mail arrived for or was sent from.
Up to 320 charactersrecipientstringOne recipient: the person written to, or the address mail arrived for.
Up to 320 characterssincestring- Format
date-time untilstring- Format
date-time limitinteger- At least 1At most 100
cursorstring
Also available in
- API
GET /traffic- TypeScript
traffic.list()traffic.listAll()traffic.iterate()- Python
traffic.list()traffic.list_all()traffic.iterate()- Ruby
traffic.listtraffic.list_alltraffic.iterate- PHP
traffic->listtraffic->listAlltraffic->iterate- Go
Traffic.ListTraffic.ListAllTraffic.Iterate- Java
traffic().listtraffic().listAlltraffic().iterate- C#
Traffic.ListAsyncTraffic.ListAllAsyncTraffic.IterateAsync
addDomain
Add a domain you own to this workspace. It starts unverified with its catch-all on, and the answer lists the DNS records to publish at its DNS host. Once they answer, verifyDomain confirms it. Refused when the domain is already claimed, when a parent or child domain belongs to someone else, or when the plan allows no more domains.
Inputs
domainstringRequiredThe bare domain, e.g. example.com
Also available in
- API
POST /domains- TypeScript
domains.create()- Python
domains.create()- Ruby
domains.create- PHP
domains->create- Go
Domains.Create- Java
domains().create- C#
Domains.CreateAsync
verifyDomain
Check the DNS of one domain again now, instead of waiting for the next scheduled check, and say which records are still missing. A check made in the last few seconds is reused rather than repeated.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characters
Also available in
- API
POST /domains/{id}/verify- TypeScript
domains.verify()- Python
domains.verify()- Ruby
domains.verify- PHP
domains->verify- Go
Domains.Verify- Java
domains().verify- C#
Domains.VerifyAsync
setDomainCatchAll
Turn the catch-all of a domain on or off. On, mail to any address at the domain arrives here, listed or not. Off, only the addresses listed on it take mail and the rest is refused.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characterscatchAllbooleanRequired
Also available in
- API
PATCH /domains/{id}- TypeScript
domains.update()- Python
domains.update()- Ruby
domains.update- PHP
domains->update- Go
Domains.Update- Java
domains().update- C#
Domains.UpdateAsync
getDomainLogo
The brand logo inboxes show next to mail from one domain (BIMI): the logo, its record and whether public DNS answers with it right now, the mark certificate, and the DMARC policy. For a subdomain it also reads the DMARC record of its parent domain, which Nextmail never changes. Inboxes show the logo only once the DMARC policy of the domain quarantines or rejects (setDomainDmarcPolicy), and for a subdomain only once the DMARC record of its parent domain does too. Gmail also needs a Verified or Common Mark Certificate (setDomainLogoCertificate), and Apple Mail a Verified one.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characters
Also available in
setDomainLogo
Set the brand logo inboxes show next to mail from a domain (BIMI), replacing any there was. Pass the whole SVG file as svg. It is converted to the SVG Tiny PS format inboxes require: CSS becomes attributes, the shape is made square and titled after the workspace, and anything inboxes do not draw is refused with the reason. Where Nextmail writes the DNS of the domain it publishes the logo record too, and otherwise the answer gives the record to publish. The domain has to be verified. Inboxes show the logo only once the DMARC policy of the domain quarantines or rejects (setDomainDmarcPolicy), and for a subdomain only once the DMARC record of its parent domain does too. Gmail also needs a Verified or Common Mark Certificate (setDomainLogoCertificate), and Apple Mail a Verified one.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characterssvgstringRequiredThe logo, the whole SVG file as text.
1 to 1048576 characters
Also available in
removeDomainLogo
Remove the brand logo of a domain and delete the stored file. Where Nextmail writes the DNS of the domain it takes the logo record down too, and otherwise the answer names the record to remove. Any mark certificate stays, ready for the next logo. Removing a logo from a domain that has none changes nothing.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characters
Also available in
setDomainLogoCertificate
Set the mark certificate of a domain logo, replacing any there was: the Verified Mark Certificate (VMC) or Common Mark Certificate (CMC) a certificate authority issued for the domain. Gmail shows the logo only with one, and only a VMC earns the blue checkmark and the logo in Apple Mail. The chain is put in order and served, and the logo record points at it. Inboxes show nothing when the logo inside the certificate differs from the published one, so the logo from the certificate then becomes the published one. The domain has to be verified.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characterscertificatestringRequiredThe certificate file: PEM text as it came, or a DER or PKCS #7 file in base64.
1 to 175020 characters
Also available in
removeDomainLogoCertificate
Remove the mark certificate of a domain logo and delete the stored file. The logo stays, but its record no longer points at a certificate, so Gmail and Apple Mail stop showing it. Removing a certificate from a domain that has none changes nothing.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characters
Also available in
setDomainDmarcPolicy
Set the DMARC policy of a domain: what its DMARC record tells receivers to do with mail that fails its checks. none only monitors, quarantine sends that mail to spam and reject refuses it. Inboxes show the domain logo only at quarantine or reject. A policy stricter than none needs mail from the domain to be signed first, and anything else that sends as the domain, such as a newsletter tool or a help desk, has to sign as it too, or its mail lands in spam or is refused. Where Nextmail writes the DNS of the domain the record is updated straight away, keeping its other tags such as rua, and otherwise the answer gives the record to publish.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersdmarcPolicystringRequirednone to only monitor, quarantine to send failing mail to spam, reject to refuse it.
One of"none""quarantine""reject"
Also available in
- API
PATCH /domains/{id}- TypeScript
domains.update()- Python
domains.update()- Ruby
domains.update- PHP
domains->update- Go
Domains.Update- Java
domains().update- C#
Domains.UpdateAsync
removeDomain
Remove a domain from this workspace. Its addresses stop taking mail, its tracking and files hosts retire, and records written to a connected DNS host are withdrawn. Removing the last domain of a workspace deletes the whole mailbox with it, every message, so it needs confirm, the domain name typed out, as the app asks for it. This cannot be undone. Anybody but the workspace owner also needs a role that may remove domains (workspace:manage).
- Asks for a verification code
DELETE /domains/{id}
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersconfirmstringThe name of the domain, typed out, as the app asks for it. Needed only to remove the last domain of the workspace, which deletes the whole mailbox with it.
1 to 253 characters
Also available in
- API
DELETE /domains/{id}- TypeScript
domains.delete()- Python
domains.delete()- Ruby
domains.delete- PHP
domains->delete- Go
Domains.Delete- Java
domains().delete- C#
Domains.DeleteAsync
listDomainAddresses
The addresses listed on one domain, by address: the label, whether each takes mail, and when it last received any. With the catch-all on, unlisted addresses take mail too. One page at a time: when more follow, the last line gives a cursor to pass back for the next page.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characterslimitinteger- At least 1At most 100
cursorstring
Also available in
- API
GET /addressesGET /domains/{id}/addresses- TypeScript
addresses.list()addresses.listAll()addresses.iterate()domains.listAddresses()domains.listAllAddresses()domains.iterateAddresses()- Python
addresses.list()addresses.list_all()addresses.iterate()domains.list_addresses()domains.list_all_addresses()domains.iterate_addresses()- Ruby
addresses.listaddresses.list_alladdresses.iteratedomains.list_addressesdomains.list_all_addressesdomains.iterate_addresses- PHP
addresses->listaddresses->listAlladdresses->iteratedomains->listAddressesdomains->listAllAddressesdomains->iterateAddresses- Go
Addresses.ListAddresses.ListAllAddresses.IterateDomains.ListAddressesDomains.ListAllAddressesDomains.IterateAddresses- Java
addresses().listaddresses().listAlladdresses().iteratedomains().listAddressesdomains().listAllAddressesdomains().iterateAddresses- C#
Addresses.ListAsyncAddresses.ListAllAsyncAddresses.IterateAsyncDomains.ListAddressesAsyncDomains.ListAllAddressesAsyncDomains.IterateAddressesAsync
addDomainAddress
Add an address to a domain, such as sales on example.com, with an optional label, where its mail goes (destination, webhookId, tapWebhookIds), when it expires (expiresAt, onExpiry) and, for a group, who may post (groupPosting, groupKeepCopy). Adding one that was removed brings it back. Refused for an address reserved for an account, or when the workspace holds as many addresses as it may.
- Asks for a verification codeOnly when it changes where the mail of the address goes, or sets it to be deleted when it expires
POST /domains/{id}/addresses
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characterslocalPartstringRequiredThe part before the @, e.g. sales
1 to 64 charactersPattern^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*$labelstring- Up to 120 characters
keepOriginalbooleanTrue keeps every message the address receives from now on byte for byte as it arrived, so getRawMessage returns that original instead of a source rebuilt from the stored message. False stops keeping new ones. Originals already kept stay with their messages.
destinationstringWhere mail to the address goes. mailbox keeps it here, forward only forwards it and needs a forwarding destination that is on, webhook sends every message to the endpoint in webhookId and keeps none here, and group sends it to the group members of the address.
One of"mailbox""forward""webhook""group"webhookIdstringThe webhook endpoint mail goes to while destination is webhook, an id that listWebhooks gives. Pass it with destination webhook.
1 to 128 characterstapWebhookIdsstring[]Up to 5 webhook endpoints that also get every message the address receives, as ids that listWebhooks gives. An empty list or null stops them.
Can be nullUp to 100 itemsexpiresAtstringWhen the address expires, an RFC 3339 time from 60 seconds to 10 years ahead. Null keeps it for good. Setting it on an address that expired turns the address back on.
Can be nullFormatdate-timeonExpirystringWhat happens when the address expires. stop switches it off and keeps its mail, and delete removes the address and the conversations delivered to it.
One of"stop""delete"groupPostingstringWho may send to a group address: anyone, members (its group members), or workspace (any address on a domain of this workspace).
One of"anyone""members""workspace"groupKeepCopybooleanWhether a group address also keeps a copy of each message in its own mailbox.
Also available in
updateDomainAddress
Change an address on a domain: its label, whether it takes mail, whether it keeps the original of every message it receives, where its mail goes (destination, webhookId, tapWebhookIds), when it expires (expiresAt, onExpiry) and, for a group, who may post (groupPosting, groupKeepCopy). A disabled address keeps its settings, and enabling it again restores it. An empty label clears it.
- Asks for a verification codeOnly when it changes where the mail of the address goes, or sets it to be deleted when it expires
PATCH /domains/{id}/addresses/{addressId}
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characterslabelstring- Can be nullUp to 120 characters
enabledbooleankeepOriginalbooleanTrue keeps every message the address receives from now on byte for byte as it arrived, so getRawMessage returns that original instead of a source rebuilt from the stored message. False stops keeping new ones. Originals already kept stay with their messages.
destinationstringWhere mail to the address goes. mailbox keeps it here, forward only forwards it and needs a forwarding destination that is on, webhook sends every message to the endpoint in webhookId and keeps none here, and group sends it to the group members of the address.
One of"mailbox""forward""webhook""group"webhookIdstringThe webhook endpoint mail goes to while destination is webhook, an id that listWebhooks gives. Pass it with destination webhook.
1 to 128 characterstapWebhookIdsstring[]Up to 5 webhook endpoints that also get every message the address receives, as ids that listWebhooks gives. An empty list or null stops them.
Can be nullUp to 100 itemsexpiresAtstringWhen the address expires, an RFC 3339 time from 60 seconds to 10 years ahead. Null keeps it for good. Setting it on an address that expired turns the address back on.
Can be nullFormatdate-timeonExpirystringWhat happens when the address expires. stop switches it off and keeps its mail, and delete removes the address and the conversations delivered to it.
One of"stop""delete"groupPostingstringWho may send to a group address: anyone, members (its group members), or workspace (any address on a domain of this workspace).
One of"anyone""members""workspace"groupKeepCopybooleanWhether a group address also keeps a copy of each message in its own mailbox.
Also available in
setAddressPhoto
Set the photo of an address on a domain, replacing any there was. Mail from the address shows it in Nextmail, in place of the domain logo. Pass the image in base64 as image with its type (image/png, image/jpeg, image/webp, image/gif), or an image in Files as fileId, up to 100MB, and crop to choose the part to show. It is cropped to a square and stored as JPEG or PNG.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersimagestringThe image in base64, or as a data: URL. Leave it out when you pass fileId instead.
1 to 16000000 charactersfileIdstringAn image in Files to use instead of image: one the user attached in this chat, or one listFiles found. It can be up to 100MB.
1 to 128 characterscropobjectThe part of the image to keep, each value a fraction of the whole from 0 to 1: x and y are its left and top edges, width and height its size. Leave it out to keep the whole image.
xnumberRequired- At least 0At most 1
ynumberRequired- At least 0At most 1
widthnumberRequired- At least 0At most 1
heightnumberRequired- At least 0At most 1
contentTypestringThe type of the image, such as image/png. It is needed with image and taken from the file with fileId.
1 to 100 characters
Also available in
removeAddressPhoto
Remove the photo of an address on a domain and delete the stored image, so mail from it shows the domain logo again. Removing a photo from an address that has none changes nothing.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
startGravatarPublish
Start publishing the photo of an address to Gravatar, so other mail apps and sites show it too. It answers with a link for the person this connection acts for to open in a browser signed in to Nextmail: Gravatar asks them to sign in to the WordPress.com account that owns the address, and the photo is published when they come back. The address needs a photo first, from setAddressPhoto.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
- API
POST /domains/{id}/addresses/{addressId}/photo/gravatar- TypeScript
domains.startGravatarPublish()- Python
domains.start_gravatar_publish()- Ruby
domains.start_gravatar_publish- PHP
domains->startGravatarPublish- Go
Domains.StartGravatarPublish- Java
domains().startGravatarPublish- C#
Domains.StartGravatarPublishAsync
removeDomainAddress
Remove an address from a domain. It stops taking mail as a listed address, the people it was shared with lose it, and any sign-in for it ends. Adding it again later starts it fresh. Anybody but the workspace owner also needs a role that may remove domains (workspace:manage).
- Asks for a verification code
DELETE /domains/{id}/addresses/{addressId}
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
getAppHost
The web app address of this workspace: a subdomain on any domain, such as mailbox.example.com, where its people open Nextmail with the workspace brand. Says whether it is live, waiting for its DNS records, or paused because the workspace is on the free plan, and gives the records to publish. With none set, it names the verified domains of the workspace and the suggested address.
Inputs
Takes no input.
Also available in
- API
GET /app-host- TypeScript
appHost.get()- Python
app_host.get()- Ruby
app_host.get- PHP
appHost->get- Go
AppHost.Get- Java
appHost().get- C#
AppHost.GetAsync
getBrandedSender
The address the emails sent to members of this workspace come from: invitations, password resets and alerts. With white label and a live web app address on a domain of the workspace they come from noreply at that domain, once the workspace has a logo and the signing records of the domain verify. Says which of those it still waits on.
Inputs
Takes no input.
Also available in
- API
GET /app-host- TypeScript
appHost.get()- Python
app_host.get()- Ruby
app_host.get- PHP
appHost->get- Go
AppHost.Get- Java
appHost().get- C#
AppHost.GetAsync
setAppHost
Set the web app address of this workspace, replacing any it had: a subdomain on any domain, such as mailbox.example.com, where only its members, the people who sign in with one of its addresses and its invitees can sign in, under the workspace brand. Under a verified domain of the workspace it takes one CNAME record. Under any other domain it also takes a TXT record that proves the domain is yours. The answer gives the records to publish. Needs white label, which comes with the Pro, Max or Enterprise plan. Setting the address it already has checks it again.
- Asks for a verification codeOnly when it replaces the web app address
PUT /app-host
Inputs
hoststringRequiredThe subdomain, e.g. mailbox.example.com, on any domain.
1 to 253 characters
Also available in
verifyAppHost
Check the web app address of this workspace again now: whether its DNS records answer and its certificate is issued. A check made in the last few seconds is reused rather than repeated.
Inputs
Takes no input.
Also available in
- API
POST /app-host/verify- TypeScript
appHost.verify()- Python
app_host.verify()- Ruby
app_host.verify- PHP
appHost->verify- Go
AppHost.Verify- Java
appHost().verify- C#
AppHost.VerifyAsync
removeAppHost
Remove the web app address of this workspace. Everyone signed in there is signed out and the address stops opening the workspace, while nextmail.sh keeps working for the same people. The CNAME record stays at the DNS host until someone removes it.
- Asks for a verification code
DELETE /app-host
Inputs
Takes no input.
Also available in
getBranding
The brand of this workspace: the links to its mark, its logo, its logo for dark mode and the image behind its sign-in page, its primary and secondary fonts, and the background of its sign-in page (a preset, a colour or the uploaded image).
Inputs
Takes no input.
Also available in
- API
GET /branding- TypeScript
branding.get()- Python
branding.get()- Ruby
branding.get- PHP
branding->get- Go
Branding.Get- Java
branding().get- C#
Branding.GetAsync
updateBranding
Change the fonts or the sign-in page background of this workspace brand. Give fonts with primary, secondary or both, each a font id or null for the default; a font left out keeps its value. Give loginBackground as { kind: "preset", preset }, { kind: "color", color: "#rrggbb" } or { kind: "image" } for the uploaded image, or null for the default. Add logo: "dark" or "light" to choose the sign-in logo, or leave it null to match the background. Upload the image itself with setBrandImage first: { kind: "image" } is refused while no sign-in photo is uploaded. The fonts apply in the web app for everyone in the workspace, the primary to its text and the secondary to page headings, and the sign-in background shows on its web app address.
Inputs
fontsobjectThe fonts to change. Font ids: system, arial, helvetica, verdana, tahoma, trebuchet-ms, georgia, times-new-roman, courier-new, dm-sans, inter, roboto, open-sans, lato, montserrat, poppins, nunito, work-sans, source-sans-3, ibm-plex-sans, merriweather, playfair-display, instrument-serif, jetbrains-mono, dm-mono, geist-mono.
primarystring- Can be nullOne of
"system""arial""helvetica""verdana""tahoma""trebuchet-ms""georgia""times-new-roman""courier-new""dm-sans""inter""roboto""open-sans""lato""montserrat""poppins""nunito""work-sans""source-sans-3""ibm-plex-sans""merriweather""playfair-display""instrument-serif""jetbrains-mono""dm-mono""geist-mono" secondarystring- Can be nullOne of
"system""arial""helvetica""verdana""tahoma""trebuchet-ms""georgia""times-new-roman""courier-new""dm-sans""inter""roboto""open-sans""lato""montserrat""poppins""nunito""work-sans""source-sans-3""ibm-plex-sans""merriweather""playfair-display""instrument-serif""jetbrains-mono""dm-mono""geist-mono"
loginBackgroundobjectThe sign-in page background, or null for the default. Presets: dusk, mist, sand, night, meadow, dots, brush, trail, ember, canvas, bloom, field, wanderer, gold. Logo: dark, light.
Can be nullkindstringRequired- One of
"preset""color""image" presetstring- Can be nullOne of
"dusk""mist""sand""night""meadow""dots""brush""trail""ember""canvas""bloom""field""wanderer""gold" colorstring- Can be nullPattern
^#[0-9a-f]{6}$ logostring- Can be nullOne of
"dark""light"
Also available in
- API
PATCH /branding- TypeScript
branding.update()- Python
branding.update()- Ruby
branding.update- PHP
branding->update- Go
Branding.Update- Java
branding().update- C#
Branding.UpdateAsync
setBrandImage
Set one of the brand images of this workspace from an image in Files, replacing the one there was: the mark (a square icon), the logo, the logo for dark mode, or the photo behind the sign-in page of its web app address. Setting the sign-in photo also switches the sign-in page to it. The image is fitted and stored as WebP; it can start from up to 100MB. Pass crop to keep only part of it.
Inputs
variantstringRequiredWhich image: mark, wordmark, wordmark-dark, login-background. mark is the square icon, wordmark the logo, wordmark-dark the logo for dark mode, and login-background the photo behind the sign-in page of the web app address.
One of"mark""wordmark""wordmark-dark""login-background"fileIdstringRequiredThe fileId of an image in Files: one the user attached in this chat, or one listFiles found.
1 to 128 characterscropobjectThe part of the image to keep, each value a fraction of the whole from 0 to 1: x and y are its left and top edges, width and height its size. Leave it out to keep the whole image.
xnumberRequired- At least 0At most 1
ynumberRequired- At least 0At most 1
widthnumberRequired- At least 0At most 1
heightnumberRequired- At least 0At most 1
Also available in
removeBrandImage
Remove one of the brand images of this workspace and delete the stored image, so the default shows in its place. Removing the sign-in photo while the sign-in page shows it switches the page back to the preset or colour chosen before, or to the default. Removing an image that is not set changes nothing.
Inputs
variantstringRequiredWhich image: mark, wordmark, wordmark-dark, login-background. mark is the square icon, wordmark the logo, wordmark-dark the logo for dark mode, and login-background the photo behind the sign-in page of the web app address.
One of"mark""wordmark""wordmark-dark""login-background"
Also available in
setDomainTrackingHost
Set the tracking host of a domain, the subdomain the links and the open pixel of its mail go through, or remove it with null. The domain has to be verified, and the answer gives the CNAME record to publish for the host.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactershoststringRequiredA subdomain of the domain, such as track.example.com, or null to remove it.
Can be nullUp to 253 characters
Also available in
- API
PATCH /domains/{id}- TypeScript
domains.update()- Python
domains.update()- Ruby
domains.update- PHP
domains->update- Go
Domains.Update- Java
domains().update- C#
Domains.UpdateAsync
setDomainStorageHost
Set the files host of a domain, the subdomain its public download links are served from, or remove it with null. The domain has to be verified, and the answer gives the record to publish for the host.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactershoststringRequiredA subdomain of the domain, such as track.example.com, or null to remove it.
Can be nullUp to 253 characters
Also available in
- API
PATCH /domains/{id}- TypeScript
domains.update()- Python
domains.update()- Ruby
domains.update- PHP
domains->update- Go
Domains.Update- Java
domains().update- C#
Domains.UpdateAsync
listAddressForwards
Where the mail of one address is forwarded: every destination, whether it confirmed it wants the mail, and whether the address also keeps a copy here.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
addAddressForwards
Forward the mail of an address to other places. Each destination gets an email asking it to confirm and receives nothing until it does. Addresses hosted here, ones already on the list and ones that would loop are skipped with the reason. 10 destinations per address at most.
- Asks for a verification code
POST /domains/{id}/addresses/{addressId}/forwards
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersemailsstring[]Required- 1 to 10 items
Also available in
setAddressForwardEnabled
Pause a forwarding destination, or switch it back on. A paused destination keeps its confirmation. When the last one that is on is paused, the address keeps its mail here again.
- Asks for a verification code
PATCH /domains/{id}/addresses/{addressId}/forwards/{forwardId}
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersforwardstringRequiredThe forwarding destination, by its id or by the address it forwards to. listAddressForwards names every one.
1 to 320 charactersenabledbooleanRequired
Also available in
- API
PATCH /domains/{id}/addresses/{addressId}/forwards/{forwardId}- TypeScript
domains.updateAddressForward()- Python
domains.update_address_forward()- Ruby
domains.update_address_forward- PHP
domains->updateAddressForward- Go
Domains.UpdateAddressForward- Java
domains().updateAddressForward- C#
Domains.UpdateAddressForwardAsync
removeAddressForward
Stop forwarding the mail of an address to one destination. When it was the last one that was on, the address keeps its mail here again.
- Asks for a verification code
DELETE /domains/{id}/addresses/{addressId}/forwards/{forwardId}
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersforwardstringRequiredThe forwarding destination, by its id or by the address it forwards to. listAddressForwards names every one.
1 to 320 characters
Also available in
- API
DELETE /domains/{id}/addresses/{addressId}/forwards/{forwardId}- TypeScript
domains.deleteAddressForward()- Python
domains.delete_address_forward()- Ruby
domains.delete_address_forward- PHP
domains->deleteAddressForward- Go
Domains.DeleteAddressForward- Java
domains().deleteAddressForward- C#
Domains.DeleteAddressForwardAsync
resendAddressForwardConsent
Send the confirmation email to a forwarding destination again, for one that has not answered. It reaches a real inbox.
- Asks for a verification code
POST /domains/{id}/addresses/{addressId}/forwards/{forwardId}/resend
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersforwardstringRequiredThe forwarding destination, by its id or by the address it forwards to. listAddressForwards names every one.
1 to 320 characters
Also available in
- API
POST /domains/{id}/addresses/{addressId}/forwards/{forwardId}/resend- TypeScript
domains.resendAddressForwardConsent()- Python
domains.resend_address_forward_consent()- Ruby
domains.resend_address_forward_consent- PHP
domains->resendAddressForwardConsent- Go
Domains.ResendAddressForwardConsent- Java
domains().resendAddressForwardConsent- C#
Domains.ResendAddressForwardConsentAsync
setAddressForwardMode
Choose where the mail of an address goes. mailbox keeps it here, with a copy to every forwarding destination that is on. forward only sends it to the destinations and keeps no copy, so it needs one that is on first.
- Asks for a verification codeOnly when it changes where the mail of the address goes, or sets it to be deleted when it expires
PATCH /domains/{id}/addresses/{addressId}
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersmodestringRequired- One of
"mailbox""forward"
Also available in
listAddressMembers
Who can read one address and how: the owner of the workspace, a role that reaches every address, a grant of the whole domain, or a grant of the address itself.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
getAddressLogin
Whether an address has a password of its own, which lets somebody sign in as that address alone, and when it was set and last used. Setting a password is not done from here.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
removeAddressLogin
Take the password away from an address and sign out whoever used it. The address and its mail stay.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
listDnsConnections
The DNS provider accounts connected to this workspace, through which Nextmail writes the records of a domain itself, with the domains each one serves and how many records it keeps there.
Inputs
Takes no input.
Also available in
getDnsConnection
One DNS connection and what disconnecting it would leave behind: the domains it serves, the records Nextmail wrote through it, and the verified domains that would stop receiving mail.
Inputs
connectionstringRequiredThe id of a DNS connection, as listDnsConnections names it.
1 to 64 characters
Also available in
disconnectDnsConnection
Disconnect a DNS provider account: the records Nextmail wrote through it come down, every domain it serves is detached and the connection is revoked, so a verified domain whose records come down stops receiving mail. A connection that is already disconnected is removed from the list instead. Check getDnsConnection first. Anybody but the workspace owner also needs a role that may manage the workspace (workspace:manage).
- Asks for a verification code
DELETE /dns-connections/{id}
Inputs
connectionstringRequiredThe id of a DNS connection, as listDnsConnections names it.
1 to 64 characters
Also available in
startDnsConnection
Start connecting a Cloudflare account to the workspace, so Nextmail can write the DNS records of its domains there itself. It answers with a link for the person this connection acts for to open in a browser signed in to the app, because Cloudflare asks them to sign in and choose what to share. Connecting an account that is already connected refreshes it. Anybody but the workspace owner also needs a role that may manage the workspace (workspace:manage).
- Asks for a verification code
POST /dns-connections
Inputs
Takes no input.
Also available in
getDomainDns
How the DNS of one domain is set up: whether Nextmail writes its records itself and through which connection and zone, where each kind of record stands, the records left to delete by hand, and which connected zone answers for the domain.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersrefreshbooleanTrue asks the providers again which zone answers for the domain, rather than using the answer from the last minutes.
Also available in
- API
GET /domains/{id}/dns- TypeScript
domains.getDns()- Python
domains.get_dns()- Ruby
domains.get_dns- PHP
domains->getDns- Go
Domains.GetDNS- Java
domains().getDns- C#
Domains.GetDnsAsync
setDomainDnsZone
Choose the zone of a connected DNS account that a domain is set up through, when several could answer for it. The zone has to cover the domain, be active and take a test record. Nothing is written yet: syncDomainDns writes the records.
- Asks for a verification code
PUT /domains/{id}/dns
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersconnectionstringRequiredThe id of a DNS connection, as listDnsConnections names it.
1 to 64 characterszonestringRequiredThe id of the zone, as getDomainDns lists the zones that could answer for the domain.
1 to 64 characters
Also available in
syncDomainDns
Write or repair the DNS records a domain needs, through the connected zone that answers for it, the way Sync does in the app. When only one zone answers it is attached first. With purpose, only that kind of record. A domain waiting for its records is verified once they are in place.
- Asks for a verification code
POST /domains/{id}/dns/sync
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characterspurposestringWrite only this kind of record. Left out, every record the domain needs.
One of"dmarc""tracking""storage""bimi""app-host"
Also available in
getMailAppSettings
The server settings that put an address into Apple Mail, Gmail, Outlook, Thunderbird or any other mail app: the IMAP, SMTP and POP3 hosts and ports, the CalDAV and CardDAV addresses that put its calendar and contacts into calendar and contacts apps, the username, and which of those connections the address accepts. The password is an app password, which createAppPassword makes.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
listAppPasswords
The app passwords that let mail apps sign in to an address: who holds each, when it was made and when a mail app last used it. The passwords themselves are never shown again. With members:write, the workspace owner and anyone whose role manages members see the passwords of everyone who holds the address. Anyone else sees only their own.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
revokeAppPassword
Revoke one app password so the mail app using it is signed out within minutes. The address and its mail stay.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characterspasswordstringRequired- 1 to 128 characters
Also available in
sendMailAppSetup
Email someone a one-time link to set up an address in their mail app. The link creates an app password that acts as you for that address alone, shows it once and expires in three days. It reaches a real inbox.
- Asks for a verification code
POST /domains/{id}/addresses/{addressId}/mail-app-setup
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersrecipientstringRequired- Up to 320 charactersFormat
email
Also available in
createAppPassword
Create an app password that signs a mail, calendar or contacts app in to an address as you. The password is shown this once, with the server settings, so hand it to the person straight away. Pass appleProfile to also get an Apple configuration profile that sets up an iPhone, iPad or Mac in one step. Both are secrets.
- Asks for a verification code
POST /domains/{id}/addresses/{addressId}/app-passwords
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersnamestringRequiredWhat to call it, such as the device it is for.
1 to 64 charactersappleProfilebooleanAlso return the Apple configuration profile, the XML of a .mobileconfig file.
Also available in
createMailAppProfileLink
Make a one-time link that sets an address up on an iPhone, iPad or Mac in one step. Opening it on the device downloads an Apple configuration profile with a new app password inside, which signs in as you for that address alone. The link works once and expires within minutes, so hand it over straight away, and treat it as a secret until it is used.
- Asks for a verification code
POST /domains/{id}/addresses/{addressId}/mail-app-profile-link
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersnamestringRequiredWhat to call the app password it makes, such as the device it is for.
1 to 64 charactersdisplayNamestringRequiredThe name the device shows for the profile.
1 to 160 charactersdescriptionstringRequiredThe line the device shows under that name.
1 to 160 characters
Also available in
- API
POST /domains/{id}/addresses/{addressId}/mail-app-profile-link- TypeScript
domains.createMailAppProfileLink()- Python
domains.create_mail_app_profile_link()- Ruby
domains.create_mail_app_profile_link- PHP
domains->createMailAppProfileLink- Go
Domains.CreateMailAppProfileLink- Java
domains().createMailAppProfileLink- C#
Domains.CreateMailAppProfileLinkAsync
renameAppPassword
Rename an app password, such as when the device it is for changes. The password itself stays the same and keeps working.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characterspasswordstringRequiredThe ID listAppPasswords shows.
1 to 128 charactersnamestringRequired- 1 to 64 characters
Also available in
listCalendarLogins
The calendar sign-ins of a person: the logins calendar and contacts apps use over CalDAV and CardDAV, which belong to the person rather than to an address and never open mail. Each has a name, a username starting with cal-, the last four letters of its password, who made it and when an app last used it. The passwords are never shown again.
Inputs
memberstringThe member id of the person it is for, as listWorkspaceMembers gives it. Leave it out for your own. Another member needs the workspace owner or a role that manages members.
1 to 128 characters
Also available in
createCalendarLogin
Create a calendar sign-in, a username and password that sign calendar and contacts apps (Apple Calendar and Contacts, Thunderbird, DAVx5) in to a person's calendars, the calendars and address books shared with them, and their contacts, for someone with or without an email address. It never opens mail and never sends: mail apps refuse it. The password is shown this once, so hand it to the person straight away. Pass appleProfile to also get an Apple configuration profile that sets up an iPhone, iPad or Mac in one step. Both are secrets.
- Asks for a verification code
POST /calendar/logins
Inputs
namestringRequiredWhat to call it, such as the device it is for.
1 to 64 charactersmemberstringThe member id of the person it is for, as listWorkspaceMembers gives it. Leave it out for your own. Another member needs the workspace owner or a role that manages members.
1 to 128 charactersappleProfilebooleanAlso return the Apple configuration profile, the XML of a .mobileconfig file.
Also available in
revokeCalendarLogin
Revoke one calendar sign-in so the calendar and contacts apps using it are signed out within minutes. The calendars and contacts stay. Another member's needs the workspace owner or a role that manages members.
Inputs
loginstringRequiredThe ID listCalendarLogins shows.
1 to 128 characters
Also available in
createCalendarLoginProfileLink
Make a one-time link that sets calendars and contacts up on an iPhone, iPad or Mac in one step. Opening it on the device downloads an Apple configuration profile with a new calendar sign-in inside, with CalDAV and CardDAV only and never mail. The link works once and expires within minutes, so hand it over straight away, and treat it as a secret until it is used.
- Asks for a verification code
POST /calendar/logins/profile-link
Inputs
namestringRequiredWhat to call the sign-in it makes, such as the device it is for.
1 to 64 charactersdisplayNamestringRequiredThe name the device shows for the profile.
1 to 160 charactersdescriptionstringRequiredThe line the device shows under that name.
1 to 160 charactersmemberstringThe member id of the person it is for, as listWorkspaceMembers gives it. Leave it out for your own. Another member needs the workspace owner or a role that manages members.
1 to 128 characters
Also available in
- API
POST /calendar/logins/profile-link- TypeScript
calendar.createCalendarLoginProfileLink()- Python
calendar.create_calendar_login_profile_link()- Ruby
calendar.create_calendar_login_profile_link- PHP
calendar->createCalendarLoginProfileLink- Go
Calendar.CreateCalendarLoginProfileLink- Java
calendar().createCalendarLoginProfileLink- C#
Calendar.CreateCalendarLoginProfileLinkAsync
updateMailAppSettings
Turn each kind of mail app connection on or off for an address: imap, smtp and pop3 for mail, caldav for its calendar and carddav for contacts. Pass only the ones to change. A switched-off kind refuses every sign-in to it, and connections of that kind that are already open end within minutes. Only the workspace owner or someone who manages domains may change them.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersimapbooleanAccept IMAP sign-ins, which keep folders and read state in step.
smtpbooleanAccept SMTP sign-ins, for sending from a mail app.
pop3booleanAccept POP3 sign-ins, for apps that only download the inbox.
caldavbooleanServe the calendar of the address over CalDAV.
carddavbooleanServe the contacts of the workspace over CardDAV.
Also available in
- API
PATCH /domains/{id}/addresses/{addressId}/mail-apps- TypeScript
domains.updateMailAppSettings()- Python
domains.update_mail_app_settings()- Ruby
domains.update_mail_app_settings- PHP
domains->updateMailAppSettings- Go
Domains.UpdateMailAppSettings- Java
domains().updateMailAppSettings- C#
Domains.UpdateMailAppSettingsAsync
setDomainSenderName
Set the name mail from a domain goes out under when the address has no name of its own, such as "Acme Support", or clear it with null so that mail goes out under the name of the workspace. An address with a name of its own keeps it: change that with updateDomainAddress.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characterssenderNamestringRequiredThe name, at most 120 characters, or null to clear it.
Can be nullUp to 120 characters
Also available in
- API
PATCH /domains/{id}- TypeScript
domains.update()- Python
domains.update()- Ruby
domains.update- PHP
domains->update- Go
Domains.Update- Java
domains().update- C#
Domains.UpdateAsync
setDomainAutodiscovery
Offer or stop offering the DNS records that let mail, calendar and contacts apps find the servers for a domain from an address alone (SRV records for IMAP, SMTP, POP3, CalDAV and CardDAV). They change nothing about how mail arrives. Where the DNS of the domain is written for it, the records are written or taken down at once; otherwise the answer lists them to publish.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersenabledbooleanRequired
Also available in
- API
PATCH /domains/{id}- TypeScript
domains.update()- Python
domains.update()- Ruby
domains.update- PHP
domains->update- Go
Domains.Update- Java
domains().update- C#
Domains.UpdateAsync
getAddressLimits
The sending and receiving limits of one address, what it has sent and received in the current hour, the last 24 hours and the calendar month, how much mail it keeps against its storage quota, and when each count goes down. An address has no limits of its own until somebody sets them, and then only the plan of the workspace applies. Hours and months are in UTC.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
setAddressLimits
Set, change or clear the sending and receiving limits of one address. Pass only the fields to change, inside sending and receiving: a field left out stays as it is, and null clears it. Caps are whole numbers from 1 to 10,000,000 a clock hour, the last 24 hours or the calendar month, in UTC. hold pauses or disables sending or receiving outright. Recipient and sender lists take up to 100 exact addresses, domains or *.domain patterns, where null means anyone and an empty list nobody. receiving.storageBytes is a storage quota in bytes, from 1 MiB (1048576) to 1 TiB (1099511627776): mail that would take the address past it gets a permanent bounce. The limits hold on every way mail leaves or arrives, and the answer shows them with the usage so far.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characterssendingobjectholdstringpausedholds sending: a new send is a 429address_sending_paused, and queued or scheduled mail waits and is tried again every 15 minutes.disabledstops it: a new send is a 403address_sending_disabled, and queued or scheduled mail fails. Null sends as usual.Can be nullOne of"paused""disabled"perHourintegerMessages it may send in the current clock hour, in UTC. Null removes the cap.
Can be nullAt least 1At most 10000000perDayintegerMessages it may send in the last 24 clock hours, the current one included. Null removes the cap.
Can be nullAt least 1At most 10000000perMonthintegerMessages it may send in the calendar month, in UTC. Null removes the cap.
Can be nullAt least 1At most 10000000recipientsPerHourintegerRecipients it may send to in the current clock hour, counting every address in
to,ccandbcc. Null removes the cap.Can be nullAt least 1At most 10000000recipientsPerDayintegerRecipients it may send to in the last 24 clock hours. Null removes the cap.
Can be nullAt least 1At most 10000000recipientsPerMonthintegerRecipients it may send to in the calendar month. Null removes the cap.
Can be nullAt least 1At most 10000000recipientsPerMessageintegerRecipients one message may have, counting
to,ccandbcctogether. More is a 403too_many_recipients. Null removes the cap.Can be nullAt least 1At most 10000000allowedRecipientsstring[]The only recipients it may send to, up to 100: an exact address (
[email protected]), a domain (client.com) or every subdomain of one (*.client.com), in any case. Null lets it send to anyone, and an empty list to nobody. Anyone else is a 403recipient_not_allowed.Can be nullUp to 100 itemsblockedRecipientsstring[]Recipients it may never send to, up to 100, written the same way. A message to one of them is a 403
recipient_not_allowed. Null or an empty list blocks nobody.Can be nullUp to 100 items
receivingobjectholdstringpausedturns mail away with a temporary bounce (4.2.1), so senders can try again later, anddisabledwith a permanent one (5.2.1). Null receives as usual.Can be nullOne of"paused""disabled"perHourintegerMessages it accepts in the current clock hour, in UTC. Past it, mail is turned away with a temporary bounce (4.2.2). Null removes the cap.
Can be nullAt least 1At most 10000000perDayintegerMessages it accepts in the last 24 clock hours. Null removes the cap.
Can be nullAt least 1At most 10000000perMonthintegerMessages it accepts in the calendar month, in UTC. Null removes the cap.
Can be nullAt least 1At most 10000000storageBytesintegerThe most mail it may keep, in bytes, from 1 MiB (1,048,576) to 1 TiB (1,099,511,627,776). Every message filed in its mailbox counts, with its kept original when it keeps originals, and deleting mail for good frees the space again. A message that would take it past the quota gets a permanent bounce (5.2.2). Mail stored before storage counting began and mail routed to a webhook are not counted. Null removes the quota.
Can be nullAt least 1048576At most 1099511627776allowedSendersstring[]The only senders it accepts mail from, up to 100, matched against the From header and the envelope sender, written like
allowedRecipients. Anyone else gets a permanent bounce (5.7.1). Null accepts anyone, and an empty list nobody.Can be nullUp to 100 items
Also available in
listDomainRoutes
The pattern routes of a domain, in the order they are tried: lowest priority first, then the longest literal text. A route catches mail to addresses nobody created that match its pattern, such as support-*, and delivers it to an address, forwards it, posts it to a webhook or reads it on another domain. Each line says whether the route takes mail now and, when it does not, why.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characters
Also available in
- API
GET /domains/{id}/routes- TypeScript
domains.listRoutes()domains.listAllRoutes()domains.iterateRoutes()- Python
domains.list_routes()domains.list_all_routes()domains.iterate_routes()- Ruby
domains.list_routesdomains.list_all_routesdomains.iterate_routes- PHP
domains->listRoutesdomains->listAllRoutesdomains->iterateRoutes- Go
Domains.ListRoutesDomains.ListAllRoutesDomains.IterateRoutes- Java
domains().listRoutesdomains().listAllRoutesdomains().iterateRoutes- C#
Domains.ListRoutesAsyncDomains.ListAllRoutesAsyncDomains.IterateRoutesAsync
getDomainRoute
One pattern route of a domain: what it catches, what it does and whether it takes mail now.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersrouteIdstringRequiredThe route id, as listDomainRoutes shows it (rte_...).
1 to 64 characters
Also available in
testDomainRoute
Test where mail to an address would go, without sending anything: which step decides (an address that exists, an alias, a pattern route, the catch-all, or none, so it would be turned away), the route that decided and where the mail would end up. Pass a local part or a whole address on the domain or one of its aliases.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
createDomainRoute
Add a pattern route to a domain. The pattern is the part before the @ with up to three * wildcards, such as support-* or *-invoices. Pass the field of the action you choose: targetAddress for deliver, forwardTo for forward (the address is asked by email to confirm first), webhookId for webhook, rewriteDomain for rewrite. A domain holds at most 100 routes, and an OAuth connection needs a verification code.
- Asks for a verification code
POST /domains/{id}/routes
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 characterspatternstringRequiredThe part before the @ that the route catches, matched without case against the address with any plus tag removed. 1 to 64 of the letters a to z, digits,
.,_,-,+and*, where each*stands for any run of characters, at most 3 of them.support-*catchessupport-euandsupport-billing, and*alone catches every address nobody created. Stored lowercased, and unique on the domain.Up to 320 charactersactionstringRequiredWhat happens to mail the route catches:
deliverfiles it attargetAddressId,forwardsends it on toforwardToonce that address confirms,webhookposts it towebhookIdasemail.routed, andrewritereads it as the same local part onrewriteDomainId.One of"deliver""forward""webhook""rewrite"targetAddressstringFor deliver: the address to file the mail at, as its id or the whole address. Any address of the workspace, on any of its domains.
Can be null1 to 320 charactersforwardTostringFor
forward: an address at another provider. It is sent an email asking it to confirm and receives nothing until it does. Sending it again on an update asks again when it has not confirmed.Can be nullUp to 320 charactersFormatemailwebhookIdstringFor webhook: the webhook endpoint id, as listWebhooks shows it.
Can be null1 to 64 charactersrewriteDomainstringFor rewrite: the other domain of the workspace to read the local part on, as its id or its name.
Can be null1 to 253 characterspriorityintegerThe order routes are tried in, from 0 to 1000, lowest first. Routes with the same priority are tried longest literal text first. Defaults to 100.
At least 0At most 1000enabledbooleanFalse keeps the route but stops it catching mail. Defaults to true.
descriptionstringA note for people, up to 200 characters.
Can be nullUp to 200 characters
Also available in
updateDomainRoute
Change a pattern route. Pass only what changes. Changing the action needs the field of the new action, and sending forwardTo again asks that address to confirm once more when it has not. An OAuth connection needs a verification code.
- Asks for a verification code
PATCH /domains/{id}/routes/{routeId}
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersrouteIdstringRequiredThe route id, as listDomainRoutes shows it (rte_...).
1 to 64 characterspatternstringThe part before the @ that the route catches, matched without case against the address with any plus tag removed. 1 to 64 of the letters a to z, digits,
.,_,-,+and*, where each*stands for any run of characters, at most 3 of them.support-*catchessupport-euandsupport-billing, and*alone catches every address nobody created. Stored lowercased, and unique on the domain.Up to 320 charactersactionstringWhat happens to mail the route catches:
deliverfiles it attargetAddressId,forwardsends it on toforwardToonce that address confirms,webhookposts it towebhookIdasemail.routed, andrewritereads it as the same local part onrewriteDomainId.One of"deliver""forward""webhook""rewrite"targetAddressstringFor deliver: the address to file the mail at, as its id or the whole address. Any address of the workspace, on any of its domains.
Can be null1 to 320 charactersforwardTostringFor
forward: an address at another provider. It is sent an email asking it to confirm and receives nothing until it does. Sending it again on an update asks again when it has not confirmed.Can be nullUp to 320 charactersFormatemailwebhookIdstringFor webhook: the webhook endpoint id, as listWebhooks shows it.
Can be null1 to 64 charactersrewriteDomainstringFor rewrite: the other domain of the workspace to read the local part on, as its id or its name.
Can be null1 to 253 characterspriorityintegerThe order routes are tried in, from 0 to 1000, lowest first. Routes with the same priority are tried longest literal text first. Defaults to 100.
At least 0At most 1000enabledbooleanFalse keeps the route but stops it catching mail. Defaults to true.
descriptionstringA note for people, up to 200 characters.
Can be nullUp to 200 characters
Also available in
deleteDomainRoute
Delete a pattern route. Mail it caught then goes to the next route that matches, or to the catch-all.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersrouteIdstringRequiredThe route id, as listDomainRoutes shows it (rte_...).
1 to 64 characters
Also available in
listGroupMembers
The group members of a group address: the addresses of the workspace and the outside addresses its mail goes to, and whether each outside one has confirmed. These are not the people who can read the address, which listAddressMembers shows.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 characters
Also available in
- API
GET /domains/{id}/addresses/{addressId}/group-members- TypeScript
domains.listGroupMembers()domains.listAllGroupMembers()domains.iterateGroupMembers()- Python
domains.list_group_members()domains.list_all_group_members()domains.iterate_group_members()- Ruby
domains.list_group_membersdomains.list_all_group_membersdomains.iterate_group_members- PHP
domains->listGroupMembersdomains->listAllGroupMembersdomains->iterateGroupMembers- Go
Domains.ListGroupMembersDomains.ListAllGroupMembersDomains.IterateGroupMembers- Java
domains().listGroupMembersdomains().listAllGroupMembersdomains().iterateGroupMembers- C#
Domains.ListGroupMembersAsyncDomains.ListAllGroupMembersAsyncDomains.IterateGroupMembersAsync
addGroupMembers
Add group members to a group address, up to 100 at a time and 1,000 in all. Each entry is an address of the workspace or an address at another provider, which is asked by email to confirm and receives nothing until it does. Groups nest at most three deep. An OAuth connection needs a verification code.
- Asks for a verification code
POST /domains/{id}/addresses/{addressId}/group-members
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersmembersstring[]Required- 1 to 100 items
Also available in
removeGroupMember
Remove one group member from a group address, so its mail stops going there.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaddressstringRequiredThe address, by its id, by the whole address ([email protected]) or by the part before the @. listDomainAddresses names every one.
1 to 320 charactersmemberIdstringRequiredThe group member id, as listGroupMembers shows it (grm_...).
1 to 64 characters
Also available in
setDomainAlias
Make a domain an alias of another domain of the workspace, or stop it being one. Mail to local@alias is then handled exactly as local@primary, and local@alias may be used as a From address wherever local@primary may. An alias holds no addresses or routes of its own and has no aliases.
Inputs
domainstringRequiredThe domain, by its id or by its name (example.com). listDomains names every one.
1 to 253 charactersaliasOfstringRequiredThe primary domain, as its id or its name, or null to stop the domain being an alias.
Can be null1 to 253 characters
Also available in
- API
PATCH /domains/{id}- TypeScript
domains.update()- Python
domains.update()- Ruby
domains.update- PHP
domains->update- Go
Domains.Update- Java
domains().update- C#
Domains.UpdateAsync