Inboxes
Get an inbox
One inbox with its live connection status.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization |
string | Required | Bearer followed by your API key. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | Required | Inbox id from List inboxes, like inbox_lx2k9a1b. |
Response
200 OK. Returns inbox object.
| Name | Type | Description |
|---|---|---|
id |
string | Inbox id. |
label |
string | Display name, like "Work". |
provider |
string | google, microsoft, icloud, or imap. |
email |
string | The mailbox address. |
folders |
string[] | Folders that sync. Defaults to Inbox, Sent, and Drafts. |
status |
string | Last recorded state: pending_credentials, connected, demo, or error. Can lag. Trust connectionStatus and needsReconnect instead. |
connectionStatus |
string | credentials_present when a credential is stored, or blocked_on_secret when the person still has to connect. |
needsReconnect |
boolean | true when the person has to connect or reconnect the inbox before it can sync. |
sayToHuman |
string | Only when needsReconnect is true. A sentence to show the person. |
reconnectUrl |
string | Only when needsReconnect is true. Give this link to the person. |
lastSyncedAt |
string | null | ISO time of the last finished sync. |
lastError |
string | null | The last sync error, if any. |
createdAt |
string | ISO time the inbox was added. |
Errors
| Status | Error | Meaning |
|---|---|---|
| 404 | inbox_not_found |
The inbox id is wrong or the inbox was removed. |
| 409 | inbox_paused |
The person paused this inbox. They resume it on the Inboxes page. |
Any route can also return 401 for a bad key, 402 when the trial ended or payment failed, and 429 when you send too many requests. See Errors.