GET /api/mail/threads?label=inbox&after=opaque-cursor&limit=30
GET /api/mail/threads/t-42
GET /api/mail/messages/m-9/body
GET /api/mail/changes?after=mailbox-checkpoint
PATCH /api/mail/threads/t-42/labels
Content-Type: application/json
{
"operationId": "label-op-83",
"add": ["important"],
"remove": ["inbox"]
}
{
"threadIds": ["t-42", "t-41"],
"nextCursor": "opaque-page-2",
"snapshotId": "mailbox-snapshot-55",
"changeCheckpoint": "change-901",
"hasNewerResults": false
}
Specify whether cursor pages share a stable snapshot. A change stream or polling endpoint returns upserts, removals, and a checkpoint. When a checkpoint expires, fetch a fresh snapshot instead of pretending every intervening change can still be replayed. The service defines conversation grouping and search ranking; the browser renders their IDs and summaries.
For bulk operations, send explicit thread IDs and return per-item outcomes. Selecting all visible rows is different from selecting every search match. If the product offers the latter, obtain a server-defined selection token tied to the query, snapshot, and expiry, then explain its scope before applying a destructive action.