| Authentication | A DSN and an access token, sent in the X-API-KEY header |
| Ids | A type prefix on every id: acc_…, email_…, att_…, fld_…, we_…, evt_…, pk_… |
| Lists | { "object", "data", "has_more" }. Offset paging with offset and limit; cursor for long lists |
| Connecting accounts | POST /auth/intent with provider: "imap", the address and password, state, and account_id to reconnect. See Connect a mailbox |
| Accounts | GET, PATCH (metadata) and DELETE /accounts/{id}. status is running, errored or disconnected; is_locked, initial_sync, user_id, provider |
| Email routes | The account in the path: /{account_id}/emails, /{account_id}/folders/{folder_id}/emails, POST /{account_id}/emails/send, GET and DELETE /{account_id}/emails/{email_id}, /read, /unread, /modify (folders_ids), /thread, /{account_id}/threads/{thread_id}, attachments. See List emails |
| Folders | /{account_id}/folders: list, get, create, rename and delete. See Folders |
| Drafts, contacts and senders | /{account_id}/drafts (create, list, get, update, delete, send), /{account_id}/contacts, and /{account_id}/email-senders (the addresses usable as from; for IMAP, the account’s own). See Send an email |
| Sending | Recipients as { "email", "display_name" }; html and plain_text; reply_to (the Reply-To header); reply_to_message_id (the email you answer); files as attachments. No forward call. See Send an email |
| Email object | Attendees with identifier_type: "EMAIL_ADDRESS", folders (fld_… ids), is_unread, is_complete, and every header in headers |
| Webhook endpoints | /webhooks/endpoints with url, trigger_events, account_ids, description, headers, enabled; /webhooks/conversations for the delivery log |
| Event envelope | { "object": "Event", "id", "type", "created_at", "account_id", "endpoint_id", "data" } |
| Event names | email.new, email.new.bounce, email.delete, email.draft.new, email.draft.delete, email.folder.*, tracking.open, tracking.click, account.add, account.reconnect, account.remove, account.status.* |
| API keys | /api-keys, with the key shown once |