# Changelog

> User-visible changes to the API, webhooks and the SDK, newest first.

URL: https://docs.workwae.com/changelog

Each release lists its changes as Breaking, Added, Changed or Fixed, and the area they affect: API, Webhooks or SDK. Releases with breaking changes end with migration steps. Every operation is in the [API reference](/reference).

## TypeScript SDK 0.1.0-alpha.6 and Python SDK 0.1.0a5

November 4, 2026

- **Added, SDK.** `@workwae/sdk` 0.1.0-alpha.6 and `workwae` 0.1.0a5 cover `rejectedRecipients` (`rejected_recipients`) on outbox entries.

## Rejected recipients on outbox entries, bounces linked by recipient

November 4, 2026

- **Added, API.** Outbox entries (`GET .../outbox/{outboxId}`, the list, and the `POST .../outbox` answer, `wait` included) carry `rejectedRecipients`: the same list as the entry's `send.failed` or `send.sent`, `[]` when the server refused nobody. Entries recorded before this release show `[]`.
- **Changed, Webhooks.** A bounce notice that names nothing of the original message (no `X-Workwae-Outbox`, no Message-ID), as some receiving servers send for mail accepted and then not delivered, is linked by its failed recipients: to the one send of the account that went out to all of them in the 72 hours before Workwae received the notice. Only a notice sent by a mailer-daemon and authenticated (DKIM or DMARC pass) by the account's mail server for the sender's domain and the recipients' domain links this way. `message.bounced` then carries that send's `outboxId` and `reference`.

## TypeScript SDK 0.1.0-alpha.5 and Python SDK 0.1.0a4

November 4, 2026

- **Added, SDK.** `@workwae/sdk` 0.1.0-alpha.5 and `workwae` 0.1.0a4 cover the changes below: `inReplyTo` and `references` (`in_reply_to`, `references`) on message summaries and message events, `rejectedRecipients` (`rejected_recipients`) on `send.failed`, the `duplicate_message_id` data (`outboxId`, `status`) and `outboxId` on a refused mail merge entry.

## Reply ids on summaries, refused recipients, Message-ID reuse

November 4, 2026

