Skip to main content
Every account has a status: Three more fields help:

Get notified

Subscribe a webhook endpoint to the status events. Each one is sent when the status changes:
account.status.disconnected
After the user reconnects, you receive account.reconnect with the account, and account.status.running because it’s running again. See Events.

Accounts API

To change an account’s settings (for example a new app password), see Reconnect or change settings.

Find accounts

string
running, errored or disconnected.
string
imap.
Part of the name or address, or an exact acc_… id.
integer
default:"50"
1 to 250.
integer
default:"0"
How many accounts to skip.
Response

Save your own data

metadata holds your own key-value data, for example the user’s id in your app. Values must be strings. The object you send replaces the current metadata.
The response is the updated account.

Sync now

Response
The sync runs in the background. You rarely need it: IMAP Inboxes (Gmail included) are watched all the time, and other folders are checked every 30 seconds.

Remove an account

Response
The engine stops syncing the mailbox, and its emails, folders and attachments disappear from the API. An account.remove event is sent. Nothing is deleted in the user’s real mailbox.

The account object

Passwords and tokens are never returned.