Skip to the documentation
Java

Changelog

Every release of the package, newest first.

0.1.0

  • calendar().listCalendarLogins, createCalendarLogin, revokeCalendarLogin and createCalendarLoginProfileLink manage calendar sign-ins, through /calendar/logins. A calendar sign-in belongs to a person, not to an address: its username is cal- 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. createCalendarLogin returns the password, shown this once, servers with the caldav and carddav servers, and an Apple configuration profile in appleProfile with CalDAV and CardDAV only, and createCalendarLoginProfileLink makes a one-time link that sets one up on an Apple device. Your own take account:read and account:write, and member, an option of listCalendarLogins and a body field of the two that create, reaches a member’s with members:write. Neither of those two is retried.
  • SecurityEventKinds.CALENDAR_LOGIN_CREATED ("calendar-login-created") and SecurityEventKinds.CALENDAR_LOGIN_REVOKED ("calendar-login-revoked") are two more kinds in the security log, and the detail of an entry carries login, 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, listAllTodos and iterateTodos read them through GET /calendar/todos, filtered by calendarIds, state (open, done or all, TodoStates), dueBefore and dueAfter. getTodo(id), createTodo(body), updateTodo(id, patch) and deleteTodo(id) work on one, and deleteTodo returns how many to-dos it removed. A to-do has a title, notes, a status (TodoStatuses), start and due as a day or a moment with allDay and timezone, completedAt, priority, percentComplete, categories, the parentId of the to-do it is a step of and the recurrence it repeats by. Checking off a repeating to-do moves it to its next date. They need calendar:read and calendar:write, and createTodo is not retried after a network failure.
  • calendar().listCalendars takes kind and lists your to-do lists with CalendarKinds.TODOS, and createCalendar takes kind in its body to make one. Members, colours, order and deleting work on to-do lists as they do on calendars.
  • calendar().deleteCalendar takes notifyGuests: left out or true, the guests of every upcoming meeting you organised in the calendar are sent a cancellation, as cancelEvent does, and false deletes it without telling anyone. The result carries cancelledMeetings. Sending the cancellations needs emails:send as well.
  • threads().listAutomations reads which automations ran on a thread and what they did, through GET /threads/{id}/automations: a list of maps, newest first, each with the automation it was (id, name and status), its status and trigger, the case the email matched in match (the address or domain that received it, the sender entry and the filters that held, or null), the messages of the thread it started from or sent, each with a role from AutomationThreadRoles, and every step it ran in steps, with the step as the version defines it. It needs threads:read and automations:read.
  • liveEvents().stream follows the mailbox as it changes, through GET /live-events. It returns a LiveEventStream, an Iterator, Iterable and AutoCloseable of event maps with id, type, occurredAt and data, for message.received, message.sent, thread.changed, thread.deleted and message.status_changed (LiveEventTypes, with the delivery statuses in LiveSendStatuses). It takes types, address and lastEventId, opens the connection again for as long as you read and resumes through Last-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 a reset event (LiveEventStream.RESET, with the reason in LiveResetReasons). A 400, 401, 403, 404 or 422 throws its ApiException. Close it with try-with-resources, with close() from any thread or by interrupting the thread that reads it. stream() returns it as a java.util.stream.Stream, and lastEventId() returns the id it would resume after.
  • threads().waitForEmail holds a request open, through GET /threads/wait, until a message that matches address, from and subject arrives after since, for at most timeout, a Duration of whole seconds from 0 to 60 that defaults to 30 seconds. It returns a message_wait map whose message is 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 own timeout.
  • 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 reads AddressRouteInactiveReasons.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, none or temperror, and null on an entry written before ARC was checked.
  • calendar().listCalendars, getCalendar, createCalendar, updateCalendar and deleteCalendar manage 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 own color and position. Deleting a calendar deletes its events, and your default calendar cannot be deleted. calendar().setCalendarMember(id, memberId, body) gives a member read or write access to a calendar you keep, from access in the body (CollectionAccessLevels), and is retried after a network failure, and removeCalendarMember(id, memberId) takes it away. access on a calendar says what you may do with it (CollectionRights).
  • Calendar events and occurrences carry calendarId. createEvent takes calendarId to put the event in a calendar, updateEvent takes it to move one, listEvents, listAllEvents and iterateEvents take calendarIds to keep only some calendars, createFeed takes calendarId to publish one calendar, and every calendar link says which, and importIcs takes calendarId for the calendar the events go into.
  • contacts().listAddressBooks lists your address book and the ones other members gave you access to. contacts().setAddressBookMember(id, memberId, body) gives a member read or write access to yours (CollectionAccessLevels) and is retried after a network failure, and removeAddressBookMember(id, memberId) takes it away. listCards, listAllCards and iterateCards take addressBook to read one you are a member of, and createCard takes it to add to one you may write.
  • traffic().list, listAll and iterate read 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 take domainId, direction, outcomes, address, recipient, since and until. Outbound entries need emails:read and inbound ones threads:read.
  • emails().sendRaw sends an RFC 5322 message you built yourself, as written: raw is its bytes as a byte array or a Path, 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, unless to, cc or bcc give the envelope. It takes the scheduling, tracking, signature, tag and lane options of send, honours idempotencyKey, and never sends a Bcc header.
  • The email_received trigger of an automation takes senders, 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().update takes labelAlerts, and settings().get returns it: label ids under each workspace id whose mail still alerts you while labelled mail stays out of your inbox.
  • MailboxProviders.OPENEMAIL and MailServices.OPENEMAIL ("openemail"): the provider of a mailbox on OpenEmail and the sentWith of a message sent with it.
  • sentWith stays 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, listAll and iterate read 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 take kind (ShareKinds). shareLinks().get(kind, itemId) reads the link of one item, shareLinks().set(kind, itemId) makes it public, with a body whose copyable says whether people may copy it, and shareLinks().delete(kind, itemId) makes it private again. A private item answers 404 share_link_not_found. set is retried after a network failure, since an item keeps one link however often it is shared, and delete is not.
  • shared().get(token) reads what the public page of a link shows, from any workspace, with the template, form or automation its kind names, and shared().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 403 share_not_copyable, and a link that no longer works answers 404 shared_item_not_found.
  • tasks().list, listAll and iterate take chatId to 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() and Nextmail.builder() read NEXTMAIL_API_KEY, NEXTMAIL_ACCESS_TOKEN and NEXTMAIL_BASE_URL for anything left out, and the builder takes apiKey, accessToken, baseUrl, timeout, maxRetries, httpClient, userAgent and header. The client has an accessor for every namespace, such as emails(), threads() and domains(), 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, and Body.of builds one that keeps its order and takes null values. Options such as limit, cursor, idempotencyKey and the filters of a method go in an immutable RequestOptions, and a method refuses an option it does not take before anything is sent. A response comes back as the decoded Map<String, Object>.
  • Every paginated resource has list, which returns one Page, listAll, which returns every item as a List, and iterate, which returns a PagedIterable that fetches the next page only when the loop gets there.
  • An API refusal throws ApiException, or its subclass for the error type such as NotFoundException, ValidationException or RateLimitException, with status(), code(), param(), requestId() and checks such as isValidation() and isStepUpRequired(). No response at all throws NetworkException, with isTimeout() when the deadline passed. Every one is an unchecked NextmailException, and a mistake in the call itself throws IllegalArgumentException before 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-After is a minute or less. Every send carries an idempotency key that its retries reuse, and the idempotencyKey option sets your own.
  • accessToken takes an OAuth access token, or a Supplier that 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 with isStepUpRequired(), and security().beginStepUp and verifyStepUp provide 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, and client.raw().request() calls an endpoint no method wraps, with the credential, timeout and retries of the client.
  • Nextmail.toBase64(), isApiKey(), isAccessToken(), isSealed(), resolveLanguage(), languageByCode() and isRtlLanguage() are the helpers of the TypeScript SDK, and every set of values the API uses is a class in sh.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 in toString(), 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, and NEXTMAIL_DISABLE_UPDATE_NOTICE=1 or disableUpdateNotice(true) turns that off.
  • API keys begin nm_live_ or nm_test_, and temporary inbox tokens nm_inbox_. The client refuses a key of any other shape.
  • account().setPhoto, contacts().setPhoto, domains().setAddressPhoto, bookings().uploadBackground, branding().uploadImage and templates().uploadImage take images up to 100 MB and a crop option, an ImageCrop of x, y, width and height fractions that names the part of the image to keep. Like files().upload, they wait for the client timeout or ten minutes, whichever is longer.
  • emails().listEventsByMessageId, listAllEventsByMessageId and iterateEventsByMessageId read 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 the msg_ id, such as a reply or a bounce report that quotes it. They take limit, cursor and address, and a Message-ID that no message the key reaches went out with is a 404.
  • providerImports().list, listAll and iterate take source (ProviderImportProviders), status (ImportHistoryStatuses) and search, up to 320 characters, the filters imports().list takes. An import from a provider never pauses, so a status of paused answers an empty page.
  • emails().listEvents, listAllEvents and iterateEvents take messageId, 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().createLink takes reuse: 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, update and delete, keys().rotate for any key but the caller, and workspaces().offerOwnership, withdrawOwnershipOffer, account().acceptOwnershipOffer and declineOwnershipOffer refuse an API key with 403 console_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 with keys().rotate or me().rotate, and revokes keys with keys().revoke.
  • appHost().get, set and verify report sender, where the emails Nextmail sends to the people of the workspace come from: a map with address, domain and waitingOn, or null on the free plan and until an address on a verified domain of the workspace is live. waitingOn is logo or signing (AppHostSenderWaits) until those emails come from noreply@ the domain of the live address, then null.
  • addresses().list, listAll and iterate report the role of each address (AddressRoles): owner on every address for an API key, and member or viewer for 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, with role owner, by a key of the workspace it belongs to.
  • chats().listMessages, listAllMessages and iterateMessages read the messages of a chat with the assistant, each with its text and its parts (ChatMessagePartTypes), from the first or, with order set to desc, from the newest (ChatMessageOrders). chats().sendMessage says something in a chat, or starts one, and returns the turn once the assistant has replied: its status (ChatTurnStatuses), its messages and any pendingToolCalls, which approveToolCall, with args to change, and denyToolCall answer. stopTurn stops a turn (ChatStopStatuses). sendMessage, approveToolCall and denyToolCall wait for the client timeout or five minutes, whichever is longer, unless the timeout option says otherwise, and none of the four is retried.
  • account().setName changes the name of the person behind the client. account().listPushDevices, removePushDevice and sendTestPush list the phones that get their notifications (PushPlatforms), stop one getting them and send a test notification, and account().endConnectedAppElevation makes a connected app ask for verification codes again.
  • workspaces().offerOwnership, getOwnershipOffer and withdrawOwnershipOffer offer the workspace to one of its members, read the offer and withdraw it, and account().listOwnershipOffers, acceptOwnershipOffer and declineOwnershipOffer answer one. Making an offer and accepting one ask an OAuth access token for a verification code.
  • members().getDirectorySync, connectDirectorySync, disconnectDirectorySync, listDirectoryPeople, setDirectoryDefaultRole and setDirectoryGroupRole read and manage directory sync (SCIM), through which a company directory adds people to the workspace and takes them out again (DirectoryPersonStates). connectDirectorySync returns the token once, and a role id of null goes back to the built-in Member role. Only the owner or a role holding workspace:manage reaches them, and every change asks an OAuth access token for a verification code.
  • security().getPolicy reads whether the workspace requires everyone to sign in with two-factor authentication and whether the person behind the client meets it, and security().updatePolicy requires it or lifts it. getPolicy needs no scope, and updatePolicy needs members:write and a verification code.
  • threads().setReplying and clearReplying show the team that you are writing a reply. threads().listTracking reads the tracking report of every message the workspace sent in a thread, threads().getDelivery counts what bounced, failed or was suppressed there, and threads().listFileLinks, listAllFileLinks and iterateFileLinks list the download links one message carried, the revoked ones too with includeRevoked. threads().counts takes hideLabelled.
  • senders().getAvatar downloads the picture found for a sender as a byte[], and senders().get and research report avatarUrl and avatarKind (SenderAvatarKinds).
  • dnsConnections().start and domains().startGravatarPublish return the url a 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().createMailAppProfileLink makes a one-time link that sets an address up on an iPhone, iPad or Mac.
  • emails().send and sendBatch take isForward, originalMessage, the email being forwarded or answered, quoted below the body, and encryption, for a message you sealed yourself with OpenPGP. An attachment given as a map with url, a file at an https address, is sent with its url and the filename and contentType it has.
  • emails().translate takes skipQuoted, which leaves the quoted history of a message out of the translation, and reports quotedHistoryKept. emails().getTracking, listEvents, listAllEvents and iterateEvents, and tracking().listOpens, listClicks and their listAll and iterate twins, take address, tracking().list, listAll and iterate take offsetMinutes, and tracking().getStats reports downloads.
  • drafts().create and drafts().update take attachments, up to 20 files given inline or by fileId, and drafts().get reports the fileId of each file.
  • templates().update and replaceContent take expectedUpdatedAt, and publish takes it as an option: a draft saved again since you read it is a 409 version_conflict. Every template version reports updatedAt.
  • audiences().addContact and contacts().setAudiences take createContact, which saves an address that is not a contact yet as one first and needs contacts:write. contacts().list, listAll and iterate take audienceId, audiences().listContacts and its twins take inactiveDays, and contacts().activity takes from and to.
  • audiences().growth, bookings().analytics and forms().analytics take since and until, and broadcasts().analytics and broadcasts().stats take since.
  • imports().list, listAll and iterate take source, status (ImportHistoryStatuses) and search, rules().listRuns and its twins take ruleIds, and signatures().list and its twins take from, which lists the signatures a message sent as that address can carry.
  • Scopes: addresses().list, listAll and iterate need emails:read, or emails:send in its place. The audiences().listContacts methods need contacts:read as well as audiences:read. emails().compose, rewrite, suggestSubject and translate take drafts:write in place of emails:send. domains().getMailAppSettings and listAppPasswords need threads:read, and domains().updateMailAppSettings needs threads:read and domains:write. domains().createAddress asks an OAuth access token for a verification code when it chooses where the mail goes or deletion on expiry.
  • domains().createAddress and domains().updateAddress take expiresAt and onExpiry (AddressExpiryActions), and every address map reports them with expiredAt. From its expiresAt an address takes no mail and sends none, a send from it is refused with 403 address_expired, and within a minute it is switched off, or deleted with the conversations delivered to it when onExpiry is delete. A later expiresAt, null or enabled true turns a stopped address back on. WebhookEvents.ADDRESS_EXPIRED is the event address.expired.
  • DomainAddressDestinations includes WEBHOOK and GROUP. The same two methods take webhookId for a webhook destination, tapWebhookIds to copy every message to up to 5 endpoints, and groupPosting (AddressGroupPostingPolicies) and groupKeepCopy for a group, and every address map reports them. The refusals are webhook_not_found and too_many_taps.
  • WebhookEvents.EMAIL_ROUTED is the event email.routed: a message that arrived at an address whose destination is webhook, 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 carries content and raw. routedBy says which sent it, with a kind from WebhookRoutedSources and an id, recipient keeps the plus tag and verdicts are what the receiving server found. An email.received event carries tap true when an endpoint gets the message as a tap of the address rather than through its subscription.
  • domains().listRoutes, listAllRoutes and iterateRoutes read the pattern routes of a domain in the order they are tried. domains().createRoute, getRoute, updateRoute and deleteRoute manage them: a route catches mail to addresses nobody created whose local part matches its pattern, such as support-*, and delivers it to an address, forwards it once the destination confirms, posts it to a webhook as email.routed or reads it on another domain (AddressRouteActions). active and inactiveReason (AddressRouteInactiveReasons) say whether a route takes mail now. A domain holds at most 100 routes, and the refusals are invalid_route_pattern, route_pattern_taken, route_target_not_found and route_limit_reached. domains().testRoute answers which step decides mail to an address (AddressRouteTestSteps), the route and where the mail goes, without sending anything.
  • domains().listGroupMembers, listAllGroupMembers and iterateGroupMembers read the group members of a group address, and domains().addGroupMembers and removeGroupMember change 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 are not_a_group, group_member_limit, group_member_not_found and group_nesting_too_deep.
  • domains().update takes aliasOf, which makes the domain an alias of another domain of the workspace, and every domain map reports aliasOf and aliases, each alias with its id and domain. The refusals are alias_not_allowed, alias_chain and alias_has_addresses, and creating an address on an alias is refused with alias_has_addresses.
  • domains().updateAddressLimits takes receiving.storageBytes, a storage quota for one address from 1 MiB to 1 TiB, and domains().getAddressLimits reports it in receiving. 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().getAddressLimits reports what the address keeps in usage.storage, with bytes and messages: 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, listAllDeadLetters and iterateDeadLetters read 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. The status option reads the open ones by default, or replayed, discarded or all (WebhookDeadLetterFilters), and each dead letter has a status from WebhookDeadLetterStatuses. A dead letter is kept 30 days.
  • webhooks().replayDeadLetters sends up to 100 open dead letters again in one call, the named ones or the oldest, and answers with an outcome for each (WebhookDeadLetterReplayOutcomes). A delivered one is closed as replayed. webhooks().discardDeadLetter closes one without sending it, and one already replayed is 409 dead_letter_resolved.
  • webhooks().create and webhooks().update take retryPolicy (WebhookRetryPolicies): standard tries a failed delivery up to 8 times over about 27 and a half hours, and extended up to 16 times over about 3 days. They also take includeRaw, which needs threads:read, and every endpoint map reports both.
  • threads().getRawMessage downloads the source of one message as message/rfc822 bytes, a byte[] ready to save as an .eml file. It is the message byte for byte as it arrived when the address had keepOriginal on, and otherwise a source rebuilt from the stored message, the same bytes the IMAP server gives a mail app. The X-Message-Source response header says which, one of RawMessageSources.
  • domains().createAddress and domains().updateAddress take keepOriginal, 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.received event to an endpoint with includeRaw on carries data.raw: a link that downloads the message source for an hour, its size and its source, original or rebuilt.
  • domains().getAddressLimits and domains().updateAddressLimits read 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. AddressHolds lists the holds.
  • domains().get and domains().update give each DNS record found, what public DNS answers at that name now, and problem, with a code from DomainRecordProblems and a message to show a person.
  • domains().update takes autodiscovery, which offers the SRV and TXT records that let mail, calendar and contacts apps find the servers from an address on the domain alone, listed in autodiscoveryRecords.
  • webhooks().create and webhooks().update take includeContent, which puts the message into every email.received event as data.content: the text, the HTML up to 512 KiB and each attachment with a link that downloads it for an hour. Turning it on needs threads:read.
  • A connected mailbox can be the sender of emails().send with an API key, of broadcasts, automations and sign-up forms, and a key or an app can send from the free address of the person it acts for. Only that person may send as a free address.
  • threads().counts leaves labelled mail out of team.assigned and team.unassigned, as the inbox does, unless the person has chosen to show labelled mail in the inbox.
  • billing().get reports usage.addressChecks, the deep address checks used this calendar month against what the plan includes, and billing().listPlans each plan’s monthlyAddressChecks. tools().checkAddress and tools().checkAddresses with deep first 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": ...}, with accept from AutomationAddressAccepts.
  • 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 an email.suppressed webhook that names the reason, never as a bounce.
  • Forms check the address of every sign-up: forms().subscribe refuses one whose domain takes no mail with the field error undeliverable. refuseDisposable in the settings also refuses throwaway addresses (disposable), checkMailbox runs a deep check on every sign-up and refuses a missing mailbox (mailbox_not_found), and a refused address that looks like a typo carries suggestion.
  • domains().list, members().list, keys().list, webhooks().list, rules().list and connectedMailboxes().list, with their listAll and iterate, take the option q, 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().stats reads 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. ruleIds counts some rules only.