Mail inbox: list, search, assign and label conversations, and keep mail as long as you need
List conversations across all your mailboxes, search them, mark them read, archive them, move them to spam or trash, assign them to a teammate and label them with the API. Mailboxes can now keep mail for up to ten years, or until you delete it.
GET /threads lists the conversations of every mailbox you may see, newest first, with filters for folder, unread, assignee and label. The q search takes words and operators such as from:@acme.com, is:unread, label:"needs reply", has:attachment and after:2026-11-01. Words match message text only for callers who may read message content (mail.message.body.read); everyone else searches subjects and addresses.
PATCH /threads/{id} and POST /threads/bulk (up to 100 at once) mark conversations read or unread, archive them (new mail brings them back), move them to spam or trash and restore them, and assign them to a workspace member. Labels are shared across the workspace. Two new permissions control this: mail.thread.triage and mail.label.manage. The Email and Support assistant presets include triage.
A mailbox's retention_days now goes up to 3650, or null to keep mail until you delete it. Trashed conversations are erased after 30 days. See the Inbox API guide.