Skip to the documentation
Ruby

Changelog

Every release of the gem, newest first.

0.1.0

  • To-dos: a to-do list is a calendar of kind todos (Nextmail::CALENDAR_KINDS[:TODOS]), and its items are RFC 5545 to-dos that calendar apps such as Reminders, Thunderbird and tasks.org sync over CalDAV. calendar.list_todos, list_all_todos and iterate_todos read them through GET /calendar/todos, filtered by calendar_ids:, state: (open, done or all, from Nextmail::TODO_STATES), due_before: and due_after:. get_todo(id), create_todo, update_todo(id) and delete_todo(id) work on one, and delete_todo says how many to-dos it removed. A to-do is a Hash with a title, notes, a status from Nextmail::TODO_STATUSES, 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. start:, due:, due_before: and due_after: take a Time, DateTime, Date or String. Checking off a repeating to-do moves it to its next date. They need calendar:read and calendar:write.
  • calendar.list_calendars takes kind: and lists your to-do lists with kind: "todos", and calendar.create_calendar takes kind: to make one. Members, colours, order and deleting work on to-do lists as they do on calendars.
  • calendar.delete_calendar takes notify_guests:: left out or true, the guests of every upcoming meeting you organised in the calendar are sent a cancellation, as cancel_event does, and false deletes it without telling anyone. The Hash it returns carries cancelledMeetings. Sending the cancellations needs emails:send as well.
  • calendar.list_calendar_logins, create_calendar_login, revoke_calendar_login and create_calendar_login_profile_link 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. create_calendar_login(name:) returns the sign-in with its password shown once, its servers (username, caldav and carddav, each nil when the person’s role does not reach it) and an Apple configuration profile with CalDAV and CardDAV only in appleProfile, and create_calendar_login_profile_link(name:, displayName:, description:) returns a one-time link that makes one on an Apple device. Your own take account:read and account:write, and member: reaches a member’s with members:write. Neither create is retried automatically.
  • Nextmail::SECURITY_EVENT_KINDS gains CALENDAR_LOGIN_CREATED ("calendar-login-created") and CALENDAR_LOGIN_REVOKED ("calendar-login-revoked"), and the detail of a security log entry gains login, the username of the sign-in the entry is about.
  • threads.list_automations reads which automations ran on a thread and what they did, through GET /threads/{id}/automations: an Array of Hashes, 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 nil), the messages of the thread it started from or sent, each with a role from Nextmail::AUTOMATION_THREAD_ROLES, and every step it ran in steps, with the step as the version defines it. It needs threads:read and automations:read.
  • live_events.stream follows the mailbox as it changes: it reads GET /live-events as server-sent events and yields each message.received, message.sent, thread.changed, thread.deleted and message.status_changed event (Nextmail::LIVE_EVENT_TYPES) to the block as a Hash with id, type, occurredAt and data, or returns an Enumerator without one. It takes types:, address: and last_event_id:, opens the stream again and resumes through Last-Event-ID when the server ends it or the connection drops, retries network failures and 408, 429 and 5xx answers with backoff from 1 to 30 seconds (or longer when Retry-After asks), drops and reopens a connection that stays silent for 60 seconds, and raises the Nextmail::ApiError subclass on 400, 401, 403, 404 and 422. When it cannot resume it yields a reset, a Hash with type set to reset and a reason from Nextmail::LIVE_RESET_REASONS. Leave the block with break to close it.
  • message.status_changed carries the email’s status (Nextmail::LIVE_SEND_STATUSES), its emailId and the recipients it is about.
  • threads.wait_for_email holds a request open until a message that matches arrives, through GET /threads/wait: it takes address:, from:, subject:, since: and timeout: and returns the wait, with the first message that matched or nil when the wait ran out. Its timeout is the wait plus 15 seconds, whatever timeout: the client has.
  • client.raw.stream(path) opens a streaming GET with the same credential and plain http checks as request and yields a Nextmail::HttpStream, whose each_chunk reads the body as it arrives, then returns what the block returns. The client’s timeout: lasts only until the headers arrive, idle_timeout: bounds each wait for more of the body, and an error answer raises the same Nextmail::ApiError as request. An adapter: streams when it has stream(request, idle_timeout:), and one with only call hands over the body whole.
  • ADDRESS_FORWARD_STATUSES gains BOUNCED ("bounced"): 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 forward_bounced (ADDRESS_ROUTE_INACTIVE_REASONS[: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 nil on an entry written before ARC was checked.
  • calendar.list_calendars, get_calendar, create_calendar, update_calendar and delete_calendar 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.set_calendar_member(id, member_id, access:) and remove_calendar_member(id, member_id) give a member read or write access to a calendar you keep (Nextmail::COLLECTION_ACCESS_LEVELS), and access on a calendar says what you may do with it (Nextmail::COLLECTION_RIGHTS). A calendar’s kind is one of Nextmail::CALENDAR_KINDS.
  • Calendar events and occurrences carry calendarId. create_event takes calendarId: to put the event in a calendar, update_event takes it to move one, list_events, list_all_events and iterate_events take calendar_ids: to keep only some calendars, create_feed takes calendarId: to publish one calendar (and a calendar link says which), and import_ics takes calendar_id: for the calendar the events go into.
  • contacts.list_address_books lists your address book and the ones other members gave you access to. contacts.set_address_book_member(id, member_id, access:) and remove_address_book_member(id, member_id) give a member read or write access to yours. list_cards, list_all_cards and iterate_cards take address_book: to read one you are a member of, and create_card takes addressBook: to add to one you may write.
  • set_calendar_member and set_address_book_member are retried after a network failure, since setting the same access again changes nothing, and the two remove_ methods are not.
  • traffic.list, list_all 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 domain_id:, direction:, outcomes:, address:, recipient:, since: and until:. Outbound entries need emails:read and inbound ones threads:read.
  • emails.send_raw sends an RFC 5322 message you built yourself, as written: raw is its bytes as a binary String or an IO, encoded for you, or a base64 String, 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 idempotency_key:, 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.
  • MAILBOX_PROVIDERS and MAIL_SERVICES gain 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.
  • share_links.list, list_all 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: (Nextmail::SHARE_KINDS), limit: and cursor:. share_links.get(kind, item_id) reads the link of one item, share_links.set(kind, item_id) makes it public or changes copyable:, and share_links.delete(kind, item_id) makes it private again. set is retried after a network failure, since an item keeps one link however often it is shared, and delete is not. A private item answers 404 share_link_not_found.
  • shared.get(token) reads what the public page of a link shows, from any workspace, and shared.copy(token) copies the item into this workspace as a draft. copy is never retried, because a second call makes a second copy. 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, list_all and iterate take chat_id: 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 Ruby gem. It has a method for every one of the 746 methods of the TypeScript SDK, in 53 namespaces, each under its TypeScript name in snake_case, and a parity check in the gem’s own build proves that every one sends byte for byte the request its TypeScript twin sends.

  • Nextmail::Client has a reader for every namespace, from emails, threads and templates to automations, bookings and connected_mailboxes. A request body goes in as keyword arguments or as one Hash whose keys keep the API’s camelCase names, and a response comes back as a Hash with Symbol keys.
  • A client takes api_key: or access_token:, and access_token: also takes anything that responds to call and returns a token, called before every request, so a token renews without a new client. base_url:, timeout:, max_retries:, headers:, user_agent: and adapter: set the rest, and every method takes api_key:, or inbox_token: on temp_mail, to act with another credential for one call.
  • 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.create_client builds a client from NEXTMAIL_API_KEY, NEXTMAIL_ACCESS_TOKEN and NEXTMAIL_BASE_URL, and Nextmail.init, Nextmail.client and Nextmail.reset_client manage one shared client that Nextmail.emails and every other namespace reach through. Nextmail.create_temp_mail opens disposable inboxes with no credential.
  • Every paginated resource has list, which returns one Nextmail::Page with items, has_more? and next_cursor, list_all, which returns every item as an Array, and iterate, which yields each item to a block or returns an Enumerator that fetches the next page only when it gets there.
  • An API refusal raises Nextmail::ApiError or its subclass for the error type, such as NotFoundError, ValidationError or RateLimitError, with status, type, code, param, doc_url, request_id, retry_after_seconds and fields, and predicates such as validation?, step_up_required? and retryable?. No response at all raises Nextmail::NetworkError, with timeout? when the deadline passed, and a mistake in the call itself raises ArgumentError 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. A send carries an idempotency key that its retries reuse, so a retry never sends a second message. timeout: bounds a whole attempt, and uploads wait at least ten minutes.
  • Nextmail.verify_webhook_signature checks a delivery in constant time, refuses one more than five minutes old and returns the parsed event. It reads the signature from a Hash in any case, a Rack env or Rails’ request.headers.
  • The helpers of the TypeScript SDK are here too, such as Nextmail.to_base64 and Nextmail.resolve_language, and every value set it exports is a frozen Hash on Nextmail, such as Nextmail::WEBHOOK_EVENTS and Nextmail::API_SCOPES.
  • The gem has no runtime dependencies. Requests go through Net::HTTP with a pool of kept-alive connections that one client shares across threads and rebuilds after a fork, and HTTPS_PROXY and NO_PROXY are honoured. client.raw.request reaches any endpoint with the client’s credential and retries, and a credential is never sent over plain http: to anything but this machine.
  • When a newer version is on RubyGems, the client says so once, on a terminal only. disable_update_notice: true or NEXTMAIL_DISABLE_UPDATE_NOTICE=1 turns that off.
  • It needs Ruby 3.2 or newer.
  • API keys begin nm_live_ or nm_test_, and temporary inbox tokens nm_inbox_. The client refuses a key of any other shape.
  • account.set_photo, contacts.set_photo, domains.set_address_photo, bookings.upload_background, branding.upload_image and templates.upload_image take images up to 100 MB, and crop:, a Hash of :x, :y, :width and :height fractions of the image, to keep only that part of it. They wait as long as files.upload does: 600 seconds, or the client timeout when that is longer.
  • domains.list_routes, list_all_routes and iterate_routes read the pattern routes of a domain in the order they are tried, and domains.create_route, get_route, update_route and delete_route 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 (Nextmail::ADDRESS_ROUTE_ACTIONS). active and inactiveReason (Nextmail::ADDRESS_ROUTE_INACTIVE_REASONS) say whether a route takes mail now. domains.test_route answers which step decides mail to an address (Nextmail::ADDRESS_ROUTE_TEST_STEPS), the route and where the mail goes, without sending anything.
  • domains.create_address and domains.update_address take expiresAt: and onExpiry: (Nextmail::ADDRESS_EXPIRY_ACTIONS), and every address 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. expiresAt: takes a String or a Time. Nextmail::WEBHOOK_EVENTS[:ADDRESS_EXPIRED] is the event address.expired.
  • Nextmail::DOMAIN_ADDRESS_DESTINATIONS 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: (Nextmail::ADDRESS_GROUP_POSTING_POLICIES) and groupKeepCopy: for a group, and every address reports them.
  • Nextmail::WEBHOOK_EVENTS[: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, kept for 30 days instead of being filed. It always carries content and raw, and routedBy says which sent it (Nextmail::WEBHOOK_ROUTED_SOURCES). 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.list_group_members, list_all_group_members and iterate_group_members read the group members of a group address, and domains.add_group_members and remove_group_member change them. A group member is an address of the workspace or an address at another provider, which confirms by email first (Nextmail::GROUP_MEMBER_KINDS). A group holds at most 1,000 group members and groups nest at most 3 deep.
  • domains.update takes aliasOf:, which makes the domain an alias of another domain of the workspace, and every domain reports aliasOf and aliases.
  • domains.update_address_limits takes receiving: {storageBytes:}, a storage quota for one address from 1 MiB to 1 TiB, past which a message gets a permanent bounce (5.2.2), and domains.get_address_limits reports what the address keeps in usage[:storage], with bytes and messages.
  • webhooks.list_dead_letters, list_all_dead_letters and iterate_dead_letters read the events an endpoint gave up on, with how many times each was tried, the last answer and that attempt. status: reads the open ones by default, or replayed, discarded or all (Nextmail::WEBHOOK_DEAD_LETTER_FILTERS). A dead letter is kept 30 days.
  • webhooks.replay_dead_letters sends up to 100 open dead letters again in one call, the named ones or the oldest, and answers with an outcome for each (Nextmail::WEBHOOK_DEAD_LETTER_REPLAY_OUTCOMES). webhooks.discard_dead_letter closes one without sending it.
  • webhooks.create and webhooks.update take retryPolicy: (Nextmail::WEBHOOK_RETRY_POLICIES): 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 gives every email.received event data[:raw]: a link that downloads the message source for an hour, its size and its source, original or rebuilt.
  • threads.get_raw_message downloads the source of one message as a binary String of message/rfc822 bytes, ready to save as an .eml file: the message byte for byte as it arrived when the address had keepOriginal on, and otherwise a source rebuilt from the stored message (Nextmail::RAW_MESSAGE_SOURCES).
  • domains.create_address and domains.update_address take keepOriginal:, and every address 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.
  • domains.get_address_limits and domains.update_address_limits 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. Nextmail::ADDRESS_HOLDS lists the holds.
  • domains.get and domains.update give each DNS record found, what public DNS answers at that name now, and problem, a Hash with a code from Nextmail::DOMAIN_RECORD_PROBLEMS and a message to show a person.
  • domains.update takes autodiscovery:. true 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.
  • domains.list, members.list, keys.list, webhooks.list, rules.list and connected_mailboxes.list, with their list_all and iterate, take 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. rule_ids: counts some rules only.
  • billing.get reports usage.addressChecks, the deep address checks used this calendar month against what the plan includes, and billing.list_plans each plan’s monthlyAddressChecks. tools.check_address and tools.check_addresses with deep: true 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 Nextmail::AUTOMATION_ADDRESS_ACCEPTS.
  • 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. settings: { refuseDisposable: true } also refuses throwaway addresses (disposable), checkMailbox: true 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.
  • chats.list_messages, list_all_messages and iterate_messages read the messages of a chat, from the first unless order: is desc (Nextmail::CHAT_MESSAGE_ORDERS). Each message has its text and its parts (Nextmail::CHAT_MESSAGE_PART_TYPES): the words, the tools the assistant called with their arguments, results and status (Nextmail::CHAT_TOOL_CALL_STATUSES), and the files. A tool result the caller may not read comes back redacted.
  • chats.send_message says something in a chat, or starts one under a new id, and returns the turn once the assistant has answered. status (Nextmail::CHAT_TURN_STATUSES) is awaiting_approval when a call that changes something waits in pendingToolCalls, which chats.approve_tool_call, with optional args, or chats.deny_tool_call answers. regenerate answers the last message again, and attachments takes files by fileId or inline, with raw bytes encoded for you. chats.stop_turn stops the assistant (Nextmail::CHAT_STOP_STATUSES), and a stopped turn says why in stopReason (Nextmail::CHAT_STOP_REASONS). A turn runs for at most 240 seconds, so send_message, approve_tool_call and deny_tool_call wait 300 seconds, or the client timeout when that is longer, and take timeout: to wait another number of seconds, 0 for as long as it takes. None of them is retried.
  • members.get_directory_sync reads directory sync (SCIM), and members.connect_directory_sync turns it on and returns its token once. members.disconnect_directory_sync turns it off, members.list_directory_people reads who the directory synced, with start_index: and count: (Nextmail::DIRECTORY_PERSON_STATES), and members.set_directory_default_role and set_directory_group_role choose the roles it gives, nil for none. Only the owner or a role holding workspace:manage reaches them, and every change asks an OAuth access token for a verification code.
  • security.get_policy reads whether the workspace requires two-factor sign-in and whether the person behind the client meets it, with no scope. security.update_policy sets requireTwoFactor, with members:write and a verification code.
  • workspaces.get_ownership_offer, offer_ownership and withdraw_ownership_offer let the owner offer the workspace to one of its members, and account.list_ownership_offers, accept_ownership_offer and decline_ownership_offer answer the offers made to the person. Offering and accepting ask for a verification code.
  • account.set_name changes the name of the person. account.list_push_devices, remove_push_device and send_test_push read the phones that get the person’s notifications (Nextmail::PUSH_PLATFORMS), stop one, and send a test. account.end_connected_app_elevation makes a connected app ask for verification codes again.
  • dns_connections.start returns the link that connects a Cloudflare account to the workspace in a browser. domains.create_mail_app_profile_link makes a one-time link that sets an address up on an Apple device, and domains.start_gravatar_publish returns the link that publishes the photo of an address to Gravatar.
  • threads.set_replying and clear_replying show the team who is writing a reply. threads.list_tracking reads the tracking report of every tracked message sent in a thread, and threads.get_delivery counts what bounced, was refused or was held back, both narrowed by address:. threads.list_file_links, list_all_file_links and iterate_file_links read the download links one message carried, with include_revoked:. threads.counts takes hide_labelled:.
  • senders.get_avatar returns the picture of a sender as a binary String, and senders.get reports avatarUrl and avatarKind (Nextmail::SENDER_AVATAR_KINDS).
  • emails.send and send_batch take isForward, originalMessage, the quoted history of a forward or a reply, and encryption, a Hash with format, sealedAt and sealedTo for a message you sealed yourself with OpenPGP. emails.translate takes skipQuoted and reports quotedHistoryKept.
  • emails.list_events, list_all_events, iterate_events and get_tracking, and the tracking opens and clicks methods, take address:. The tracking.list methods take offset_minutes:, and tracking.get_stats reports downloads, the files that went out as download links and how often they were fetched.
  • templates.update and replace_content take expectedUpdatedAt, and templates.publish takes expected_updated_at:, the updatedAt of the version you read, and they refuse a change saved in between with version_conflict. Template versions report updatedAt.
  • drafts.create and update take attachments, up to 20 files inline or by fileId, with raw bytes encoded for you, and drafts.get reports the fileId of each file.
  • Filters: rule_ids: on the rules.list_runs methods, audience_id: on the contacts.list methods, from: and to: on contacts.activity, inactive_days: on the audiences.list_contacts methods, since: and until: on audiences.growth, forms.analytics and bookings.analytics, since: on broadcasts.analytics and broadcasts.stats, source: (Nextmail::MAILBOX_IMPORT_SOURCES), status: (Nextmail::IMPORT_HISTORY_STATUSES) and search: on the imports.list methods, and from: on the signatures.list methods.
  • contacts.set_audiences and audiences.add_contact take createContact, which saves an address that is not a contact yet as one first and then needs contacts:write. Through an app a member connected, an address another member saved is a 409 contact_exists there and on contacts.save.
  • Scopes: addresses.list, list_all and iterate need emails:read, or emails:send in its place. The audiences.list_contacts methods need contacts:read as well as audiences:read. emails.compose, rewrite, suggest_subject and translate take drafts:write in place of emails:send. domains.get_mail_app_settings and list_app_passwords need threads:read, and domains.update_mail_app_settings needs threads:read and domains:write. domains.create_address asks an OAuth access token for a verification code when it chooses where the mail goes or deletion on expiry.
  • An attachment given as a Hash with url, and an optional filename and contentType, is sent as a file to fetch, as the docs of emails.send describe.
  • app_host.get, set and verify report sender: where the emails sent to the people of the workspace come from, a Hash with address, domain and waitingOn. waitingOn is logo or signing (Nextmail::APP_HOST_SENDER_WAITS) until they come from noreply@ the domain of the live web app address, then nil. sender is nil on the free plan and until an address on a verified domain of the workspace is live.
  • addresses.list, list_all and iterate report the role of each address (Nextmail::ADDRESS_ROLES): 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.
  • files.create_link takes reuse:. With true it 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.offer_ownership, withdraw_ownership_offer, account.accept_ownership_offer and decline_ownership_offer refuse an API key with 403 console_only, which raises Nextmail::PermissionError. 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.
  • provider_imports.list, list_all and iterate take source: (Nextmail::PROVIDER_IMPORT_PROVIDERS), status: (Nextmail::IMPORT_HISTORY_STATUSES) and search:, up to 320 characters, the same filters imports.list takes, sent on every page. An import from a provider never pauses, so status: "paused" answers an empty page.
  • emails.list_events, list_all_events and iterate_events take message_id:, 1 to 998 characters, sent as messageId: 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.
  • emails.list_events_by_message_id, list_all_events_by_message_id and iterate_events_by_message_id 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 address:, limit: and cursor: as list_events does, and a Message-ID that no message the key reaches went out with is a 404.