- **Added, API.** Message summaries (lists, search hits, thread messages) and `message.created`/`message.updated` data carry `inReplyTo` and `references`. Messages indexed before this release, and Microsoft 365 messages until a full read, show `null` and `[]`. See [Mail](/guides/mail#list).
- **Added, Webhooks.** `send.failed` carries `rejectedRecipients` (`address`, `status`, `diagnostic`): the recipients the SMTP server refused, `[]` when the failure names none. Gmail and Microsoft 365 report refused recipients later as `message.bounced`.
- **Added, API.** 409 `duplicate_message_id` carries `data.outboxId` and `data.status` of the entry holding the Message-ID; a mail merge's refused entry names it as `outboxId`.
- **Changed, API.** A `messageId` is held only by entries that went out or may have: queued, sending, sent, or any entry an attempt of which ended without knowing whether the provider took the message (`outcome_unknown`, a timeout, the provider unavailable, or the sending process interrupted), even if it was cancelled or failed since. A cancelled entry, or one that failed with every attempt a definite refusal, no longer blocks its reuse.
- **Changed, API.** Microsoft 365 accounts with `mailPermissions` `read_send` find the sent copy of a `sendMail` by its Message-ID: `sentMessageId` and `threadId` are set moments after `send.sent` (so `wait` sees them), and a `sendMail` whose answer was lost is recorded `sent` when its copy is in Sent Items instead of failing as `outcome_unknown`.

## TypeScript SDK 0.1.0-alpha.4 and Python SDK 0.1.0a3

November 4, 2026

- **Added, SDK.** `@workwae/sdk` 0.1.0-alpha.4 and `workwae` 0.1.0a3 cover the mail permissions below: `mailPermissions` (`mail_permissions`) on connect options, account creation and accounts, and the `mail_permission_missing` and `mail_permissions_unsupported` error codes.

## Mail permissions

November 4, 2026

- **Added, API.** Connect `options.mailPermissions` and `mailPermissions` on `POST /v1/accounts`: `full` (default), `read_send` (Google `gmail.readonly` and `gmail.send`, Microsoft `Mail.Read` and `Mail.Send`) or `read` (`gmail.readonly`, `Mail.Read`). Accounts answer `mailPermissions`, what their grant allows. See [Connect](/guides/connect#hosted).
- **Added, API.** `mail_permission_missing` (409): a change to the mailbox, or a send, that the account's grant does not allow. `mail_permissions_unsupported` (400): `read_send` or `read` with `mailAccess: "imap"`, `sharedMailboxesEnabled`, or the IMAP form.

## TypeScript SDK 0.1.0-alpha.3 and Python SDK 0.1.0a2

November 3, 2026

- **Added, SDK.** `@workwae/sdk` 0.1.0-alpha.3 and `workwae` 0.1.0a2 cover the API changes below: connect domains (`connectDomain`, `connect_domain`), `useConnectDomain` and `redirectUri` on OAuth apps, meeting apps and organization connections, `meetingApps.update`, and the send outcome changes (`wait` on outbox sends, `sentMessageId` and `threadId`, message filters by `outboxId` and `internetMessageId`, `inReplyTo` and `references`).

## Connect domains

November 3, 2026

- **Added, API.** Connect domains: `PUT /v1/settings/connect-domain` registers a hostname of the workspace's own, such as `connect.example.com`, for the browser steps of signing in through its own provider apps. `GET` reads its status and the DNS records to publish, `POST .../refresh` checks now, and `DELETE` removes it (409 `connect_domain_in_use` while something uses it). See [Your own redirect domain](/guides/oauth-apps#connect-domain).
- **Added, API.** `useConnectDomain` on OAuth apps, meeting apps and Microsoft organization connections with the workspace's own app registration moves their redirect URI to the connect domain; it needs the domain active (409 `connect_domain_inactive`). OAuth apps now answer `redirectUri`, the URI to register at the provider, and organization connections answer `microsoft.redirectUri`. `PATCH /v1/meeting-apps/{appId}` changes a meeting app's `useConnectDomain`.
- **Added, API.** Connect outcome error `connect_domain_inactive`: a sign-in through an app that uses a connect domain that is not active.
- **Changed, API.** A hostname can be a workspace's tracking domain or connect domain, not both, and belongs to one workspace.

## Send outcomes, sent copies and reply headers

November 3, 2026

- **Added, API.** Outbox entries carry `sentMessageId` and `threadId`: the sent copy's message id and thread once the account's index holds it, null before. Gmail and Microsoft 365 sends index the copy as the send is recorded; IMAP copies appear with the next sync. See [Sending](/guides/sending#sent-copy).
- **Changed, API.** Microsoft 365 sends are a draft created from the message and sent by its id, so the sent copy keeps that id. A send whose answer is lost is settled by that id: sent again only while it is still a draft, never duplicated.
- **Added, API.** `POST /v1/accounts/{accountId}/outbox` takes `wait` (seconds, 1 to 30) in the body and holds the request until the entry is sent, failed or cancelled and, once sent, its copy indexed, or until the wait runs out; it answers the entry as it stands then. Both SDKs take `wait`. See [Sending](/guides/sending#wait).
- **Added, API.** `GET /v1/accounts/{accountId}/messages` filters by `outboxId` and `internetMessageId`. With `include=body` each item is a full message (at most 25 per page); `include=body,headers` adds header fields. See [Mail](/guides/mail#list-bodies).
- **Added, API.** Full messages (`GET .../messages/{messageId}`, and list items with `include=body`) carry `inReplyTo` and `references`; `?include=headers` on the single message adds every header field. See [Mail](/guides/mail#get).

## TypeScript SDK 0.1.0-alpha.2

November 3, 2026

- **Changed, SDK.** `@workwae/sdk` 0.1.0-alpha.2 ships a minified `index.js` without a source map, and declarations without implementation comments. The API is unchanged. It depends on `@orpc/*` 1.16.1 and `zod` 4.6.7.

## Python SDK

November 3, 2026

- **Added, SDK.** `workwae` 0.1.0a1 on PyPI: sync and asyncio clients with a method for every `/v1` operation, pydantic models, cursor and change-feed helpers, `APIError` with the error's reason and request id, automatic retries of 429 and 503 answers, idempotency keys on every POST, and webhook signature verification with typed events. Python 3.10 or later. See [Python SDK](/guides/python-sdk).

## Message-ID, headers and calendar invites on sends

November 2, 2026

- **Added, API.** `POST /v1/accounts/{accountId}/outbox` takes `messageId` (your own `Message-ID`; a repeat for the account is refused with 409 `duplicate_message_id`), `headers` (allowlisted extra headers such as `List-Unsubscribe`, `References` and any `X-` header) and `calendar` (an iCalendar invite sent as a `text/calendar` alternative and `invite.ics`). See [Sending](/guides/sending#headers).

## Usage period's first counted day

October 30, 2026

- **Added, API.** Usage: `period.firstDay` is the first UTC day whose usage counts toward the billing period: the day it starts on, or the day after a free trial that ended in it, since the trial keeps that day and it is never billed. Sum `days` from `firstDay` to match what the period bills.

## Merges, pacing, suppression scope and tracking domains

October 29, 2026

- **Added, API.** Mail merges are stored objects: `POST /v1/accounts/{accountId}/mail-merges` answers `id` next to `items`, outbox entries carry `mailMergeId`, `GET .../mail-merges` and `GET .../mail-merges/{mailMergeId}` read merges with their entry counts by status, and `POST .../mail-merges/{mailMergeId}/cancel` cancels every entry still queued. See [Mail merge](/guides/mail-merge).
- **Added, Webhooks.** `send.cancelled` fires for each cancelled entry, from a single cancel, a merge cancel or the MCP `cancel_send` tool, with `outboxId`, `reference` and `mailMergeId`.
- **Added, Webhooks.** `send.sent` carries `rejectedRecipients`: recipients an SMTP server refused while it accepted the message for the others, with their status and reply.
- **Added, API.** Settings `sendsPerMinute` (1 to 600, per workspace or account) spaces the starts of an account's sends; Microsoft 365 accounts keep a 2-second minimum. When Exchange Online reports the organization's external recipient limit, the workspace's other Microsoft 365 accounts on the same domain wait too, without using attempts. See [Sending](/guides/sending).
- **Added, API.** Setting `suppressionCheck: "always"` makes sends that name no list skip addresses on the global list: they are refused with 400 `suppressed`, whose data now lists the `addresses`, and checked again at delivery.
- **Added, API.** Custom tracking domains: `PUT /v1/settings/tracking-domain` registers a hostname for pixels, click links and unsubscribe URLs, `GET` reads its status and the DNS records to publish, `POST .../refresh` checks now, and `DELETE` removes it. See [Tracking](/guides/tracking).
- **Changed, API.** Permanent bounces and SMTP refusals of sends that name no list now put the address on the global list too, when the address was one of the send's recipients.

## Sending limits, bookings and reauthorization

October 29, 2026

- **Added, Webhooks.** A provider's sending limit (Gmail's daily limits, Exchange Online's submission and recipient quotas) no longer fails a send at once as `forbidden` or `invalid_request`: `send.retrying` and `send.failed` carry code `sending_limit`, and the next attempt waits for the provider's stated time or an hour. See [Sending](/guides/sending).
- **Changed, API.** A Microsoft 365 account waits 2 seconds after one send ends before starting the next, to stay under Exchange Online's 30 messages a minute.
- **Fixed, API.** A list send that an SMTP server refuses with a code that says the address is gone (such as `5.1.1`) now puts the address on the global suppression list, as a later bounce does, and emits `suppression.created`.
- **Fixed, API.** Bookings re-read each account's calendar fresh, over the slot widened by the link's buffers. A booking is refused with 409 `slot_taken` when an overlapping booking holds any account it occupies, including the members of an `all`-mode link, and with 409 `slot_unavailable` when its day already holds `maxPerDay` bookings, also for concurrent requests. An `all`-mode link offers no slot while a member's calendar cannot be read.
- **Fixed, Webhooks.** A refresh refused with `interaction_required`, `consent_required` or `login_required` moves the account to `reauth_required` and emits `account.reauth_required` with reason `interaction_required`, instead of retrying indefinitely. Hosted connect can return `error=interaction_required`.

## One Free workspace per owner

October 29, 2026

- **Added, API.** Where billing is on, the Free plan covers one workspace per owner: their first workspace without a plan. Another workspace of the same owner that has no plan needs one (`plan.name` is `No plan` in usage, every cap zero): what adds an account, a send, an AI call or an email validation answers 402 `plan_required` (a hosted connect returns `error=plan_required`, a mail merge entry fails with that reason). Reading, settings, members, billing and export keep working, and accounts already connected keep syncing.
- **Changed, API.** The slot returns to the owner when their Free workspace subscribes, is deleted or is handed over, and a canceled subscription falls back to Free only if the owner has no other Free workspace; otherwise it needs a plan.

## Credit pack ladder

October 29, 2026

- **Breaking, API.** Usage: the plan's `limits.pricing.validationTopUp` (one pack or `null`) is replaced by `creditPacks`, a list of up to five packs `{credits, amount}`, smallest first, empty where the plan sells none. Credits rise down the list and the price per credit never does, so larger packs cost less per 1,000 credits.

### Migrating

1. Read the packs from `limits.pricing.creditPacks` instead of `limits.pricing.validationTopUp`.

## Every plan offers every module

October 29, 2026

- **Breaking, API.** Plans no longer name modules: `limits.modules` is gone from the plan in usage. Every plan offers every module, and a workspace's owner turns them on and off in the console's Billing settings.
- **Breaking, API.** Open and click tracking is free. It is no longer a billing component: `limits.pricing.components.tracking` is gone, and it is never a subscription item or an invoice line.
- **Added, API.** Where billing is on, a workspace without a plan is on the Free plan (`plan.name` is `Free`). What it includes (`limits.included`) is a hard cap, and nothing is billed: accounts by kind, sends and storage are refused past it (`plan_limit_accounts`, `plan_limit_sends`, `plan_limit_storage`), and email validation credits are granted once a month. A canceled subscription returns the workspace to Free; accounts above the caps stay, and new ones that would raise a count are refused. See [The Free plan](/guides/rate-limits#free-plan).
- **Changed, API.** Credit packs need a plan: on the Free plan, buying one answers 409 `validation_credit_pack_unavailable`.

### Migrating

1. Stop reading `limits.modules`; module routes answer 403 `plan_module_unavailable` while the workspace has the module off.
2. Stop reading `limits.pricing.components.tracking`.

## AI usage by kind

October 29, 2026

- **Breaking, API.** Usage: each day's `aiCalls` is replaced by `aiClassifications` (answers that read a reply) and `aiDrafts` (answers that wrote text). A draft costs several times a classification, so they are counted and billed apart.
- **Breaking, API.** Usage: the plan's `limits.included.aiCallsPerMonth` is replaced by `aiClassificationsPerMonth` and `aiDraftsPerMonth`, and in `limits.pricing`, `aiCallsPer1k` by `aiClassificationsPer1k` and `aiDraftsPer1k`. `limits.pricing` holds amounts only: it carries no Stripe price ids.
- **Added, API.** A workspace without a subscription (the free tier) may use only the AI its plan includes each calendar month (UTC): past it, `POST /v1/ai/draft` answers 403 `plan_limit_ai`, and replies are no longer classified until the next month.

### Migrating

1. Read `aiClassifications` and `aiDrafts` from each usage day instead of `aiCalls`; their sum is the old count.
2. Read the included amounts and rates from the new `limits.included` and `limits.pricing` fields.

## Accounts billed by what they use

October 29, 2026

- **Breaking, API.** Usage: the plan's `limits.included.accounts` is replaced by `mailAccounts`, `calendarContactsAccounts` and `meetingAccounts`, the number of accounts of each type the plan's base fee covers (null: all). `limits.maxAccounts` is unchanged and still caps all connected accounts together.
- **Breaking, API.** Usage: the plan's `limits.pricing.components` has one entry per billing component: `mail`, `calendarContacts`, `ai`, `sharedMailboxes` and `meetings`, each a plain per-account amount. Calendar and contacts are one component with one rate, and each can be on or off per account.
- **Added, API.** Usage: each day carries `mailAccounts` (live accounts syncing mail), `calendarContactsAccounts` (live accounts syncing calendar, contacts or both, counted once) and `meetingAccounts` (live accounts with a Zoom or Webex connection), each the day's highest sample. `liveAccounts` is unchanged. Billing uses each count's peak over the billing period.

### Migrating

1. Read the included number of accounts from the count that matches what you bill on, instead of `included.accounts`.
2. Read a plan's calendar and contacts rate from `pricing.components.calendarContacts`; `pricing.components.calendar` and `pricing.components.contacts` are gone.

## Email validation credits

October 28, 2026

- **Added, API.** On a billed plan with included validation credits, each address [checked again](/guides/email-validation#credits) spends one prepaid credit. A request the balance cannot cover answers 402 `validation_credits_exhausted` and checks nothing.
- **Added, API.** Usage: `current.validationCredits`, the included credits with their expiry and the purchased ones.

## Email validation limits and usage

October 28, 2026

- **Added, API.** Plan limit `emailValidationsPerDay`: addresses the email validation provider checks per UTC day; [reused results](/guides/email-validation#cache) are free. A validation that does not fit answers 403 `plan_limit_validations` and checks nothing.
- **Added, API.** Usage: `current.emailValidationsToday`, and `emailValidations` on each day.
- **Changed, API.** Tenants without an assigned plan may have 100 addresses checked per day by default.

## Email validation history and cache

October 28, 2026

- **Added, API.** [`GET /v1/email-validations`](/guides/email-validation#history) lists earlier validation results, newest first, filtered by `address` and `reachability`.
- **Added, API.** Validation results carry `cached` and `checkedAt`. An address checked within the deployment's cache period (7 days by default) gets the earlier result back unless it was `unknown` or the request sets [`refresh`](/guides/email-validation#cache).

## Mail on/off switch

October 28, 2026

- **Added, API.** `settings.mailEnabled` (default `true`), as a tenant default and a per-account override, and `options.mailEnabled` on connect sessions. While it is off, [mail routes](/guides/mail#disable) answer 409 `mail_disabled`, no mail syncs, and Google and Microsoft sign-ins ask for no mail scopes.
- **Added, API.** `mail_disabled` (409).
- **Changed, API.** An account with mail, calendar and contacts all off runs no sync and reports itself connected.

## Email validation

October 26, 2026

- **Added, API.** [`POST /v1/email-validations`](/guides/email-validation) checks up to 10 addresses without sending mail and reports each as `safe`, `risky`, `invalid` or `unknown`. With `suppressInvalid`, invalid addresses go on the global suppression list.
- **Added, API.** Suppression source `invalid`, counted in a list's `counts`.
- **Added, API.** `email_validation_disabled` (400), `email_validation_unavailable` and `email_validation_suspended` (502).

## Google Groups as accounts

October 21, 2026

- **Added, API.** `POST /v1/org-connections/{connectionId}/groups` adds a Google Group as an account, read and sent through a member's mailbox (the relay). Groups need `groupsEnabled` on the Google connection, which adds `gmail.settings.sharing`, and the shared mailboxes module. See [Google Groups](/guides/organizations#google-groups).
- **Added, API.** Connections report `groupsEnabled`, and accounts report `auth.relayEmail` with `auth.method` `google_group`.
- **Added, API.** `group_unsupported` (400), `group_alias_missing` and `group_alias_unverified` (409), and `group_relay_inaccessible` (422).

## Sign-in and account events in the audit log

October 19, 2026

- **Added, API.** The [audit log](/guides/audit-log#sign-in-events) records your members' successful sign-ins (`auth.signIn.password`, `.passkey`, `.google`, `.microsoft`, `.sso` and `.twoFactor`), passkeys added or removed, two-factor turned on or off, and password and email changes. A member's own events appear in each organization they belong to; a sign-in through an SSO connection appears only in that organization's log. Failed sign-ins are not recorded.
- **Added, API.** What a SCIM directory provisions is recorded as `scim.users.create`, `scim.users.update`, `scim.users.deactivate` and `scim.users.delete`, under the new actor type `scimCredential`.
- **Changed, API.** `AuditEntry.surface` has a new value, `auth`, and `actorType` (the filter and `actor.type`) a new value, `scimCredential`. Clients that switch over either should treat an unknown value as such.

## Scheduling links, folder and calendar management, and on-demand sync

October 17, 2026

- **Added, API.** [Scheduling links](/guides/scheduling):
  - `POST /v1/scheduling-links` stores a bookable configuration: accounts, `all` or round-robin `any` mode, duration, working hours, buffers, notice and a daily cap.
  - `GET /v1/scheduling-links/{linkId}/slots` returns open slots.
  - `POST /v1/scheduling-links/{linkId}/bookings` re-checks availability, creates the event and answers `409 slot_taken` when the slot is gone.
  - `DELETE /v1/bookings/{bookingId}` cancels a booking.
- **Added, Webhooks.** `booking.created` and `booking.cancelled` events.
- **Added, API.** `POST /v1/availability/find` finds free time across several accounts: slots where all of them are free or, with mode `any`, which of them are free per slot.
- **Added, API.** Availability answers say whether every attendee was read: `complete` and `unresolved`. With `requireAll: true`, no slots are suggested while an attendee is unresolved.
- **Added, API.** Create, rename, move and delete mailboxes (`POST`, `PATCH`, `DELETE /v1/accounts/{accountId}/mailboxes`) on Microsoft 365, Gmail (labels) and IMAP, and calendars (`/v1/accounts/{accountId}/calendars`) on Microsoft 365, Google and CalDAV. System folders answer `mailbox_protected` and the primary calendar `calendar_primary`.
- **Added, API.** `POST /v1/accounts/{accountId}/sync` starts a sync pass now for mail, calendar or contacts, limited per account per minute.
- **Changed, API.** The API reference shows each operation's required scope, and SDK samples for deletes with options pass `{ params, query }`.
- **Fixed, API.** A contact `birthday` accepts `--MM-DD` for a birthday without a year, as documented.

## MCP server and account-scoped API keys

October 17, 2026

- **Breaking, API.** MCP tools renamed or removed:
  - `list_messages` is now `search_messages` (`q` optional).
  - `update_message` and `update_thread` are `mark_messages` (read, flagged) and `move_messages` (mailbox, Gmail labels).
  - `trash_thread` is `move_messages` with `to: "trash"`.
  - `list_contacts` and `get_contact` are `search_contacts`.
  - `list_identities` is gone; `list_accounts` lists each account's send-as addresses.
- **Breaking, API.** MCP tool arguments changed:
  - `create_draft`, `update_draft` and `send_message` take `body` and `format` (`text` or `html`) instead of `text` and `html`.
  - `create_event` takes `meeting` (`{ provider: teams | meet | zoom | webex }` or `{ url }`) instead of `onlineMeeting`, `onlineMeetingService` and `onlineMeetingUrl`.
  - `update_event` takes `meeting: { url }` or `null`.
- **Breaking, API.** The MCP send policy's `mode` defaults to `confirm` instead of `allow`: a workspace that never set one has the user confirm every agent send, in a form or the review card. Clients that can do neither, and backend API keys, get `send_policy_refused` with rule `confirm` until an admin sets `mode: allow`. A mode already saved is unchanged.
- **Added, API.** An [MCP server](/guides/mcp) at `/mcp` with mail, calendar and contacts tools for agents.
  - Clients connect with an API key, whose scopes decide the tools they see, or with OAuth, where the user picks a workspace, scopes and accounts in the console.
  - Tools take an account's id or its email address as `accountId`.
  - Every tool call is recorded in the [audit log](/guides/audit-log) under the surface `mcp`.
- **Added, API.** OAuth for MCP clients:
  - Open client registration (`POST /api/auth/oauth2/register`) takes 10 registrations per 10 minutes from one client address; past that it answers 429 with `Retry-After` and the OAuth error `temporarily_unavailable`.
  - A client that registered itself or was read from a client ID metadata document, and that no user ever consented to, is deleted after 7 days.
  - Granting a workspace no longer switches the console to it.
  - Owners and admins can see and revoke every member's connected apps under Settings.
- **Added, API.** [API keys](/guides/api-keys) can be limited to specific accounts (`accountIds`). Such a key reaches only those accounts' operations, `GET /v1/accounts` and `GET /v1/changes` return only those accounts and their events, and anything tenant-wide answers the new reason `account_scope_forbidden` (403).
- **Added, API.** A [developer toolset](/guides/mcp/developer-toolset) at `/mcp/developer` for coding agents working on an integration: accounts' sync health, webhook endpoints, the delivery log, failed delivery counts, test events and replays, hosted connect links, the change feed, usage, the audit log, and a search of the API reference. It takes API keys only; other bearer tokens answer the new reason `api_key_required` (403), and MCP keys minted for an account `mcp_only_key` (403).
- **Added, API.** [MCP keys for your users](/guides/mcp/for-your-users):
  - `POST /v1/accounts/{accountId}/mcp-keys` mints a key for one account with `read`, `write` or `send` (never `admin`), returned once. `GET` lists them and `DELETE /v1/accounts/{accountId}/mcp-keys/{keyId}` revokes one; deleting the account revokes its keys.
  - Such a key works only at `/mcp`; anywhere else it answers the new reason `mcp_only_key` (403).
  - An account holds at most 25 live keys (`mcp_key_limit`, 409).
  - `POST /v1/connect-sessions` takes `mcp: { scopes, name? }` to mint a key when the session connects an account and show it once to the person who connected it, on a Workwae page with setup steps for MCP clients. `GET /v1/connect-sessions/{sessionId}` names it as `mcpKeyId`, or answers `mcpKeySkipped: "mcp_key_limit"` when the account was already at the cap and got no key.
- **Added, API.** MCP mail tools:
  - `search_messages` filters by `from`, `to`, `unread`, `flagged`, `hasAttachments`, `after`, `before` and `mailbox` (an id or a role such as `inbox`), with `detail` brief or full and 20 a page.
  - `get_message` and `get_thread` leave out quoted history unless `quoted: true`; `get_thread` returns bodies (`bodies`: latest, all or none).
  - `mark_messages` and `move_messages` take up to 50 ids or a thread.
  - Drafts and sends take `reply: { messageId, mode }` (reply, replyAll, forward), the server filling in recipients, subject, threading and the quote, and attachments by reference (`{ fromMessageId, attachmentId }`).
- **Added, API.** MCP calendar and account tools:
  - Times show in the account's calendar zone or `timeZone`.
  - `list_events` takes `q` and `detail` and defaults to the next 90 days; `create_event` defaults to the primary calendar.
  - `list_accounts` shows each account's zone, capabilities and send-as addresses.
  - `connect_account` returns a hosted connect link for another mailbox (as URL elicitation where the client supports it).
  - `get_current_time` takes `accountId`, else answers in the zone the credential's accounts' calendars share.
  - `accountId` may be left out where a message id names the account, and for calendar and contacts tools when only one account syncs them; a refusal for a missing one names the accounts.
- **Added, API.** [Safe MCP sends](/guides/mcp/safe-sending): on 2026-07-28 clients that support forms, `send_message` and `send_draft` ask the user to confirm first, and a declined or cancelled form sends nothing (a cancel points the model to `create_draft`). An identical send within 10 minutes answers `duplicate_send` unless `allowDuplicate: true`. Sends, `update_draft`, `cancel_send`, `update_event` and `update_contact` are annotated destructive.
- **Added, API.** An MCP send policy, `mcpSendPolicy` in `GET`/`PATCH /v1/settings` and under Settings, Agents (MCP):
  - `mode`: allow, confirm or drafts_only.
  - `allowedRecipientDomains`, where the account's own domain counts unless it is a public mailbox provider such as gmail.com.
  - `dailySendLimit` per credential per UTC day.
  - `externalRecipientConfirmation`, for addresses the account has never sent to.
  - Refused sends answer `send_policy_refused` with the `rule`. `POST /v1/accounts/{accountId}/mcp-keys` takes `sendPolicy`, which only tightens the workspace's. `/v1` sends are unaffected.
- **Added, API.** MCP calendar writes that email anyone outside the account (`create_event`, `update_event`, `delete_event` notifying attendees, `respond_to_event` telling the organizer or with a comment) are sends: they need the `send` scope (else `missing_scope`; pass `notify: false`), follow the send policy and its confirmation, and count toward the daily limit. On Microsoft 365 an organizer's changes always notify.
- **Added, API.** [MCP Apps](/guides/mcp/apps-and-events):
  - `preview_message` shows a message as it would go out in a review card: an HTML body rendered as mail clients do but without remote content, followed by its link targets and remote hosts. The card's Send commits exactly that message (`commit_message`, single use within 10 minutes; the `proposalId` goes only to the card).
  - Send counts as the user's confirmation only when the preview and the commit come from a 2026-07-28 client declaring the extension; policy confirmations still ask where the client supports forms.
  - `pick_meeting_time` shows free slots in a picker.
  - New reasons `proposal_not_found` and `proposal_changed`.
- **Added, API.** [MCP Events](/guides/mcp/apps-and-events) for 2026-07-28 clients (`events/list`, `events/subscribe`, `events/unsubscribe`):
  - `mail.message_received`, `mail.reply_received` and `calendar.event_changed`, delivered as signed webhooks carrying ids, the account, the sender's address and times, never subjects or bodies.
  - Subscriptions last 24 hours by default (at most 30 days), at most 20 per credential.
  - Callback verification is limited to 10 attempts per credential and 20 per host every 10 minutes, and a failed host is refused for 10 minutes.
  - Queued deliveries stop once a subscription ends or its credential loses the account.
- **Added, API.** MCP prompts `triage_inbox`, `draft_reply`, `schedule_meeting`, `weekly_agenda` and `summarize_thread`; server cards at `/mcp/server-card` and `/mcp/developer/server-card`; and an AI catalog at `/.well-known/ai-catalog.json`. A tool call needing a scope an OAuth grant lacks answers 403 `insufficient_scope` naming every scope needed, so the client can ask for them.
- **Added, API.** `GET /v1/accounts/{accountId}/messages` takes `from`, `to`, `flagged`, `hasAttachments`, `after` and `before` (`invalid_range` when `before` is not after `after`). `GET /v1/accounts/{accountId}/search/messages` takes `from`, `to`, `unread`, `flagged` and `hasAttachments`.
- **Changed, API.** MCP results with mail, calendar or contact text return it only as fenced text, without `structuredContent`. Other results carry compact `structuredContent`, their summary included as `summary`, and the same as text. Invisible Unicode (tag characters, bidi controls, zero-width characters, lone surrogates) is stripped from third-party text and from outgoing mail, its recipient names and attachment filenames included.

### Migrating

1. MCP: replace `list_messages` with `search_messages`, `update_message`/`update_thread` with `mark_messages` or `move_messages`, `trash_thread` with `move_messages` (`to: "trash"`), `list_contacts`/`get_contact` with `search_contacts` and `list_identities` with `list_accounts`.
2. MCP: pass `body` and `format` instead of `text`/`html` to `create_draft`, `update_draft` and `send_message`, and `meeting` instead of `onlineMeeting*` to `create_event` and `update_event`.

## Request ids, idempotency keys and the SDK alpha

October 17, 2026 · SDK 0.1.0-alpha.1

- **Added, API.** Every answer carries `X-Request-Id`; send your own to have it echoed. [Audit log](/guides/audit-log) entries record it.
- **Added, API.** [`Idempotency-Key`](/guides/idempotency) on authenticated `POST /v1/*` calls: a retry with the same key within 24 hours replays the first answer (`Idempotent-Replayed: true`) instead of running twice. New reasons `idempotency_key_reused`, `idempotency_key_in_progress` and `invalid_idempotency_key`.
- **Added, API.** `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` headers on [rate-limited](/guides/rate-limits) calls.
- **Added, API.** API keys can expire, and can be renamed, rescoped and rotated with a grace period in the console. A request with an expired key answers 401 with the new reason `api_key_expired`.
- **Added, Webhooks.** [Secret rotation](/guides/webhook-signatures) with a grace period: `POST /v1/webhooks/{endpointId}/rotate-secret` takes `graceSeconds` (default 24 hours, `0` = at once), during which deliveries carry a second signature by the old secret in `webhook-signature`. The answer and the endpoint show `previousSecretExpiresAt`.
- **Added, Webhooks.** `POST /v1/webhooks/{endpointId}/replay-failed` queues every event the endpoint gave up on again, once each, optionally within `since`/`until`; `GET /v1/webhooks/{endpointId}/failed-deliveries/count` says how many that is. See [webhook delivery](/guides/webhook-delivery).
- **Added, SDK.** `@workwae/sdk` 0.1.0-alpha.1, an alpha whose API may still change: errors expose `requestId`, and every POST sends an `Idempotency-Key` that is reused across the SDK's own retries (or pass `context.idempotencyKey`).

## Consistent /v1 paths, errors, lists and event types

October 16, 2026

- **Breaking, API.** Paths follow resource nouns: `/v1/imap-accounts`, `/v1/accounts/{accountId}/outbox`, `/v1/accounts/{accountId}/calendar-events`, `/v1/suppressions/{listId}/entries`, and the hosted connect pages under `/v1/hosted/*`.
- **Breaking, API.** [Error bodies](/guides/errors) are `{ defined, code, status, message, data? }` where `code` is the error's reason (there is no `data.reason`), and each reason always answers with the same HTTP status.
- **Breaking, API.** Listings answer `{ items, nextCursor }` pages or, for small bounded lists, `{ items }`. Creates answer 201, deletes 204, accepted work 202.
- **Breaking, API.** `DELETE` operations take their options in the query string, not a body.
- **Breaking, Webhooks.** Event types were renamed (`calendar_event.*`, `suppression.created`), and webhooks and `GET /v1/changes` share one [event envelope](/guides/events) with typed `data` per event type.
- **Breaking, SDK.** The SDK is generated from the new contract: methods are named after the operations (`workwae.calendarEvents.list`), dates arrive as `Date`, and errors are `ORPCError`s whose `code` is the reason (`isApiError`, `safe`, `isDefinedError`).
- **Added, API.** Every schema is a named component of the OpenAPI document (`/v1/openapi.json`), and every operation lists the reasons it can answer with.
- **Changed, API.** Deleting an account or a tenant revokes its Google grant.
- **Changed, API.** When a Zoom user removes the Workwae app, their meeting connections must be reconnected and `meeting_connection.reauth_required` is sent.

### Migrating

1. Update request paths to the new resource names; the [API reference](/reference) lists every operation.
2. Read an error's reason from `code` instead of `data.reason`.
3. Read list results from `items` and continue with `nextCursor` (null on the last page).
4. Move `DELETE` options (for example `purge`, `notify`) into the query string.
5. Rename the event types your webhook endpoints and change-feed readers filter on.
6. Upgrade `@workwae/sdk` and follow the type errors: method names, `Date` fields and error codes changed with the API.

## Suppression reviews, AI drafting and health probes

October 15, 2026

- **Added, API.** Manage [suppression lists](/guides/suppressions) (`/v1/suppressions`) and review opt-outs detected in replies (`/v1/suppression-reviews`).
- **Added, API.** `POST /v1/ai/draft` drafts email text. [Reply classification](/guides/ai) sorts auto-replies into categories; it is off until a tenant turns on `aiReplyClassification` and is capped per day.
- **Added, API.** `GET /readyz` reports whether the API can serve requests; `/healthz` turns 503 while the API is shutting down.
- **Added, API.** A connect session without a `redirectUri` ends on a Workwae outcome page.
- **Added, API.** Plans have modules (calendar, contacts, tracking, AI, meetings, shared mailboxes): a module outside the tenant's plan answers 403 `plan_module_unavailable`.
- **Added, Webhooks.** [Webhook tester](/guides/webhook-delivery) inboxes in the console capture deliveries for inspection.
- **Changed, Webhooks.** New webhook endpoints must use https.
- **Changed, Webhooks.** An endpoint answering 429 or 503 is backed off politely, honoring `Retry-After`, without counting against its failure streak.
- **Fixed, API.** A send whose SMTP reply was lost after the message was handed over fails with `outcome_unknown` instead of being sent again.
- **Fixed, SDK.** Webhook verification computes the signature once and checks at most 8 candidate signatures.

## List unsubscribe, Markdown templates and search

October 14, 2026

- **Added, API.** Sends and mail merges take a `listId`: one-click unsubscribe headers (RFC 8058), `{{rcpt.unsubscribeUrl}}`, and recipients on the list or the global list skipped.
- **Added, API.** [Templates](/guides/templates) take `format: "markdown"`.
- **Added, API.** Suppress up to 1,000 addresses in one call with `POST /v1/suppressions/{listId}/entries`.
- **Added, API.** `GET /v1/templates?query=` filters by a name substring; `GET /v1/accounts?q=` searches accounts by email address or external reference.

## Templates and mail merge

October 13, 2026

- **Added, API.** Stored Handlebars [templates](/guides/templates) (`/v1/templates`), previews (`POST /v1/template-renders`), and `template` plus `render.params` on sends and drafts.
- **Added, API.** [Mail merges](/guides/mail-merge): `POST /v1/accounts/{accountId}/mail-merges` sends one message per recipient, each with its own params, events and tracking.

## Open and click tracking

October 12, 2026

- **Added, API.** Sends [track opens and clicks](/guides/tracking) per account or per send (`tracking`), tell people from proxies, prefetchers and scanners, and report `message.opened` and `message.clicked` events.
- **Added, API.** An optional honeypot link catches scanners; `GET /v1/accounts/{accountId}/outbox/{outboxId}/tracking` lists every hit with what its request revealed.
- **Added, API.** `GET /v1/accounts/{accountId}/outbox/{outboxId}` reads one send.

## Message priority

October 10, 2026

- **Added, API.** Sends and drafts take `priority` (`high`, `normal`, `low`); messages carry `importance`.

## Contacts, meetings, threads and the SDK

October 9, 2026

- **Added, API.** [IMAP and SMTP accounts](/guides/imap), with calendars and contacts over CalDAV and CardDAV.
- **Added, API.** [Contacts](/guides/contacts) sync and free/busy availability (`POST /v1/accounts/{accountId}/availability/find`).
- **Added, API.** Zoom and Webex [meetings](/guides/meetings) for calendar events, and `onlineMeetingUrl` for links from other services.
- **Added, API.** Threads, send-as identities, signatures and `message.bounced` events.
- **Added, API.** An undo send window (`undoSendSeconds`), scheduled sends and rescheduling.
- **Added, API.** [Organization-wide connections and shared mailboxes](/guides/organizations).
- **Added, API.** Message body storage and full-text search; [data exports](/guides/exports) and account purge.
- **Added, Webhooks.** Endpoint filters by mailbox and message criteria; delivery log, replays and test events.
- **Added, SDK.** The [TypeScript SDK](/guides/sdk), `@workwae/sdk`, typed from the API contract, with cursor and webhook helpers.

## First release: the /v1 API

October 8, 2026

- **Added, API.** The /v1 API: hosted and headless OAuth [connect](/guides/connect) for Google and Microsoft 365, mail and calendar endpoints with push intake, webhooks and the change feed.
