Labels
Folders and labels: CRUD, per-label statistics, and the IMAP-shaped UID/vanished feeds a mail client syncs from.
- POSTCreate a new custom labelCreates a new user folder or label with a fresh UID validity epoch.
- GETList mailbox labels and folder statisticsReturns all system and custom labels with message counts, unread counts, UID validity, and next UID sequence numbers.
- PATCHRename a label or update folder settingsRenames a custom label and/or updates its display sort order, subscription state, and color.
- DELETEDelete a custom labelDeletes a custom label.
- PATCHRename a label or update folder settings, by idKeyed on the label's numeric id — as GET /labels and POST /labels report it — rather than on its name.
- DELETEDelete a custom label, by idKeyed on the label's numeric id — as GET /labels and POST /labels report it — rather than on its name.
- GETList messages in a label by UIDReturns messages in a label ordered by UID, optionally filtered by a minimum and maximum UID range.
- PATCHUpdate flags, labels and keywords for every message in a folderApplies one patch to a UID RANGE of this label — the write twin of GET /labels/{label}/messages, and the way to act on a whole folder without naming its…
- PATCHUpdate flags, labels and keywords for every message in a folder, by label idKeyed on the label's numeric id — as GET /labels and POST /labels report it — rather than on its name.
- GETList message sync index for a labelReturns compact message records (UID, MODSEQ, flags, size, dates) ordered by UID for efficient folder synchronization (up to 10,000 per page).
- GETList vanished (expunged) message UIDsReturns UIDs of messages expunged from the label since a specified change sequence (MODSEQ) number.
- POSTExpunge deleted messages from a labelDetaches messages marked with the deleted flag from this label.