# REST API reference > Every endpoint, rendered from the live OpenAPI spec at /api/v1/openapi.json. Source: https://dropline.cleforyx.com/docs/developers/api · Section: Developers · All docs: https://dropline.cleforyx.com/llms.txt Base URL `https://dropline.cleforyx.com/api/v1`. Send a personal access token on every request: `Authorization: Bearer dl_pat_…`. Create tokens in the app under **Settings → Connect AI agents**. > [!NOTE] > Errors always have the shape `{ "error": { "code", "message", "details" } }`. Switch on `code`; `message` is human text and may change. ## Account ### `GET /me`: Who am I The account and token behind this request: scopes, mailboxes and rate limit. Responses: `200` Me, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ## Mailboxes ### `GET /mailboxes`: List mailboxes Mailboxes this token can use. Scope: mail.read. Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `GET /mailboxes/{mailbox_id}/folders`: List folders Folders with message and unread counts. Scope: mail.read. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `mailbox_id` | path | string | yes | | Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `GET /mailboxes/{mailbox_id}/usage`: Sending limits How much this mailbox has sent today and this hour, against its limits. Scope: mail.read. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `mailbox_id` | path | string | yes | | Responses: `200` Usage, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ## Messages ### `GET /mailboxes/{mailbox_id}/messages`: List or search messages Newest first. `q` takes words plus `from:` `to:` `subject:` `has:attachment` `is:unread` `is:read` `is:starred` `before:YYYY-MM-DD` `after:YYYY-MM-DD`. Use `folder=@starred` for starred mail from every folder except Trash and Junk (each message keeps its real `folder`). Scope: mail.read. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `folder` | query | string | no | Folder path, from List folders. Defaults to INBOX. | | `q` | query | string | no | | | `page` | query | integer | no | | | `page_size` | query | integer | no | | | `mailbox_id` | path | string | yes | | Responses: `200` MessageList, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `GET /mailboxes/{mailbox_id}/messages/{uid}`: Get a message The full message. Remote images stay neutralised in `html`. Scope: mail.read. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `folder` | query | string | no | Folder path, from List folders. Defaults to INBOX. | | `mailbox_id` | path | string | yes | | | `uid` | path | integer | yes | | Responses: `200` Message, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `PATCH /mailboxes/{mailbox_id}/messages/{uid}`: Mark read or starred Scope: mail.organize. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `folder` | query | string | no | Folder path, from List folders. Defaults to INBOX. | | `mailbox_id` | path | string | yes | | | `uid` | path | integer | yes | | Request body (JSON): | Field | Type | Required | Description | | --- | --- | --- | --- | | `read` | boolean | no | | | `starred` | boolean | no | | Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `GET /mailboxes/{mailbox_id}/messages/{uid}/raw`: Download the original (.eml) The message exactly as stored, as `message/rfc822`. Scope: mail.read. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `folder` | query | string | no | Folder path, from List folders. Defaults to INBOX. | | `mailbox_id` | path | string | yes | | | `uid` | path | integer | yes | | Responses: `200` ### `GET /mailboxes/{mailbox_id}/messages/{uid}/attachments/{index}`: Download an attachment Binary content, with Content-Type and filename. `index` comes from Get a message. Scope: mail.read. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `folder` | query | string | no | Folder path, from List folders. Defaults to INBOX. | | `mailbox_id` | path | string | yes | | | `uid` | path | integer | yes | | | `index` | path | integer | yes | | Responses: `200` ### `POST /mailboxes/{mailbox_id}/messages/{uid}/move`: Move a message To inbox, archive, junk or trash. Nothing in the API deletes mail permanently. Returns the new UID. Scope: mail.organize. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `folder` | query | string | no | Folder path, from List folders. Defaults to INBOX. | | `mailbox_id` | path | string | yes | | | `uid` | path | integer | yes | | Request body (JSON): | Field | Type | Required | Description | | --- | --- | --- | --- | | `to` | "inbox" \| "archive" \| "junk" \| "trash" | yes | | Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ## Sending ### `POST /mailboxes/{mailbox_id}/drafts`: Create a draft Saves a draft in Drafts for the owner to review and send. Scope: mail.draft. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `mailbox_id` | path | string | yes | | Request body (JSON): | Field | Type | Required | Description | | --- | --- | --- | --- | | `to` | object[] | no | | | `cc` | object[] | no | | | `bcc` | object[] | no | | | `subject` | string | no | | | `text` | string | no | Plain-text body. | | `html` | string \| null | no | Optional HTML body. Send text too, for clients that show plain text. | Responses: `201` Draft, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `POST /mailboxes/{mailbox_id}/send`: Send an email Queues the message, or holds it for the owner’s approval if the token asks first (the default). Add `send_at` to send it later. Send an `Idempotency-Key` header so a retried request never sends twice. Plan limits apply. Scope: mail.send. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `mailbox_id` | path | string | yes | | | `idempotency-key` | header | string | no | | Request body (JSON): | Field | Type | Required | Description | | --- | --- | --- | --- | | `to` | object[] | no | | | `cc` | object[] | no | | | `bcc` | object[] | no | | | `subject` | string | no | | | `text` | string | no | Plain-text body. | | `html` | string \| null | no | Optional HTML body. Send text too, for clients that show plain text. | | `send_at` | string (date-time) | no | Send later: an ISO 8601 time with offset, 1 minute to 60 days ahead. It counts against the sending limit of the day you schedule it. Cancel with Cancel a scheduled send. | Responses: `202` SendResult, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `POST /mailboxes/{mailbox_id}/messages/{uid}/reply`: Reply to a message Replies in the same thread with the right subject and headers. `draft_only` saves a draft (scope mail.draft); otherwise it sends (scope mail.send, approval rules apply), later if you give `send_at`. Accepts `Idempotency-Key`. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `folder` | query | string | no | Folder path, from List folders. Defaults to INBOX. | | `mailbox_id` | path | string | yes | | | `uid` | path | integer | yes | | | `idempotency-key` | header | string | no | | Request body (JSON): | Field | Type | Required | Description | | --- | --- | --- | --- | | `text` | string | yes | | | `html` | string \| null | no | | | `reply_all` | boolean | no | | | `draft_only` | boolean | no | | | `send_at` | string (date-time) | no | Send later: an ISO 8601 time with offset, 1 minute to 60 days ahead. It counts against the sending limit of the day you schedule it. Cancel with Cancel a scheduled send. | Responses: `201` Draft, `202` SendResult, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `GET /mailboxes/{mailbox_id}/scheduled`: List scheduled sends Messages waiting for their `send_at`, soonest first. Scheduled from the app, the API or MCP. Scope: mail.read. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `mailbox_id` | path | string | yes | | Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `DELETE /mailboxes/{mailbox_id}/scheduled/{send_id}`: Cancel a scheduled send Stops it going out, gives the count back to today’s sending limit and saves the message in Drafts so nothing is lost. Scope: mail.send. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `mailbox_id` | path | string | yes | | | `send_id` | path | string | yes | | Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `GET /approvals/{approval_id}`: Check an approval Status of a send that waits for the owner. Scope: mail.send. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `approval_id` | path | string | yes | | Responses: `200` Approval, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ## Domains ### `GET /domains`: List domains Your own domains with their DNS status. Scope: domains.read. Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ## Templates ### `GET /templates`: List templates Your saved templates, by name. Use `subject` and `text` (or `html`) as the starting point of a draft or send. Scope: mail.read. Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `POST /templates`: Create a template Up to 100 per account. Scope: mail.draft. Request body (JSON): | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | | | `subject` | string | no | | | `html` | string | yes | Scripts, styles and unknown tags are removed. | Responses: `201` Template, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `GET /templates/{template_id}`: Get a template Scope: mail.read. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `template_id` | path | string | yes | | Responses: `200` Template, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `PATCH /templates/{template_id}`: Update a template Change any of name, subject and html. Scope: mail.draft. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `template_id` | path | string | yes | | Request body (JSON): | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | | | `subject` | string | no | | | `html` | string | no | | Responses: `200` Template, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `DELETE /templates/{template_id}`: Delete a template Scope: mail.draft. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `template_id` | path | string | yes | | Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ## Webhooks ### `GET /webhooks`: List webhooks Scope: webhooks.manage. Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `POST /webhooks`: Create a webhook Returns the signing secret once. Plan limits apply (none on Free). Scope: webhooks.manage. Request body (JSON): | Field | Type | Required | Description | | --- | --- | --- | --- | | `url` | string | yes | | | `description` | string \| null | no | | | `events` | "message.received" \| "message.sent" \| "approval.requested" \| "domain.verified" \| "domain.degraded" \| "agent.run.completed" \| "*"[] | yes | | | `mailbox_ids` | string[] | no | Only these mailboxes’ mail events. Empty = all of yours. | Responses: `201` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `PATCH /webhooks/{webhook_id}`: Update a webhook Change the URL, events or mailboxes, or turn it back on after failures (`active: true` resets the failure count). Scope: webhooks.manage. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `webhook_id` | path | string | yes | | Request body (JSON): | Field | Type | Required | Description | | --- | --- | --- | --- | | `url` | string | no | | | `description` | string \| null | no | | | `events` | "message.received" \| "message.sent" \| "approval.requested" \| "domain.verified" \| "domain.degraded" \| "agent.run.completed" \| "*"[] | no | | | `mailbox_ids` | string[] | no | Only these mailboxes’ mail events. Empty = all of yours. | | `active` | boolean | no | | Responses: `200` Webhook, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `DELETE /webhooks/{webhook_id}`: Delete a webhook Scope: webhooks.manage. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `webhook_id` | path | string | yes | | Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `POST /webhooks/{webhook_id}/rotate-secret`: Rotate the signing secret The old secret stops working immediately. Scope: webhooks.manage. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `webhook_id` | path | string | yes | | Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `POST /webhooks/{webhook_id}/test`: Send a test event Delivers a `ping` event to this webhook only. Scope: webhooks.manage. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `webhook_id` | path | string | yes | | Responses: `202` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `GET /webhooks/{webhook_id}/deliveries`: Recent deliveries The last 50 deliveries with status and errors. Scope: webhooks.manage. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `webhook_id` | path | string | yes | | Responses: `200` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ### `POST /webhooks/{webhook_id}/deliveries/{delivery_id}/redeliver`: Redeliver Sends the same event again (same event id, so you can de-duplicate). Scope: webhooks.manage. | Parameter | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `webhook_id` | path | string | yes | | | `delivery_id` | path | string | yes | | Responses: `202` object, `400` Error, `401` Error, `403` Error, `404` Error, `429` Error ## Schemas ### ErrorInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `error` | object | yes | | ### AddressInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | | | `address` | string | yes | | ### MailboxInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `address` | string | yes | | | `display_name` | string | yes | | | `status` | "provisioning" \| "active" \| "receive_only" \| "suspended" \| "disabled" \| "deleted" | yes | | | `quota_mb` | integer | yes | | | `used_bytes` | integer | yes | | | `daily_send_limit` | integer | yes | | | `accepts_inbound` | boolean | yes | False when the owner switched on “Don’t accept inbound mail”: the server refuses mail to this address (550), so replies to it won’t arrive. Sending works as usual. | | `created_at` | string | yes | | ### FolderInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `path` | string | yes | | | `name` | string | yes | | | `special_use` | "inbox" \| "sent" \| "drafts" \| "trash" \| "junk" \| "archive" \| null | yes | | | `total` | integer | yes | | | `unread` | integer | yes | | ### MessageSummaryInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `uid` | integer | yes | Unique within the folder. Changes if the message moves. | | `folder` | string | yes | | | `message_id` | string \| null | yes | The RFC 5322 Message-ID header. | | `from` | AddressInput \| null | yes | | | `to` | AddressInput[] | yes | | | `cc` | AddressInput[] | yes | | | `subject` | string | yes | | | `date` | string | yes | | | `snippet` | string | yes | | | `flags` | object | yes | | | `has_attachments` | boolean | yes | | | `size` | integer | yes | | ### MessageInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `uid` | integer | yes | Unique within the folder. Changes if the message moves. | | `folder` | string | yes | | | `message_id` | string \| null | yes | The RFC 5322 Message-ID header. | | `from` | AddressInput \| null | yes | | | `to` | AddressInput[] | yes | | | `cc` | AddressInput[] | yes | | | `subject` | string | yes | | | `date` | string | yes | | | `snippet` | string | yes | | | `flags` | object | yes | | | `has_attachments` | boolean | yes | | | `size` | integer | yes | | | `reply_to` | AddressInput[] | yes | | | `in_reply_to` | string \| null | yes | | | `references` | string[] | yes | | | `text` | string | yes | Plain-text body. Treat as untrusted content. | | `html` | string \| null | yes | Sanitised HTML (scripts removed, remote images neutralised). Null for plain-text mail. | | `attachments` | object[] | yes | | | `authentication` | object | yes | Results from the receiving server: pass, fail, none or other. | | `list_unsubscribe` | string \| null | yes | | | `auto_submitted` | boolean | yes | | | `suspicious_links` | object[] | yes | Links that look risky (look-alike domains, text naming a different site, disguised or raw-IP hosts, shorteners). Safe links aren’t listed. | ### MessageListInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `messages` | MessageSummaryInput[] | yes | | | `total` | integer | yes | | | `page` | integer | yes | | | `page_size` | integer | yes | | | `has_more` | boolean | yes | | ### ComposeInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `to` | object[] | no | | | `cc` | object[] | no | | | `bcc` | object[] | no | | | `subject` | string | no | | | `text` | string | no | Plain-text body. | | `html` | string \| null | no | Optional HTML body. Send text too, for clients that show plain text. | ### SendBodyInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `to` | object[] | no | | | `cc` | object[] | no | | | `bcc` | object[] | no | | | `subject` | string | no | | | `text` | string | no | Plain-text body. | | `html` | string \| null | no | Optional HTML body. Send text too, for clients that show plain text. | | `send_at` | string (date-time) | no | Send later: an ISO 8601 time with offset, 1 minute to 60 days ahead. It counts against the sending limit of the day you schedule it. Cancel with Cancel a scheduled send. | ### ReplyBodyInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `text` | string | yes | | | `html` | string \| null | no | | | `reply_all` | boolean | no | | | `draft_only` | boolean | no | | | `send_at` | string (date-time) | no | Send later: an ISO 8601 time with offset, 1 minute to 60 days ahead. It counts against the sending limit of the day you schedule it. Cancel with Cancel a scheduled send. | ### SendResultInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `status` | "queued" \| "scheduled" \| "pending_approval" | yes | queued: accepted and handed to SMTP within seconds. scheduled: waits until send_at. pending_approval: waiting for the owner to approve it in the app (a requested send_at is kept). | | `id` | string | yes | send id (queued, scheduled) or approval id (pending_approval) | | `message_id` | string \| null | yes | | | `send_at` | string \| null | yes | When it goes out, for scheduled sends and approvals that asked for a time. | ### ScheduledInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `send_id` | string | yes | | | `send_at` | string | yes | | | `to` | string[] | yes | | | `subject` | string | yes | | ### TemplateInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `name` | string | yes | | | `subject` | string | yes | Empty when the template only fills the body. | | `html` | string | yes | Simple formatting only: paragraphs, bold, italics, lists, links. | | `text` | string | yes | Plain-text version of html. | | `created_at` | string | yes | | | `updated_at` | string | yes | | ### TemplatePatchInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | | | `subject` | string | no | | | `html` | string | no | | ### DraftInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `folder` | string | yes | | | `uid` | integer \| null | yes | | ### UsageInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `sent_today` | integer | yes | | | `daily_limit` | integer | yes | | | `sent_this_hour` | integer | yes | | | `hourly_limit` | integer | yes | | | `recipients_per_message` | integer | yes | | | `max_message_mb` | integer | yes | | | `probation` | boolean | yes | | ### DomainInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `name` | string | yes | | | `status` | "pending_ownership" \| "pending_dns" \| "verifying" \| "active" \| "degraded" \| "suspended" | yes | | | `sending` | boolean | yes | | | `receiving` | boolean | yes | | | `records` | object[] | yes | | | `last_checked_at` | string \| null | yes | | ### WebhookInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `url` | string | yes | | | `description` | string \| null | yes | | | `events` | string[] | yes | | | `mailbox_ids` | string[] | yes | | | `active` | boolean | yes | | | `consecutive_failures` | integer | yes | | | `last_success_at` | string \| null | yes | | | `created_at` | string | yes | | ### DeliveryInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `event_id` | string | yes | | | `event` | string | yes | | | `attempts` | integer | yes | | | `last_status` | integer \| null | yes | | | `last_error` | string \| null | yes | | | `delivered_at` | string \| null | yes | | | `created_at` | string | yes | | | `payload` | object | yes | | ### ApprovalInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `state` | "pending" \| "approved" \| "rejected" \| "expired" | yes | | | `mailbox_id` | string | yes | | | `subject` | string | yes | | | `to` | string[] | yes | | | `send_at` | string \| null | yes | | | `created_at` | string | yes | | | `decided_at` | string \| null | yes | | | `expires_at` | string | yes | | ### MeInput | Field | Type | Required | Description | | --- | --- | --- | --- | | `user` | object | yes | | | `token` | object | yes | | | `rate_limit` | object | yes | | ### Error | Field | Type | Required | Description | | --- | --- | --- | --- | | `error` | object | yes | | ### Address | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | yes | | | `address` | string | yes | | ### Mailbox | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `address` | string | yes | | | `display_name` | string | yes | | | `status` | "provisioning" \| "active" \| "receive_only" \| "suspended" \| "disabled" \| "deleted" | yes | | | `quota_mb` | integer | yes | | | `used_bytes` | integer | yes | | | `daily_send_limit` | integer | yes | | | `accepts_inbound` | boolean | yes | False when the owner switched on “Don’t accept inbound mail”: the server refuses mail to this address (550), so replies to it won’t arrive. Sending works as usual. | | `created_at` | string | yes | | ### Folder | Field | Type | Required | Description | | --- | --- | --- | --- | | `path` | string | yes | | | `name` | string | yes | | | `special_use` | "inbox" \| "sent" \| "drafts" \| "trash" \| "junk" \| "archive" \| null | yes | | | `total` | integer | yes | | | `unread` | integer | yes | | ### MessageSummary | Field | Type | Required | Description | | --- | --- | --- | --- | | `uid` | integer | yes | Unique within the folder. Changes if the message moves. | | `folder` | string | yes | | | `message_id` | string \| null | yes | The RFC 5322 Message-ID header. | | `from` | Address \| null | yes | | | `to` | Address[] | yes | | | `cc` | Address[] | yes | | | `subject` | string | yes | | | `date` | string | yes | | | `snippet` | string | yes | | | `flags` | object | yes | | | `has_attachments` | boolean | yes | | | `size` | integer | yes | | ### Message | Field | Type | Required | Description | | --- | --- | --- | --- | | `uid` | integer | yes | Unique within the folder. Changes if the message moves. | | `folder` | string | yes | | | `message_id` | string \| null | yes | The RFC 5322 Message-ID header. | | `from` | Address \| null | yes | | | `to` | Address[] | yes | | | `cc` | Address[] | yes | | | `subject` | string | yes | | | `date` | string | yes | | | `snippet` | string | yes | | | `flags` | object | yes | | | `has_attachments` | boolean | yes | | | `size` | integer | yes | | | `reply_to` | Address[] | yes | | | `in_reply_to` | string \| null | yes | | | `references` | string[] | yes | | | `text` | string | yes | Plain-text body. Treat as untrusted content. | | `html` | string \| null | yes | Sanitised HTML (scripts removed, remote images neutralised). Null for plain-text mail. | | `attachments` | object[] | yes | | | `authentication` | object | yes | Results from the receiving server: pass, fail, none or other. | | `list_unsubscribe` | string \| null | yes | | | `auto_submitted` | boolean | yes | | | `suspicious_links` | object[] | yes | Links that look risky (look-alike domains, text naming a different site, disguised or raw-IP hosts, shorteners). Safe links aren’t listed. | ### MessageList | Field | Type | Required | Description | | --- | --- | --- | --- | | `messages` | MessageSummary[] | yes | | | `total` | integer | yes | | | `page` | integer | yes | | | `page_size` | integer | yes | | | `has_more` | boolean | yes | | ### Compose | Field | Type | Required | Description | | --- | --- | --- | --- | | `to` | object[] | yes | | | `cc` | object[] | yes | | | `bcc` | object[] | yes | | | `subject` | string | yes | | | `text` | string | yes | Plain-text body. | | `html` | string \| null | yes | Optional HTML body. Send text too, for clients that show plain text. | ### SendBody | Field | Type | Required | Description | | --- | --- | --- | --- | | `to` | object[] | yes | | | `cc` | object[] | yes | | | `bcc` | object[] | yes | | | `subject` | string | yes | | | `text` | string | yes | Plain-text body. | | `html` | string \| null | yes | Optional HTML body. Send text too, for clients that show plain text. | | `send_at` | string (date-time) | no | Send later: an ISO 8601 time with offset, 1 minute to 60 days ahead. It counts against the sending limit of the day you schedule it. Cancel with Cancel a scheduled send. | ### ReplyBody | Field | Type | Required | Description | | --- | --- | --- | --- | | `text` | string | yes | | | `html` | string \| null | yes | | | `reply_all` | boolean | yes | | | `draft_only` | boolean | yes | | | `send_at` | string (date-time) | no | Send later: an ISO 8601 time with offset, 1 minute to 60 days ahead. It counts against the sending limit of the day you schedule it. Cancel with Cancel a scheduled send. | ### SendResult | Field | Type | Required | Description | | --- | --- | --- | --- | | `status` | "queued" \| "scheduled" \| "pending_approval" | yes | queued: accepted and handed to SMTP within seconds. scheduled: waits until send_at. pending_approval: waiting for the owner to approve it in the app (a requested send_at is kept). | | `id` | string | yes | send id (queued, scheduled) or approval id (pending_approval) | | `message_id` | string \| null | yes | | | `send_at` | string \| null | yes | When it goes out, for scheduled sends and approvals that asked for a time. | ### Scheduled | Field | Type | Required | Description | | --- | --- | --- | --- | | `send_id` | string | yes | | | `send_at` | string | yes | | | `to` | string[] | yes | | | `subject` | string | yes | | ### Template | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `name` | string | yes | | | `subject` | string | yes | Empty when the template only fills the body. | | `html` | string | yes | Simple formatting only: paragraphs, bold, italics, lists, links. | | `text` | string | yes | Plain-text version of html. | | `created_at` | string | yes | | | `updated_at` | string | yes | | ### TemplatePatch | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | no | | | `subject` | string | no | | | `html` | string | no | | ### Draft | Field | Type | Required | Description | | --- | --- | --- | --- | | `folder` | string | yes | | | `uid` | integer \| null | yes | | ### Usage | Field | Type | Required | Description | | --- | --- | --- | --- | | `sent_today` | integer | yes | | | `daily_limit` | integer | yes | | | `sent_this_hour` | integer | yes | | | `hourly_limit` | integer | yes | | | `recipients_per_message` | integer | yes | | | `max_message_mb` | integer | yes | | | `probation` | boolean | yes | | ### Domain | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `name` | string | yes | | | `status` | "pending_ownership" \| "pending_dns" \| "verifying" \| "active" \| "degraded" \| "suspended" | yes | | | `sending` | boolean | yes | | | `receiving` | boolean | yes | | | `records` | object[] | yes | | | `last_checked_at` | string \| null | yes | | ### Webhook | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `url` | string | yes | | | `description` | string \| null | yes | | | `events` | string[] | yes | | | `mailbox_ids` | string[] | yes | | | `active` | boolean | yes | | | `consecutive_failures` | integer | yes | | | `last_success_at` | string \| null | yes | | | `created_at` | string | yes | | ### Delivery | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `event_id` | string | yes | | | `event` | string | yes | | | `attempts` | integer | yes | | | `last_status` | integer \| null | yes | | | `last_error` | string \| null | yes | | | `delivered_at` | string \| null | yes | | | `created_at` | string | yes | | | `payload` | object | yes | | ### Approval | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | yes | | | `state` | "pending" \| "approved" \| "rejected" \| "expired" | yes | | | `mailbox_id` | string | yes | | | `subject` | string | yes | | | `to` | string[] | yes | | | `send_at` | string \| null | yes | | | `created_at` | string | yes | | | `decided_at` | string \| null | yes | | | `expires_at` | string | yes | | ### Me | Field | Type | Required | Description | | --- | --- | --- | --- | | `user` | object | yes | | | `token` | object | yes | | | `rate_limit` | object | yes | | --- Previous: [Authentication and scopes](https://dropline.cleforyx.com/docs/developers/authentication.md) · Next: [Webhooks](https://dropline.cleforyx.com/docs/developers/webhooks.md)