Java
Changelog
Every release of the package, newest first.
0.1.0
calendar().listCalendarLogins,createCalendarLogin,revokeCalendarLoginandcreateCalendarLoginProfileLinkmanage calendar sign-ins, through/calendar/logins. A calendar sign-in belongs to a person, not to an address: its username iscal-and ten letters and digits, never an address, and it signs calendar and contacts apps in over CalDAV and CardDAV to that person’s calendars, the calendars and address books shared with them and their contacts, even when they hold no address at all. Mail apps refuse it and it never sends.createCalendarLoginreturns thepassword, shown this once,serverswith thecaldavandcarddavservers, and an Apple configuration profile inappleProfilewith CalDAV and CardDAV only, andcreateCalendarLoginProfileLinkmakes a one-time link that sets one up on an Apple device. Your own takeaccount:readandaccount:write, andmember, an option oflistCalendarLoginsand a body field of the two that create, reaches a member’s withmembers:write. Neither of those two is retried.SecurityEventKinds.CALENDAR_LOGIN_CREATED("calendar-login-created") andSecurityEventKinds.CALENDAR_LOGIN_REVOKED("calendar-login-revoked") are two more kinds in the security log, and thedetailof an entry carrieslogin, the username of the sign-in it is about.- To-dos: a to-do list is a calendar of kind
todos(CalendarKinds.TODOS), and its items are RFC 5545 to-dos that calendar apps such as Reminders, Thunderbird and tasks.org sync over CalDAV.calendar().listTodos,listAllTodosanditerateTodosread them throughGET /calendar/todos, filtered bycalendarIds,state(open,doneorall,TodoStates),dueBeforeanddueAfter.getTodo(id),createTodo(body),updateTodo(id, patch)anddeleteTodo(id)work on one, anddeleteTodoreturns how many to-dos itremoved. A to-do has atitle,notes, astatus(TodoStatuses),startanddueas a day or a moment withallDayandtimezone,completedAt,priority,percentComplete,categories, theparentIdof the to-do it is a step of and therecurrenceit repeats by. Checking off a repeating to-do moves it to its next date. They needcalendar:readandcalendar:write, andcreateTodois not retried after a network failure. calendar().listCalendarstakeskindand lists your to-do lists withCalendarKinds.TODOS, andcreateCalendartakeskindin its body to make one. Members, colours, order and deleting work on to-do lists as they do on calendars.calendar().deleteCalendartakesnotifyGuests: left out ortrue, the guests of every upcoming meeting you organised in the calendar are sent a cancellation, ascancelEventdoes, andfalsedeletes it without telling anyone. The result carriescancelledMeetings. Sending the cancellations needsemails:sendas well.threads().listAutomationsreads which automations ran on a thread and what they did, throughGET /threads/{id}/automations: a list of maps, newest first, each with theautomationit was (id,nameandstatus), itsstatusandtrigger, the case the email matched inmatch(the address or domain that received it, the sender entry and the filters that held, or null), themessagesof the thread it started from or sent, each with arolefromAutomationThreadRoles, and every step it ran insteps, with the step as the version defines it. It needsthreads:readandautomations:read.liveEvents().streamfollows the mailbox as it changes, throughGET /live-events. It returns aLiveEventStream, anIterator,IterableandAutoCloseableof event maps withid,type,occurredAtanddata, formessage.received,message.sent,thread.changed,thread.deletedandmessage.status_changed(LiveEventTypes, with the delivery statuses inLiveSendStatuses). It takestypes,addressandlastEventId, opens the connection again for as long as you read and resumes throughLast-Event-ID, backs off after a network failure, a 408, a 429 or a 5xx, and drops a connection that sends nothing for 60 seconds. When the server can no longer replay, it yields aresetevent (LiveEventStream.RESET, with the reason inLiveResetReasons). A 400, 401, 403, 404 or 422 throws itsApiException. Close it with try-with-resources, withclose()from any thread or by interrupting the thread that reads it.stream()returns it as ajava.util.stream.Stream, andlastEventId()returns the id it would resume after.threads().waitForEmailholds a request open, throughGET /threads/wait, until a message that matchesaddress,fromandsubjectarrives aftersince, for at mosttimeout, aDurationof whole seconds from 0 to 60 that defaults to 30 seconds. It returns amessage_waitmap whosemessageis the arrival, or null when nothing came in time, and the request gets a deadline of the wait plus 15 seconds, whatever the client’s owntimeout.AddressForwardStatuses.BOUNCED("bounced") is a forwarding destination whose server refused forwarded mail for good, so nothing is forwarded to it until it confirms again. A route that forwards to one readsAddressRouteInactiveReasons.FORWARD_BOUNCED("forward_bounced"). Asking a bounced destination again sends it a new confirmation.- A traffic entry and a routed message carry
verdicts.arc: the ARC verdict for the servers that forwarded the message on its way in,pass,fail,noneortemperror, andnullon an entry written before ARC was checked. calendar().listCalendars,getCalendar,createCalendar,updateCalendaranddeleteCalendarmanage your calendars: the ones you keep, with your default one among them, and the ones other members of the workspace gave you access to, each with its owncolorandposition. Deleting a calendar deletes its events, and your default calendar cannot be deleted.calendar().setCalendarMember(id, memberId, body)gives a memberreadorwriteaccess to a calendar you keep, fromaccessin the body (CollectionAccessLevels), and is retried after a network failure, andremoveCalendarMember(id, memberId)takes it away.accesson a calendar says what you may do with it (CollectionRights).- Calendar events and occurrences carry
calendarId.createEventtakescalendarIdto put the event in a calendar,updateEventtakes it to move one,listEvents,listAllEventsanditerateEventstakecalendarIdsto keep only some calendars,createFeedtakescalendarIdto publish one calendar, and every calendar link says which, andimportIcstakescalendarIdfor the calendar the events go into. contacts().listAddressBookslists your address book and the ones other members gave you access to.contacts().setAddressBookMember(id, memberId, body)gives a memberreadorwriteaccess to yours (CollectionAccessLevels) and is retried after a network failure, andremoveAddressBookMember(id, memberId)takes it away.listCards,listAllCardsanditerateCardstakeaddressBookto read one you are a member of, andcreateCardtakes it to add to one you may write.traffic().list,listAllanditerateread the traffic log: one entry for each message and recipient at each step it took in or out of the workspace, newest first, kept for 30 days. They takedomainId,direction,outcomes,address,recipient,sinceanduntil. Outbound entries needemails:readand inbound onesthreads:read.emails().sendRawsends an RFC 5322 message you built yourself, as written:rawis its bytes as a byte array or aPath, read and encoded for you, or base64 text, up to 10 MB. The sender is its From header and the recipients its To, Cc and Bcc headers, unlessto,ccorbccgive the envelope. It takes the scheduling, tracking, signature, tag and lane options ofsend, honoursidempotencyKey, and never sends a Bcc header.- The
email_receivedtrigger of an automation takessenders, the addresses or domains its mail has to come from, where a domain covers its subdomains. Left out or empty, mail from anybody starts it. settings().updatetakeslabelAlerts, andsettings().getreturns it: label ids under each workspace id whose mail still alerts you while labelled mail stays out of your inbox.MailboxProviders.OPENEMAILandMailServices.OPENEMAIL("openemail"): the provider of a mailbox on OpenEmail and thesentWithof a message sent with it.sentWithstays empty, rather than naming Outlook or Gmail, when another mail service signed the message and the only hint is that it passed through Microsoft’s or Google’s servers on the way or was written in the Outlook app.shareLinks().list,listAllanditerateread the templates, forms and automations the workspace shares at a public link, the newest first, with how often each page was opened and each item copied, and takekind(ShareKinds).shareLinks().get(kind, itemId)reads the link of one item,shareLinks().set(kind, itemId)makes it public, with a body whosecopyablesays whether people may copy it, andshareLinks().delete(kind, itemId)makes it private again. A private item answers 404share_link_not_found.setis retried after a network failure, since an item keeps one link however often it is shared, anddeleteis not.shared().get(token)reads what the public page of a link shows, from any workspace, with thetemplate,formorautomationitskindnames, andshared().copy(token)copies the item into this workspace as a draft and is never retried. An item its owner shares to look at only answers 403share_not_copyable, and a link that no longer works answers 404shared_item_not_found.tasks().list,listAllanditeratetakechatIdto read only the tasks made in one assistant chat, the ones the chat shows above its messages, as the Tasks page does when a chat’s task is opened. A chat belongs to one person, so the id of a chat you cannot open lists no tasks.
0.0.1
The first release of the Java SDK, sh.nextmail:nextmail. It needs Java 17 or later and has no dependency: requests go through java.net.http.HttpClient, and the JSON reader and writer are its own. It has a method for each of the 746 methods of the TypeScript SDK, in the same 53 namespaces and under the same names. They cover everything from sending and reading mail to contacts, broadcasts, automations, the calendar, booking pages, tasks and the settings of a workspace, and a parity check proves that each one sends the same request as its TypeScript twin.
new Nextmail()andNextmail.builder()readNEXTMAIL_API_KEY,NEXTMAIL_ACCESS_TOKENandNEXTMAIL_BASE_URLfor anything left out, and the builder takesapiKey,accessToken,baseUrl,timeout,maxRetries,httpClient,userAgentandheader. The client has an accessor for every namespace, such asemails(),threads()anddomains(), and it is immutable and safe to share between threads.- A request body is a
Map<String, Object>whose keys keep the camelCase names of the API, andBody.ofbuilds one that keeps its order and takes null values. Options such aslimit,cursor,idempotencyKeyand the filters of a method go in an immutableRequestOptions, and a method refuses an option it does not take before anything is sent. A response comes back as the decodedMap<String, Object>. - Every paginated resource has
list, which returns onePage,listAll, which returns every item as aList, anditerate, which returns aPagedIterablethat fetches the next page only when the loop gets there. - An API refusal throws
ApiException, or its subclass for the error type such asNotFoundException,ValidationExceptionorRateLimitException, withstatus(),code(),param(),requestId()and checks such asisValidation()andisStepUpRequired(). No response at all throwsNetworkException, withisTimeout()when the deadline passed. Every one is an uncheckedNextmailException, and a mistake in the call itself throwsIllegalArgumentExceptionbefore anything is sent. - Reads, sends and every write that is safe to repeat are retried on 408, 500, 502, 503 and 504 with backoff, and on a 429 only when its
Retry-Afteris a minute or less. Every send carries an idempotency key that its retries reuse, and theidempotencyKeyoption sets your own. accessTokentakes an OAuth access token, or aSupplierthat returns one before every request, so the token can be renewed without a new client. When a change made with a token needs a verification code, the call throws withisStepUpRequired(), andsecurity().beginStepUpandverifyStepUpprovide one.- Every workspace is the same kind, the one that holds the free address included. That address sends only the mail a person writes in the app, so a send from it with an API key or an access token is refused with
from_address_forbidden. Nextmail.verifyWebhookSignature()checks a webhook delivery in constant time, refuses one more than five minutes old and returns the decoded event.Nextmail.createTempMail()opens disposable inboxes with no credential, andclient.raw().request()calls an endpoint no method wraps, with the credential, timeout and retries of the client.Nextmail.toBase64(),isApiKey(),isAccessToken(),isSealed(),resolveLanguage(),languageByCode()andisRtlLanguage()are the helpers of the TypeScript SDK, and every set of values the API uses is a class insh.nextmail.constants.- A credential goes over plain
http:only to a server on this machine, the default HTTP client follows no redirects, and a credential never appears intoString(), in an exception or in its cause. When a newer version is out, the client says so once on standard error, only on a terminal, andNEXTMAIL_DISABLE_UPDATE_NOTICE=1ordisableUpdateNotice(true)turns that off. - API keys begin
nm_live_ornm_test_, and temporary inbox tokensnm_inbox_. The client refuses a key of any other shape. account().setPhoto,contacts().setPhoto,domains().setAddressPhoto,bookings().uploadBackground,branding().uploadImageandtemplates().uploadImagetake images up to 100 MB and acropoption, anImageCropofx,y,widthandheightfractions that names the part of the image to keep. Likefiles().upload, they wait for the client timeout or ten minutes, whichever is longer.emails().listEventsByMessageId,listAllEventsByMessageIdanditerateEventsByMessageIdread the event trail of a sent email found by the Message-ID header it went out with, for a caller that holds that header and not themsg_id, such as a reply or a bounce report that quotes it. They takelimit,cursorandaddress, and a Message-ID that no message the key reaches went out with is a 404.providerImports().list,listAllanditeratetakesource(ProviderImportProviders),status(ImportHistoryStatuses) andsearch, up to 320 characters, the filtersimports().listtakes. An import from a provider never pauses, so astatusofpausedanswers an empty page.emails().listEvents,listAllEventsanditerateEventstakemessageId, 1 to 998 characters: the trail answers only when the send went out with that Message-ID header, with or without its angle brackets, and is a 404 otherwise. The send id is still required.files().createLinktakesreuse: true hands back the working public link the file already has, with its own domain and download count, instead of making another, and a file with none gets a new one. A link handed back answers 200 and a new one 201.keys().create,updateanddelete,keys().rotatefor any key but the caller, andworkspaces().offerOwnership,withdrawOwnershipOffer,account().acceptOwnershipOfferanddeclineOwnershipOfferrefuse an API key with 403console_only. The console confirms these changes with a verification code, which a key cannot give, so they are made there. A key still rotates its own secret withkeys().rotateorme().rotate, and revokes keys withkeys().revoke.appHost().get,setandverifyreportsender, where the emails Nextmail sends to the people of the workspace come from: a map withaddress,domainandwaitingOn, or null on the free plan and until an address on a verified domain of the workspace is live.waitingOnislogoorsigning(AppHostSenderWaits) until those emails come fromnoreply@the domain of the live address, then null.addresses().list,listAllanditeratereport theroleof each address (AddressRoles):owneron every address for an API key, andmemberorviewerfor an app a member connected. A key narrowed to particular addresses or domains lists only the addresses and domains it covers, and the free address of the person the key acts for is listed, withroleowner, by a key of the workspace it belongs to.chats().listMessages,listAllMessagesanditerateMessagesread the messages of a chat with the assistant, each with itstextand itsparts(ChatMessagePartTypes), from the first or, withorderset todesc, from the newest (ChatMessageOrders).chats().sendMessagesays something in a chat, or starts one, and returns the turn once the assistant has replied: itsstatus(ChatTurnStatuses), its messages and anypendingToolCalls, whichapproveToolCall, withargsto change, anddenyToolCallanswer.stopTurnstops a turn (ChatStopStatuses).sendMessage,approveToolCallanddenyToolCallwait for the client timeout or five minutes, whichever is longer, unless thetimeoutoption says otherwise, and none of the four is retried.account().setNamechanges the name of the person behind the client.account().listPushDevices,removePushDeviceandsendTestPushlist the phones that get their notifications (PushPlatforms), stop one getting them and send a test notification, andaccount().endConnectedAppElevationmakes a connected app ask for verification codes again.workspaces().offerOwnership,getOwnershipOfferandwithdrawOwnershipOfferoffer the workspace to one of its members, read the offer and withdraw it, andaccount().listOwnershipOffers,acceptOwnershipOfferanddeclineOwnershipOfferanswer one. Making an offer and accepting one ask an OAuth access token for a verification code.members().getDirectorySync,connectDirectorySync,disconnectDirectorySync,listDirectoryPeople,setDirectoryDefaultRoleandsetDirectoryGroupRoleread and manage directory sync (SCIM), through which a company directory adds people to the workspace and takes them out again (DirectoryPersonStates).connectDirectorySyncreturns the token once, and a role id of null goes back to the built-in Member role. Only the owner or a role holdingworkspace:managereaches them, and every change asks an OAuth access token for a verification code.security().getPolicyreads whether the workspace requires everyone to sign in with two-factor authentication and whether the person behind the client meets it, andsecurity().updatePolicyrequires it or lifts it.getPolicyneeds no scope, andupdatePolicyneedsmembers:writeand a verification code.threads().setReplyingandclearReplyingshow the team that you are writing a reply.threads().listTrackingreads the tracking report of every message the workspace sent in a thread,threads().getDeliverycounts what bounced, failed or was suppressed there, andthreads().listFileLinks,listAllFileLinksanditerateFileLinkslist the download links one message carried, the revoked ones too withincludeRevoked.threads().countstakeshideLabelled.senders().getAvatardownloads the picture found for a sender as abyte[], andsenders().getandresearchreportavatarUrlandavatarKind(SenderAvatarKinds).dnsConnections().startanddomains().startGravatarPublishreturn theurla person opens in a browser signed in to Nextmail to connect a Cloudflare account, and to publish the photo of an address to Gravatar.domains().createMailAppProfileLinkmakes a one-time link that sets an address up on an iPhone, iPad or Mac.emails().sendandsendBatchtakeisForward,originalMessage, the email being forwarded or answered, quoted below the body, andencryption, for a message you sealed yourself with OpenPGP. An attachment given as a map withurl, a file at an https address, is sent with itsurland thefilenameandcontentTypeit has.emails().translatetakesskipQuoted, which leaves the quoted history of a message out of the translation, and reportsquotedHistoryKept.emails().getTracking,listEvents,listAllEventsanditerateEvents, andtracking().listOpens,listClicksand theirlistAllanditeratetwins, takeaddress,tracking().list,listAllanditeratetakeoffsetMinutes, andtracking().getStatsreportsdownloads.drafts().createanddrafts().updatetakeattachments, up to 20 files given inline or byfileId, anddrafts().getreports thefileIdof each file.templates().updateandreplaceContenttakeexpectedUpdatedAt, andpublishtakes it as an option: a draft saved again since you read it is a 409version_conflict. Every template version reportsupdatedAt.audiences().addContactandcontacts().setAudiencestakecreateContact, which saves an address that is not a contact yet as one first and needscontacts:write.contacts().list,listAllanditeratetakeaudienceId,audiences().listContactsand its twins takeinactiveDays, andcontacts().activitytakesfromandto.audiences().growth,bookings().analyticsandforms().analyticstakesinceanduntil, andbroadcasts().analyticsandbroadcasts().statstakesince.imports().list,listAllanditeratetakesource,status(ImportHistoryStatuses) andsearch,rules().listRunsand its twins takeruleIds, andsignatures().listand its twins takefrom, which lists the signatures a message sent as that address can carry.- Scopes:
addresses().list,listAllanditerateneedemails:read, oremails:sendin its place. Theaudiences().listContactsmethods needcontacts:readas well asaudiences:read.emails().compose,rewrite,suggestSubjectandtranslatetakedrafts:writein place ofemails:send.domains().getMailAppSettingsandlistAppPasswordsneedthreads:read, anddomains().updateMailAppSettingsneedsthreads:readanddomains:write.domains().createAddressasks an OAuth access token for a verification code when it chooses where the mail goes or deletion on expiry. domains().createAddressanddomains().updateAddresstakeexpiresAtandonExpiry(AddressExpiryActions), and every address map reports them withexpiredAt. From itsexpiresAtan address takes no mail and sends none, a send from it is refused with 403address_expired, and within a minute it is switched off, or deleted with the conversations delivered to it whenonExpiryisdelete. A laterexpiresAt, null orenabledtrue turns a stopped address back on.WebhookEvents.ADDRESS_EXPIREDis the eventaddress.expired.DomainAddressDestinationsincludesWEBHOOKandGROUP. The same two methods takewebhookIdfor a webhook destination,tapWebhookIdsto copy every message to up to 5 endpoints, andgroupPosting(AddressGroupPostingPolicies) andgroupKeepCopyfor a group, and every address map reports them. The refusals arewebhook_not_foundandtoo_many_taps.WebhookEvents.EMAIL_ROUTEDis the eventemail.routed: a message that arrived at an address whose destination iswebhook, or that a route of its domain sent to a webhook, was kept for 30 days instead of being filed. It goes only to the endpoint the address or route names and to the taps of the address, and always carriescontentandraw.routedBysays which sent it, with akindfromWebhookRoutedSourcesand anid,recipientkeeps the plus tag andverdictsare what the receiving server found. Anemail.receivedevent carriestaptrue when an endpoint gets the message as a tap of the address rather than through its subscription.domains().listRoutes,listAllRoutesanditerateRoutesread the pattern routes of a domain in the order they are tried.domains().createRoute,getRoute,updateRouteanddeleteRoutemanage them: a route catches mail to addresses nobody created whose local part matches itspattern, such assupport-*, and delivers it to an address, forwards it once the destination confirms, posts it to a webhook asemail.routedor reads it on another domain (AddressRouteActions).activeandinactiveReason(AddressRouteInactiveReasons) say whether a route takes mail now. A domain holds at most 100 routes, and the refusals areinvalid_route_pattern,route_pattern_taken,route_target_not_foundandroute_limit_reached.domains().testRouteanswers which step decides mail to an address (AddressRouteTestSteps), the route and where the mail goes, without sending anything.domains().listGroupMembers,listAllGroupMembersanditerateGroupMembersread the group members of a group address, anddomains().addGroupMembersandremoveGroupMemberchange them. A group member is an address of the workspace or an address at another provider, which confirms by email first (GroupMemberKinds). A group holds at most 1,000 group members and groups nest at most 3 deep, and the refusals arenot_a_group,group_member_limit,group_member_not_foundandgroup_nesting_too_deep.domains().updatetakesaliasOf, which makes the domain an alias of another domain of the workspace, and every domain map reportsaliasOfandaliases, each alias with itsidanddomain. The refusals arealias_not_allowed,alias_chainandalias_has_addresses, and creating an address on an alias is refused withalias_has_addresses.domains().updateAddressLimitstakesreceiving.storageBytes, a storage quota for one address from 1 MiB to 1 TiB, anddomains().getAddressLimitsreports it inreceiving. 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.domains().getAddressLimitsreports what the address keeps inusage.storage, withbytesandmessages: every message filed in its mailbox since storage counting began, with its kept original when it keeps originals. Mail stored before then and mail routed to a webhook are not counted.webhooks().listDeadLetters,listAllDeadLettersanditerateDeadLettersread the events an endpoint gave up on: each event whose last automatic attempt failed, with how many times it was tried, the last answer and that attempt. Thestatusoption reads theopenones by default, orreplayed,discardedorall(WebhookDeadLetterFilters), and each dead letter has astatusfromWebhookDeadLetterStatuses. A dead letter is kept 30 days.webhooks().replayDeadLetterssends up to 100 open dead letters again in one call, the named ones or the oldest, and answers with anoutcomefor each (WebhookDeadLetterReplayOutcomes). A delivered one is closed asreplayed.webhooks().discardDeadLettercloses one without sending it, and one already replayed is 409dead_letter_resolved.webhooks().createandwebhooks().updatetakeretryPolicy(WebhookRetryPolicies):standardtries a failed delivery up to 8 times over about 27 and a half hours, andextendedup to 16 times over about 3 days. They also takeincludeRaw, which needsthreads:read, and every endpoint map reports both.threads().getRawMessagedownloads the source of one message asmessage/rfc822bytes, abyte[]ready to save as an.emlfile. It is the message byte for byte as it arrived when the address hadkeepOriginalon, and otherwise a source rebuilt from the stored message, the same bytes the IMAP server gives a mail app. TheX-Message-Sourceresponse header says which, one ofRawMessageSources.domains().createAddressanddomains().updateAddresstakekeepOriginal, and every address map reports it. While it is on, each message the address receives is also kept byte for byte as it arrived, and it is deleted with its message.- An
email.receivedevent to an endpoint withincludeRawon carriesdata.raw: a link that downloads the message source for an hour, itssizeand itssource,originalorrebuilt. domains().getAddressLimitsanddomains().updateAddressLimitsread and change what one address may send and receive: a hold that pauses or disables sending or receiving, caps per hour, per 24 hours and per month on messages and recipients, recipients per message, and lists of allowed and blocked recipients and allowed senders, with the usage so far.AddressHoldslists the holds.domains().getanddomains().updategive each DNS recordfound, what public DNS answers at that name now, andproblem, with acodefromDomainRecordProblemsand amessageto show a person.domains().updatetakesautodiscovery, which offers the SRV and TXT records that let mail, calendar and contacts apps find the servers from an address on the domain alone, listed inautodiscoveryRecords.webhooks().createandwebhooks().updatetakeincludeContent, which puts the message into everyemail.receivedevent asdata.content: the text, the HTML up to 512 KiB and each attachment with a link that downloads it for an hour. Turning it on needsthreads:read.- A connected mailbox can be the sender of
emails().sendwith 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. threads().countsleaves labelled mail out ofteam.assignedandteam.unassigned, as the inbox does, unless the person has chosen to show labelled mail in the inbox.billing().getreportsusage.addressChecks, the deep address checks used this calendar month against what the plan includes, andbilling().listPlanseach plan’smonthlyAddressChecks.tools().checkAddressandtools().checkAddresseswithdeepfirst use the deep checks the plan includes each month (10 on Free, 100 on Starter, 500 on Business, 1,000 on Enterprise), then pay as you go at $1.50 per 100 addresses.- An automation branch can check the contact’s address:
{"kind": "address_check", "mailbox": ..., "accept": ...}, withacceptfromAutomationAddressAccepts. - A send leaves out an address whose domain takes no mail, and one the check on sending finds has no mailbox. Each shows as
suppressed, with anemail.suppressedwebhook that names the reason, never as a bounce. - Forms check the address of every sign-up:
forms().subscriberefuses one whose domain takes no mail with the field errorundeliverable.refuseDisposablein the settings also refuses throwaway addresses (disposable),checkMailboxruns a deep check on every sign-up and refuses a missing mailbox (mailbox_not_found), and a refused address that looks like a typo carriessuggestion. domains().list,members().list,keys().list,webhooks().list,rules().listandconnectedMailboxes().list, with theirlistAllanditerate, take the optionq, which searches every field a person reads on the row: names, addresses, ids, scopes, events, condition values. Every word has to appear, ignoring case and accents, and close spellings count when nothing matches exactly.rules().statsreads 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.ruleIdscounts some rules only.