Mailboxes
List threads
GET
cURL
Lists conversations, newest first. Page through them by passing the
next_cursor from one response as cursor on the next request; next_cursor is null on the last page. A conversation that arrives while you page lands on the first page and never shifts the pages after it.
To search, pass q with a mailbox: plain words, or the same from:, subject:, has:attachment and after: that webmail’s search box takes, up to 10 words and filters. Without folder or in:, a search covers everything but spam and trash.
Needs an API key with full access. A mailbox outside the key’s team, domain or list of mailboxes returns
404.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Required string length:
1 - 64Pattern:
^[A-Za-z0-9_-]+$Available options:
inbox, sent, drafts, spam, archive, trash Search, in the language webmail uses: plain words, plus from:, to:, subject:, filename:, in:, has:attachment, is:unread, is:read, is:starred, after: and before: (YYYY-MM-DD). At most 10 words and from:, to:, subject: or filename: filters. Needs mailbox. Without folder or in:, it covers all but spam and trash.
Required string length:
1 - 200Required string length:
1 - 2001 to 50, default 20; larger values are clamped
Pattern:
^\d{1,6}$