Skip to main content
GET
Count mailboxes

Authorizations

X-API-Key
string
header
required

Query Parameters

search
string | null

Narrow to addresses matching this text.

Maximum string length: 320
connection_status
enum<string> | null

The stored grant state. connected means anything that is not broken, which includes a grant nobody has checked yet. Whether the mailbox's grant currently authenticates.

Available options:
connected,
disconnected
health
enum<string> | null

The three-way split the Status column draws: verified passed its latest check, connected has not passed one yet or its latest check got a definite error back that was not a refusal, disconnected was refused. The three states the Status column draws, as one filterable value.

DERIVED, never stored: it folds connection_status together with whether last_verified_at holds a stamp. A mailbox nobody has checked since it connected and one checked this morning are different answers to "is this grant still good?", and the ops screen has to be able to ask for either.

Deliberately NOT members of :class:MailboxConnectionStatus. That enum is the stored column type and the value on every mailbox response, and eleven places in the domain compare against CONNECTED by identity. A third member there would put a value on the wire that no row can hold and would silently weaken every one of those checks. Two callers also already send connection_status=connected meaning "not broken" (the send-a-test picker and the notification settings page), and they must keep that meaning.

Available options:
verified,
connected,
disconnected
provider
enum<string> | null

Narrow to one mail provider. Which email provider a mailbox connects through.

Only Google Workspace ships so far; every provider is implemented behind providers.EmailProviderBase so Office 365 and IMAP/SMTP can be added later without touching callers.

GOOGLE_WORKSPACE holds a per-mailbox OAuth grant (consent screen, refresh token). GOOGLE_WORKSPACE_DWD holds no grant at all: tokens are minted on demand via domain-wide delegation as the platform service account, so its rows carry an empty refresh_token forever. It is the path imported fleets (e.g. InboxKit) connect through.

Available options:
google_workspace,
google_workspace_dwd
sender_profile_id
string<uuid> | null

Narrow to the mailboxes carrying one sender.

sent_on
enum<string> | null

Narrow to mailboxes that sent on their sender's today or yesterday. Which of a mailbox's days the Mailboxes grid narrows to: its sender's today or yesterday.

Available options:
today,
yesterday

Response

Successful Response

count
integer
required