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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

mailbox
string
Required string length: 1 - 64
Pattern: ^[A-Za-z0-9_-]+$
folder
enum<string>
Available options:
inbox,
sent,
drafts,
spam,
archive,
trash
q
string

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 - 200
cursor
string
Required string length: 1 - 200
limit
string

1 to 50, default 20; larger values are clamped

Pattern: ^\d{1,6}$

Response

200 - application/json

Threads, newest first. A thread matches a folder when it holds at least one non-draft message there.

data
object[]
required
next_cursor
string | null
required