Account
An account is one connected mailbox, such asana@example.com. It has a provider, a status, and everything the engine synced from it.
The account’s
status tells you whether it’s syncing (running) or needs attention (errored, disconnected). See Account status.
Folder and role
Folders are the mailbox’s folders (Gmail’s labels appear as folders over IMAP). Each has a role when it has a standard purpose, so you can work across providers without knowing their folder names:
Where the API takes a folder, pass its
fld_… id. To find the inbox, Sent and so on, list the folders and pick the one with that role. An email’s folders holds fld_… ids.
Ids
Every id the engine creates starts with its type, so you can’t mix them up:
Always pass ids exactly as the API returns them. An id with the wrong prefix, or a plain UUID, is refused: in the URL path you get
404, in a query or body you get 400.
An email also has ids that come from the email itself:
Lists
Every list has the same shape:object names the list (Accounts, Emails, Folders …), data holds the items and has_more says whether there is a next page. See Pagination.
Attendee
Senders and recipients are attendees:identifier is the email address, always lowercase. identifier_type is always EMAIL_ADDRESS. When you send, write recipients as { "email", "display_name" } instead.
Events
When something changes, the engine sends a webhook event to your app, for exampleemail.new, email.update or account.status.disconnected. See Events.