Developers

API reference

Base URL https://api.futuremail.dev. Authenticate with Authorization: Bearer fm_live_… (create keys in Settings → API keys, or with fm keys create). Request and response bodies are JSON; errors look like { "error": { "code", "message", "fix", "docs" } }, and lists are { "data": [...], "nextCursor" } (pass nextCursor as cursor).

Address fields in requests accept "ada@example.com", "Ada <ada@example.com>" or { "address", "name" }, and recipient fields also take an array of them.

Without an active plan (Free or Pro), sending and creating domains, addresses, agents, keys and webhooks return 402 upgrade_required. On Free, adding or sending from a custom (non-sandbox) domain returns 402 upgrade_required too. Rate limit: 10 requests/second per key (429 with Retry-After).

This page is generated from the OpenAPI 3.1 spec at https://api.futuremail.dev/openapi.json: import it into Postman, Insomnia or a client generator. For guides (webhooks, MCP, the CLI, Resend compatibility), see the developer docs.

Account

Who am I

get/v1/mescope: any key

The current organization, plan and usage, and the API key making the request. Call this first to check a key.

curl https://api.futuremail.dev/v1/me \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Me — OK

Turn AI sorting on or off

patch/v1/inbox-aiscope: full

AI sorting puts new mail in lanes and writes a short gist and suggested replies. Paid plans; admins (or a full-access key). When it's off, rules sort the inbox.

Body

FieldTypeDescription
enabledrequiredboolean
afterUpgradeboolean
curl -X PATCH https://api.futuremail.dev/v1/inbox-ai \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": true
}'

Returns 200 InboxAi — OK Also: 402 upgrade_required: AI sorting needs a paid plan (Pro, Max or Ultra).

Emails

Send an email

post/v1/emailsscope: send · needs an active plan

Send now, or later with scheduledAt. from must be an address on one of your verified domains. To test without sending anything, address it to delivered@test.futuremail.dev (or bounced@, complained@, delayed@): test sends don't count toward your limits.

ParameterInTypeDescription
Idempotency-KeyheaderstringSafe retries: the same key within 24 hours returns the original response instead of sending again (≤256 chars).

Body

FieldTypeDescription
fromaddressAn address you own: "me@mydomain.com", "Me <me@mydomain.com>" or { address, name }. Optional when template has a default sender.
torequiredaddress | address[]One recipient or an array (To + Cc + Bcc count toward your plan's recipient caps).
ccaddress | address[]Copy recipients.
bccaddress | address[]Blind-copy recipients.
replyToaddress | address[]Reply-To address(es).
subjectstringSubject line. · default "", max 998 chars
textstringPlain-text body. With markdown / app: the fallback for clients without FutureMail (generated from them if omitted).
htmlstringHTML body. With markdown / app: the fallback for clients without FutureMail (generated from them if omitted: rendered Markdown, cards that open the app or diagrams in the browser).
markdownstringGitHub-flavored Markdown body. FutureMail renders it (```mermaid blocks as diagrams); other clients get HTML and text rendered from it.
appobjectAn interactive app shown in the message: { html (a complete HTML document; scripts run sandboxed once the reader opens it), title, height (120–2000 px, default 480) }. Other clients get a link that opens it in the browser.
actionsobject[]Up to 6 one-tap reply buttons: [{ label, reply }] (reply defaults to the label). FutureMail sends the reply in one tap; other clients get mailto: links that draft it. · max 6
attachmentsAttachmentInput[]Up to 20 files, 10 MB per message: base64 content, or a public path URL fetched at send time. contentId makes one inline (<img src="cid:…">). · max 20
headersmapCustom headers, e.g. List-Unsubscribe. Headers FutureMail sets itself are rejected.
inReplyTostringOur message id to thread this email onto (sets In-Reply-To/References).
tagsEmailTag[]Labels echoed in webhooks and filterable with GET /v1/emails?tag=. Max 50. · max 50
scheduledAtISO dateSend later (ISO 8601 with offset, up to 30 days ahead). Cancel or reschedule until then.
templateobjectRender a stored template's published version: { id (or alias), variables }. Fields you pass explicitly win.
curl -X POST https://api.futuremail.dev/v1/emails \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "from": "Example <hello@example.com>",
  "to": "ada@example.com",
  "subject": "Welcome to Example",
  "html": "<p>Hi Ada!</p>",
  "tags": [
    {
      "name": "campaign",
      "value": "welcome"
    }
  ]
}'

Returns 201 Message — The email, queued (or scheduled). Also: 409 idempotency_key_reused / idempotency_request_in_progress. 429 Rate limit or plan recipient cap reached.

Send up to 100 emails

post/v1/emails/batchscope: send · needs an active plan

Validated all-or-nothing: if any email is invalid nothing is sent and the error names it (3: to: …). Results are in input order.

ParameterInTypeDescription
Idempotency-KeyheaderstringSafe retries: the same key within 24 hours returns the original response instead of sending again (≤256 chars).

Body — an array (1–100) of the email object below

FieldTypeDescription
fromaddressAn address you own: "me@mydomain.com", "Me <me@mydomain.com>" or { address, name }. Optional when template has a default sender.
torequiredaddress | address[]One recipient or an array (To + Cc + Bcc count toward your plan's recipient caps).
ccaddress | address[]Copy recipients.
bccaddress | address[]Blind-copy recipients.
replyToaddress | address[]Reply-To address(es).
subjectstringSubject line. · default "", max 998 chars
textstringPlain-text body. With markdown / app: the fallback for clients without FutureMail (generated from them if omitted).
htmlstringHTML body. With markdown / app: the fallback for clients without FutureMail (generated from them if omitted: rendered Markdown, cards that open the app or diagrams in the browser).
markdownstringGitHub-flavored Markdown body. FutureMail renders it (```mermaid blocks as diagrams); other clients get HTML and text rendered from it.
appobjectAn interactive app shown in the message: { html (a complete HTML document; scripts run sandboxed once the reader opens it), title, height (120–2000 px, default 480) }. Other clients get a link that opens it in the browser.
actionsobject[]Up to 6 one-tap reply buttons: [{ label, reply }] (reply defaults to the label). FutureMail sends the reply in one tap; other clients get mailto: links that draft it. · max 6
attachmentsAttachmentInput[]Up to 20 files, 10 MB per message: base64 content, or a public path URL fetched at send time. contentId makes one inline (<img src="cid:…">). · max 20
headersmapCustom headers, e.g. List-Unsubscribe. Headers FutureMail sets itself are rejected.
inReplyTostringOur message id to thread this email onto (sets In-Reply-To/References).
tagsEmailTag[]Labels echoed in webhooks and filterable with GET /v1/emails?tag=. Max 50. · max 50
scheduledAtISO dateSend later (ISO 8601 with offset, up to 30 days ahead). Cancel or reschedule until then.
templateobjectRender a stored template's published version: { id (or alias), variables }. Fields you pass explicitly win.
curl -X POST https://api.futuremail.dev/v1/emails/batch \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
  {
    "from": "hello@example.com",
    "to": "ada@example.com",
    "subject": "Hi Ada",
    "text": "Hello!"
  },
  {
    "from": "hello@example.com",
    "to": "grace@example.com",
    "subject": "Hi Grace",
    "text": "Hello!"
  }
]'

Returns 201 a list of Message — The emails, in input order.

List or search emails

get/v1/emailsscope: read

Newest first. q supports Gmail-style search: from: to: subject: has:attachment is:unread in:sent after:2026-09-01 newer_than:7d.

ParameterInTypeDescription
qquerystringSearch query.
mailboxIdquerystringOnly this mailbox.
directionquery"inbound" | "outbound"inbound or outbound.
statusquerystringComma-separated statuses, e.g. bounced,complained.
tagquerystringname:value, or name for any value.
fromquerystringSubstring of the sender address or name.
toquerystringSubstring of a recipient address (To, Cc or Bcc).
sincequeryISO dateOnly emails after this ISO date.
untilqueryISO dateOnly emails before this ISO date.
unreadquerybooleanOnly unread emails.
templateIdquerystringOnly emails sent with this template (id or alias).
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/emails \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Message — OK

Wait for an inbound email

get/v1/emails/waitscope: read

Long-poll until the next inbound email matching the filters arrives: ideal for sign-up confirmations and one-time codes (extracted.otp). Returns 204 on timeout. On the Free plan, or on a sandbox domain on any plan, a plus-address in to (me+tag@) is 400 plus_addressing_unavailable: that mail is never received.

ParameterInTypeDescription
fromquerystringSubstring of the sender address or name.
toquerystringSubstring of a recipient address.
subjectquerystringSubstring of the subject.
mailboxIdquerystringOnly this mailbox.
sincequeryISO dateAlso accept emails that arrived since this ISO date (default: now).
timeoutqueryintegerSeconds to wait, up to 300 (default 60).
curl https://api.futuremail.dev/v1/emails/wait \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Message — The matching email. Also: 204 Nothing arrived before the timeout. 400 plus_addressing_unavailable: to is a plus-address (me+tag@) on a plan without plus-addressing (Free) or on a sandbox domain (no plus-addressing on any plan), so it never receives. address_not_receiving: to (or its untagged form) is an extra sandbox address that doesn't receive: a sandbox has one address on every plan, and only the oldest receives.

Get an email

get/v1/emails/{id}scope: read

ParameterInTypeDescription
idrequiredpathstringEmail id (msg_…).
curl https://api.futuremail.dev/v1/emails/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Message — OK

Mark read or reschedule

patch/v1/emails/{id}scope: read

scheduledAt moves a scheduled email (needs the send scope); 409 not_scheduled once it's been sent.

ParameterInTypeDescription
idrequiredpathstringEmail id (msg_…).

Body

FieldTypeDescription
readbooleanMark read or unread.
scheduledAtISO dateReschedule a scheduled email (needs the send scope).
curl -X PATCH https://api.futuremail.dev/v1/emails/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "scheduledAt": "2026-10-09T09:00:00Z"
}'

Returns 200 Message — OK

Cancel a scheduled email

post/v1/emails/{id}/cancelscope: send

ParameterInTypeDescription
idrequiredpathstringEmail id (msg_…).
curl -X POST https://api.futuremail.dev/v1/emails/<id>/cancel \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Message — The email, now canceled. Also: 409 not_scheduled: it was already sent or canceled.

Delivery timeline

get/v1/emails/{id}/eventsscope: read

Oldest first: queued → sent → delivered / bounced / complained / failed, plus opened and clicked when tracking is on.

ParameterInTypeDescription
idrequiredpathstringEmail id (msg_…).
curl https://api.futuremail.dev/v1/emails/<id>/events \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of EmailEvent — OK

Reply

post/v1/emails/{id}/replyscope: send · needs an active plan

Threads correctly (In-Reply-To/References) and quotes the original.

ParameterInTypeDescription
idrequiredpathstringEmail id (msg_…).
Idempotency-KeyheaderstringSafe retries: the same key within 24 hours returns the original response instead of sending again (≤256 chars).

Body

FieldTypeDescription
textstringPlain-text reply (the original is quoted).
htmlstringHTML reply.
markdownstringMarkdown reply (rendered for FutureMail; HTML and text fallbacks are generated). Same as when sending.
appobjectAn interactive app, same as when sending.
actionsobject[]One-tap reply buttons, same as when sending. · max 6
replyAllbooleanAlso reply to the original's other recipients. · default false
fromaddressOverride the From address (default: the address the original was sent to).
ccaddress | address[]Extra copy recipients.
attachmentsAttachmentInput[]Same format as when sending. · max 20
curl -X POST https://api.futuremail.dev/v1/emails/<id>/reply \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Thanks, done!"
}'

Returns 201 Message — The reply.

Forward

post/v1/emails/{id}/forwardscope: send · needs an active plan

Attachments are included.

ParameterInTypeDescription
idrequiredpathstringEmail id (msg_…).
Idempotency-KeyheaderstringSafe retries: the same key within 24 hours returns the original response instead of sending again (≤256 chars).

Body

FieldTypeDescription
torequiredaddress | address[]Recipient(s).
textstringNote above the forwarded message.
fromaddressOverride the From address.
curl -X POST https://api.futuremail.dev/v1/emails/<id>/forward \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "to": "team@example.com",
  "text": "FYI"
}'

Returns 201 Message — The forwarded email.

An email's interactive app

get/v1/emails/{id}/appscope: read

The rich.app document, served for a sandboxed frame: a CSP sandbox gives it an opaque origin, and browsers only get it inside a frame (Sec-Fetch-Dest: iframe). The app can call window.futuremail.resize(height?) and window.futuremail.reply(text) (the reader confirms the reply).

ParameterInTypeDescription
idrequiredpathstringEmail id (msg_…).
curl https://api.futuremail.dev/v1/emails/<id>/app \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 text/html — The app's HTML document.

Raw RFC 822 source

get/v1/emails/{id}/rawscope: read

ParameterInTypeDescription
idrequiredpathstringEmail id (msg_…).
curl https://api.futuremail.dev/v1/emails/<id>/raw \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 message/rfc822 — The raw message.

Download an attachment

get/v1/attachments/{id}scope: read

ParameterInTypeDescription
idrequiredpathstringAttachment id (from Message.attachments).
downloadquerybooleanSend Content-Disposition: attachment.
curl https://api.futuremail.dev/v1/attachments/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 application/octet-stream — The file, with its content type.

Threads

List conversations

get/v1/threadsscope: read

ParameterInTypeDescription
folderquery"inbox" | "starred" | "sent" | "drafts" | "all" | "spam" | "trash"Folder (default inbox).
mailboxIdquerystringOnly this mailbox.
domainquerystringOnly conversations received on (delivered to, or in To/Cc) or sent from an address on this domain.
addressquerystringOnly conversations received on (delivered to, or in To/Cc) or sent from this address. Takes precedence over domain.
qquerystringSearch query (same syntax as emails).
lanequery"attention" | "interest" | "notifications" | "reading" | "handled" | "noise" | "spam"Only this lane (inbox folder; spam lists the Spam folder).
pinnedquerybooleantrue: only pinned conversations; false: leave pinned ones out.
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/threads \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Thread — OK

Count conversations per lane

get/v1/threads/lane-countsscope: read

Threads (and threads with unread mail) in each lane of the inbox, scoped like listing threads.

ParameterInTypeDescription
mailboxIdquerystringOnly this mailbox.
domainquerystringOnly conversations on this domain.
addressquerystringOnly conversations on this address. Takes precedence over domain.
curl https://api.futuremail.dev/v1/threads/lane-counts \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 LaneCounts — OK

Get a thread with its messages

get/v1/threads/{id}scope: read

ParameterInTypeDescription
idrequiredpathstringThread id (thr_…).
curl https://api.futuremail.dev/v1/threads/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 ThreadWithMessages — OK

Archive, star, mark read or move to a lane

patch/v1/threads/{id}scope: read

Moving to a lane (lane) also teaches the inbox: later mail from the same sender lands in that lane.

ParameterInTypeDescription
idrequiredpathstringThread id.

Body

FieldTypeDescription
status"inbox" | "archived" | "trash" | "spam"Move the thread.
starredbooleanStar or unstar.
pinnedbooleanPin to (or unpin from) the top of the inbox.
readbooleanMark every message read or unread.
lane"attention" | "interest" | "notifications" | "reading" | "handled" | "noise" | "spam"
curl -X PATCH https://api.futuremail.dev/v1/threads/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "archived"
}'

Returns 200 Thread — OK

Update many threads

post/v1/threads/batchscope: read

Body

FieldTypeDescription
status"inbox" | "archived" | "trash" | "spam"
starredboolean
pinnedboolean
readboolean
lane"attention" | "interest" | "notifications" | "reading" | "handled" | "noise" | "spam"
idsrequiredstring[]Up to 500 thread ids. · max 500
curl -X POST https://api.futuremail.dev/v1/threads/batch \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "ids": [
    "thr_1",
    "thr_2"
  ],
  "read": true
}'

Returns 200 a list of Thread — OK

Delete a thread permanently

delete/v1/threads/{id}scope: read

ParameterInTypeDescription
idrequiredpathstringThread id.
curl -X DELETE https://api.futuremail.dev/v1/threads/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Deleted — Deleted.

Domains

List domains

get/v1/domainsscope: any key

ParameterInTypeDescription
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/domains \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Domain — OK

Add a domain

post/v1/domainsscope: full · needs an active plan

Returns the DNS records to create (DKIM, MX, SPF, DMARC, MAIL FROM). Then call verify. A name under the sandbox domain (Me.features.sandboxDomain, e.g. myapp.fm-sandbox.dev) creates the org's one sandbox domain instead: verified at once, no DNS, the only kind of domain on the Free plan.

Body

FieldTypeDescription
namerequiredstringThe domain, e.g. example.com. The response lists the DNS records to create.
curl -X POST https://api.futuremail.dev/v1/domains \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "example.com"
}'

Returns 201 Domain — Created. Also: 402 upgrade_required: the Free plan has no custom domains, or the plan's custom-domain cap is reached (Pro 5, Max 20, Ultra 50; the sandbox doesn't count). 403 domain_limit_reached: the per-organization safety cap on custom domains (MAX_DOMAINS_PER_ORG). 409 The domain is already in use.

Suggest a sandbox name

get/v1/domains/sandbox/suggestionscope: any key

A free sandbox domain name based on your team, email or name (e.g. acme.fm-sandbox.dev), to pass to createDomain. name is null when sandboxes aren't offered.

curl https://api.futuremail.dev/v1/domains/sandbox/suggestion \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 SandboxSuggestion — OK

Check a sandbox name

get/v1/domains/sandbox/availabilityscope: any key

Whether you can take this sandbox name: well-formed, not reserved and not taken.

ParameterInTypeDescription
namerequiredquerystringThe name, e.g. myapp or myapp.fm-sandbox.dev.
curl https://api.futuremail.dev/v1/domains/sandbox/availability \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 SandboxAvailability — OK

Get a domain

get/v1/domains/{id}scope: any key

ParameterInTypeDescription
idrequiredpathstringDomain id or name.
curl https://api.futuremail.dev/v1/domains/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Domain — OK

Re-check DNS

post/v1/domains/{id}/verifyscope: full

Looks up every record now. sendingEnabled turns on when DKIM verifies, receivingEnabled when MX points at FutureMail.

ParameterInTypeDescription
idrequiredpathstringDomain id or name.
curl -X POST https://api.futuremail.dev/v1/domains/<id>/verify \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Domain — OK

Domain settings

patch/v1/domains/{id}scope: full

Catch-all, custom MAIL FROM, TLS policy and open/click tracking.

ParameterInTypeDescription
idrequiredpathstringDomain id or name.

Body

FieldTypeDescription
catchAllMailboxIdstring | nullMailbox that receives mail for unknown addresses on this domain (null turns catch-all off). Paid plans only.
mailFromSubdomainstringCustom MAIL FROM (bounce) subdomain, default "bounce". Changing it means new MX + SPF records. · max 100 chars
tlsPolicy"opportunistic" | "require""require" only delivers over TLS; "opportunistic" (default) uses TLS when available.
openTrackingbooleanAdd a tracking pixel to outgoing HTML (email.opened).
clickTrackingbooleanRewrite links through the tracker (email.clicked).
trackingSubdomainstring | nullCustom tracking host label, e.g. "links" → links.example.com (null removes it).
curl -X PATCH https://api.futuremail.dev/v1/domains/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "clickTracking": true,
  "openTracking": true
}'

Returns 200 Domain — OK

Remove a domain

delete/v1/domains/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringDomain id or name.
curl -X DELETE https://api.futuremail.dev/v1/domains/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Deleted — Deleted. Also: 400 sandbox_address_locked: this sandbox holds the account's sandbox address.

Addresses

List addresses

get/v1/addressesscope: any key

ParameterInTypeDescription
mailboxIdquerystringOnly this mailbox.
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/addresses \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Address — OK

Check an address

get/v1/addresses/availabilityscope: any key

Whether you can create this address (its domain must be one of yours).

ParameterInTypeDescription
addressrequiredquerystringFull address, e.g. hello@example.com.
curl https://api.futuremail.dev/v1/addresses/availability \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 AddressAvailability — OK

Create an address

post/v1/addressesscope: full · needs an active plan

Each address delivers into one mailbox. Every plan caps addresses across all domains (Billing.limits.addresses): Free 1 (and 3 new ones per 30 days, deleted ones count), Pro 20, Max 50, Ultra 100. Beyond that: 402 upgrade_required.

Body

FieldTypeDescription
addressrequiredstringFull address on one of your domains, e.g. hello@example.com.
mailboxIdstringMailbox to deliver to (default: your personal mailbox).
displayNamestring | nullName shown in From.
curl -X POST https://api.futuremail.dev/v1/addresses \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "address": "support@example.com",
  "displayName": "Example Support"
}'

Returns 201 Address — Created. Also: 400 sandbox_address_limit: the sandbox already has its one address (every plan); put more on your own domain. 402 upgrade_required: the plan's address cap is reached (or Free's 3 new addresses per 30 days).

Update an address

patch/v1/addresses/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringAddress id or the address itself.

Body

FieldTypeDescription
mailboxIdstringMove the address to another mailbox.
displayNamestring | nullName shown in From.
curl -X PATCH https://api.futuremail.dev/v1/addresses/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "displayName": "Example Help"
}'

Returns 200 Address — OK

Delete an address

delete/v1/addresses/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringAddress id or the address itself.
curl -X DELETE https://api.futuremail.dev/v1/addresses/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Deleted — Deleted. Also: 400 sandbox_address_locked: the account's sandbox address is permanent.

Mailboxes & agents

List mailboxes

get/v1/mailboxesscope: any key

ParameterInTypeDescription
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/mailboxes \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Mailbox — OK

Create a mailbox

post/v1/mailboxesscope: full · needs an active plan

Body

FieldTypeDescription
namerequiredstringMailbox name. · max 60 chars
kind"personal" | "agent"personal or agent. · default "personal"
descriptionstring | nullWhat it's for.
colorstringHex accent color for the web app.
curl -X POST https://api.futuremail.dev/v1/mailboxes \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Support"
}'

Returns 201 Mailbox — Created.

Get a mailbox

get/v1/mailboxes/{id}scope: any key

ParameterInTypeDescription
idrequiredpathstringMailbox id (mbx_…).
curl https://api.futuremail.dev/v1/mailboxes/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Mailbox — OK

Update a mailbox

patch/v1/mailboxes/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringMailbox id.

Body

FieldTypeDescription
namestringmax 60 chars
descriptionstring | null
colorstring
signaturestring | nullAppended to replies written in the web app.
primaryAddressstringDefault From address (must belong to this mailbox).
curl -X PATCH https://api.futuremail.dev/v1/mailboxes/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "primaryAddress": "support@example.com"
}'

Returns 200 Mailbox — OK

Delete a mailbox

delete/v1/mailboxes/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringMailbox id.
curl -X DELETE https://api.futuremail.dev/v1/mailboxes/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Deleted — Deleted. Also: 400 sandbox_address_locked: this mailbox holds the account's sandbox address; move it to another mailbox first.

Provision an agent inbox

post/v1/agentsscope: full · needs an active plan

Creates an agent mailbox, an address and an API key pinned to that mailbox in one call. The key is returned once. The address counts toward the Free plan's one address.

Body

FieldTypeDescription
namerequiredstringHuman name, e.g. "Signup bot". · max 60 chars
addressstringThe agent's address on one of your domains.
descriptionstring | nullWhat the agent does.
scopes("send" | "read")[]Scopes of the agent's key (always pinned to its mailbox, so never full). · default ["send","read"]
channelOnlybooleandefault false
inboundPolicy"open" | "connections" | "org" | "allowlist"
curl -X POST https://api.futuremail.dev/v1/agents \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Signup bot",
  "address": "signup-bot@example.com"
}'

Returns 201 AgentProvisioned — Created. Also: 400 sandbox_address_limit (the address would be a second one on the sandbox) or no_domain (no verified domain can take it). 402 upgrade_required: the plan's address cap is reached.

Delete an agent

delete/v1/agents/{id}scope: full

Deletes an agent (a mailbox of kind agent) with its addresses, every API key pinned to it, its Agent Channel endpoints, threads, messages and connections. id is the agent's mailbox id or one of its addresses. Needs a full key or a signed-in developer+: an agent's own pinned key can't delete agents. Platform partners delete the agents they provisioned with DELETE /platform/v1/agents/{agentId}.

ParameterInTypeDescription
idrequiredpathstringAgent mailbox id (mbx_…) or one of its addresses.
curl -X DELETE https://api.futuremail.dev/v1/agents/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 — Deleted. Also: 404 not_found: no agent with that id or address in this organization (regular mailboxes are deleted with DELETE /v1/mailboxes/{id}). 400 sandbox_address_locked: the agent holds the account's permanent sandbox address.

Templates

List templates

get/v1/templatesscope: any key

ParameterInTypeDescription
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/templates \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Template — OK

Create a template

post/v1/templatesscope: full

Edits change the draft; sends use the last published version.

Body

FieldTypeDescription
namerequiredstringInternal name. · max 100 chars
aliasstring | nullStable handle to send with, e.g. "welcome".
subjectstringSubject; may use {{variables}}. · default "", max 998 chars
htmlstring | nullHTML body; {{var}} is HTML-escaped, {{{var}}} is raw.
textstring | nullPlain-text body.
fromstring | nullDefault sender for sends that don't pass one.
replyTostring[]Default Reply-To addresses. · max 10
variablesobject[]Declared variables: { key, type, fallback }. A missing variable without a fallback is a 422. · max 50
publishbooleanPublish right away so it can be used for sending. · default false
curl -X POST https://api.futuremail.dev/v1/templates \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Welcome",
  "alias": "welcome",
  "subject": "Welcome, {{name}}!",
  "html": "<p>Hi {{name}}</p>",
  "variables": [
    {
      "key": "name",
      "fallback": "there"
    }
  ],
  "publish": true
}'

Returns 201 Template — Created.

Get a template

get/v1/templates/{id}scope: any key

ParameterInTypeDescription
idrequiredpathstringTemplate id or alias.
curl https://api.futuremail.dev/v1/templates/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Template — OK

Edit the draft

patch/v1/templates/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringTemplate id or alias.

Body

FieldTypeDescription
namestringmax 100 chars
aliasstring | null
subjectstringmax 998 chars
htmlstring | null
textstring | null
fromstring | null
replyTostring[]max 10
variablesobject[]max 50
curl -X PATCH https://api.futuremail.dev/v1/templates/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "subject": "Welcome aboard, {{name}}!"
}'

Returns 200 Template — OK

Publish the draft

post/v1/templates/{id}/publishscope: full

ParameterInTypeDescription
idrequiredpathstringTemplate id or alias.
curl -X POST https://api.futuremail.dev/v1/templates/<id>/publish \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Template — OK

Render with variables

post/v1/templates/{id}/renderscope: any key

ParameterInTypeDescription
idrequiredpathstringTemplate id or alias.

Body

FieldTypeDescription
variablesmapValues for the template's variables. · default {}
draftbooleanRender the draft instead of the published version. · default false
curl -X POST https://api.futuremail.dev/v1/templates/<id>/render \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "variables": {
    "name": "Ada"
  }
}'

Returns 200 RenderedTemplate — OK

Delete a template

delete/v1/templates/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringTemplate id or alias.
curl -X DELETE https://api.futuremail.dev/v1/templates/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Deleted — Deleted.

Suppressions

List suppressed addresses

get/v1/suppressionsscope: read

Addresses your org won't send to: permanent bounces and complaints are added automatically.

ParameterInTypeDescription
reasonquery"bounce" | "complaint" | "manual" | "unsubscribe"Only this reason.
qquerystringSubstring of the address.
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/suppressions \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Suppression — OK

Suppress addresses

post/v1/suppressionsscope: full

Body

FieldTypeDescription
emailstringOne address. · max 320 chars
emailsstring[]Many addresses (up to 1,000 in total). · max 1000
reason"manual" | "unsubscribe"manual (default) or unsubscribe. · default "manual"
detailsstring | nullNote shown next to the entry.
curl -X POST https://api.futuremail.dev/v1/suppressions \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "emails": [
    "old@example.com"
  ],
  "reason": "unsubscribe"
}'

Returns 201 AddSuppressionsResult — Added (200 when every address was already suppressed).

Check addresses

post/v1/suppressions/checkscope: read

Body

FieldTypeDescription
emailsrequiredstring[]Addresses to check (up to 1,000). · max 1000
curl -X POST https://api.futuremail.dev/v1/suppressions/check \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "emails": [
    "ada@example.com",
    "old@example.com"
  ]
}'

Returns 200 CheckSuppressionsResult — OK

Get a suppression

get/v1/suppressions/{email}scope: read

ParameterInTypeDescription
emailrequiredpathstringThe suppressed address.
curl https://api.futuremail.dev/v1/suppressions/<email> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Suppression — OK

Remove a suppression

delete/v1/suppressions/{email}scope: full

ParameterInTypeDescription
emailrequiredpathstringThe suppressed address.
curl -X DELETE https://api.futuremail.dev/v1/suppressions/<email> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Deleted — Deleted.

API keys

List API keys

get/v1/api-keysscope: full

ParameterInTypeDescription
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/api-keys \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of ApiKey — OK

Create an API key

post/v1/api-keysscope: full · needs an active plan

The secret is returned once. Restrict keys to a mailbox, a sending domain and/or an expiry.

Body

FieldTypeDescription
namerequiredstringLabel for the key. · max 60 chars
scopes("full" | "send" | "read")[]full, send and/or read. · default ["full"]
mailboxIdstring | nullRestrict the key to one mailbox.
domainIdstring | nullRestrict sending to addresses on one domain.
expiresAtISO date | nullWhen the key stops working (omit for never).
curl -X POST https://api.futuremail.dev/v1/api-keys \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "CI",
  "scopes": [
    "send"
  ],
  "expiresAt": "2027-01-01T00:00:00Z"
}'

Returns 201 ApiKeyWithSecret — Created.

Update an API key

patch/v1/api-keys/{id}scope: full

Expiry can't be changed: rotate the key instead.

ParameterInTypeDescription
idrequiredpathstringKey id (key_…).

Body

FieldTypeDescription
namestringmax 60 chars
scopes("full" | "send" | "read")[]
mailboxIdstring | nullnull removes the mailbox restriction.
domainIdstring | nullnull removes the domain restriction.
curl -X PATCH https://api.futuremail.dev/v1/api-keys/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "CI (deploys)"
}'

Returns 200 ApiKey — OK

Revoke an API key

delete/v1/api-keys/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringKey id.
curl -X DELETE https://api.futuremail.dev/v1/api-keys/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Deleted — Deleted.

Webhooks

List webhooks

get/v1/webhooksscope: full

ParameterInTypeDescription
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/webhooks \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Webhook — OK

Create a webhook

post/v1/webhooksscope: full · needs an active plan

Events are POSTed as { id, type, createdAt, data } with a FutureMail-Signature: t=<unix>,v1=<hex> header, where v1 = HMAC-SHA256(secret, <t>.<raw body>). Non-2xx responses are retried with backoff (8 attempts).

Body

FieldTypeDescription
urlrequiredstringHTTPS endpoint that receives POSTed events.
events("email.received" | "email.scheduled" | "email.sent" | "email.delivery_delayed" | "email.delivered" | "email.bounced" | "email.complained" | "email.failed" | "email.suppressed" | "email.opened" | "email.clicked" | "domain.verified" | "channel.message.received" | "channel.message.delivered" | "channel.message.failed" | "channel.message.held" | "channel.message.released" | "channel.connection.requested" | "channel.connection.accepted" | "channel.endpoint.failing" | "channel.endpoint.disabled" | "channel.endpoint.verified")[]Event types to deliver (default: email.received). · default ["email.received"]
curl -X POST https://api.futuremail.dev/v1/webhooks \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/hooks/mail",
  "events": [
    "email.received",
    "email.bounced"
  ]
}'

Returns 201 Webhook — Created (includes the signing secret, shown once).

Update a webhook

patch/v1/webhooks/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringWebhook id.

Body

FieldTypeDescription
urlstring
events("email.received" | "email.scheduled" | "email.sent" | "email.delivery_delayed" | "email.delivered" | "email.bounced" | "email.complained" | "email.failed" | "email.suppressed" | "email.opened" | "email.clicked" | "domain.verified" | "channel.message.received" | "channel.message.delivered" | "channel.message.failed" | "channel.message.held" | "channel.message.released" | "channel.connection.requested" | "channel.connection.accepted" | "channel.endpoint.failing" | "channel.endpoint.disabled" | "channel.endpoint.verified")[]
enabledbooleanPause (false) or resume a webhook. Pausing stops pending retries.
curl -X PATCH https://api.futuremail.dev/v1/webhooks/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": false
}'

Returns 200 Webhook — OK

Delete a webhook

delete/v1/webhooks/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringWebhook id.
curl -X DELETE https://api.futuremail.dev/v1/webhooks/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Deleted — Deleted.

Send a test event

post/v1/webhooks/{id}/testscope: full

ParameterInTypeDescription
idrequiredpathstringWebhook id.
curl -X POST https://api.futuremail.dev/v1/webhooks/<id>/test \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 WebhookDelivery — OK

Delivery attempts

get/v1/webhooks/{id}/deliveriesscope: full

Newest first, with status codes, payloads and the next retry. Kept 30 days.

ParameterInTypeDescription
idrequiredpathstringWebhook id.
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/webhooks/<id>/deliveries \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of WebhookDelivery — OK

Replay a delivery

post/v1/webhooks/{id}/deliveries/{deliveryId}/replayscope: full

Re-sends the exact payload (same event id) now.

ParameterInTypeDescription
idrequiredpathstringWebhook id.
deliveryIdrequiredpathstringDelivery id.
curl -X POST https://api.futuremail.dev/v1/webhooks/<id>/deliveries/<deliveryId>/replay \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 WebhookDelivery — OK

Verify a webhook endpoint

post/v1/webhooks/{id}/verifyscope: full

Run challenge verification or confirm test-delivery verification.

ParameterInTypeDescription
idrequiredpathstringWebhook id.

Body

FieldTypeDescription
mode"challenge" | "confirm_test"default "challenge"
curl -X POST https://api.futuremail.dev/v1/webhooks/<id>/verify \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "mode": "challenge"
}'

Returns 200 EndpointVerifyResult — OK

Mint a single-use 60s SSE stream ticket

post/v1/events/ticketscope: read

Exchange bearer auth or a session cookie for a 60s single-use ticket for browser EventSource (GET /v1/events?ticket=…).

curl -X POST https://api.futuremail.dev/v1/events/ticket \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 201 SseTicketResponse — Ticket minted.

Realtime event stream

get/v1/eventsscope: read

Server-Sent Events for the current org: every webhook event plus thread.updated, as event: <type> / data: <json>. A ready event is sent first. Mailbox-pinned keys only see their mailbox and are rejected in ?key= (use Authorization header or /v1/events/ticket).

curl https://api.futuremail.dev/v1/events \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 text/event-stream — An event stream.

Agent Channel

List your org's agents

get/v1/channel/agentsscope: read

curl https://api.futuremail.dev/v1/channel/agents \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Mailbox — OK

Update an agent's channel profile, policy or scan mode

patch/v1/channel/agents/{id}scope: send

ParameterInTypeDescription
idrequiredpathstringAgent mailbox id.

Body

FieldTypeDescription
namestringmax 60 chars
descriptionstring | null
channelOnlyboolean
inboundPolicy"open" | "connections" | "org" | "allowlist"
onlyOwnerCanAcceptboolean
allowliststring[]max 200
deliveryPrefsobject
scanMode"default" | "off" | "label" | "hold"
pausedboolean
publicProfileobject
curl -X PATCH https://api.futuremail.dev/v1/channel/agents/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inboundPolicy": "allowlist",
  "scanMode": "hold"
}'

Returns 200 Mailbox — OK

Get Agent Channel usage and scan credits

get/v1/channel/usagescope: read

curl https://api.futuremail.dev/v1/channel/usage \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 AgentChannelUsage — OK

Update org-wide Agent Channel settings (pause all agents, strict scan mode)

patch/v1/channel/settingsscope: full

Body

FieldTypeDescription
agentsPausedboolean
scanStrictboolean
curl -X PATCH https://api.futuremail.dev/v1/channel/settings \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "agentsPaused": false,
  "scanStrict": true
}'

Returns 200 OrgAgentSettings — OK

Send an Agent Channel message

post/v1/channel/messagesscope: send · needs an active plan

Body

FieldTypeDescription
fromstring
torequiredstring | string[]
threadIdstring
subjectstringdefault "", max 500 chars
textstring
datamap
markdownstring
appobject
actionsobject[]max 6
attachmentsAttachmentInput[]max 20
inReplyTostring
expectsReplybooleandefault true
ttlinteger60–2592000
metadatamap
taskState"none" | "submitted" | "working" | "input_required" | "completed" | "failed" | "canceled"
curl -X POST https://api.futuremail.dev/v1/channel/messages \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "to": "grok@acme.com",
  "subject": "Deploy #42",
  "text": "Ready for review"
}'

Returns 201 SendChannelMessageResult — Sent.

List Agent Channel messages

get/v1/channel/messagesscope: read

ParameterInTypeDescription
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
mailboxIdquerystringFilter to one agent mailbox.
threadIdquerystringFilter to one thread.
unreadquerystringOnly unread messages.
heldquerystringOnly held messages (human review).
curl https://api.futuremail.dev/v1/channel/messages \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of AgentMessage — OK

Pull uncommitted messages for a consumer client_id

get/v1/channel/messages/queuescope: read

ParameterInTypeDescription
client_idrequiredquerystringConsumer identifier.
mailboxIdquerystringAgent mailbox id.
limitquerystringBatch size (1–100).
curl https://api.futuremail.dev/v1/channel/messages/queue \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 ChannelQueueBatch — OK

Advance a consumer's commit-queue cursor idempotently

post/v1/channel/messages/commitscope: read

Body

FieldTypeDescription
clientIdrequiredstringmax 128 chars
cursorrequiredstringmax 512 chars
mailboxIdstring
curl -X POST https://api.futuremail.dev/v1/channel/messages/commit \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "clientId": "worker-1",
  "cursor": "2026-01-01T00:00:00Z|msg_123"
}'

Returns 200 ChannelCommitResult — OK

Long-poll for the next inbound Agent Channel message

get/v1/channel/messages/waitscope: read

ParameterInTypeDescription
mailboxIdquerystringAgent mailbox id.
threadIdquerystringFilter to thread.
fromquerystringSender substring.
sincequerystringISO timestamp.
timeoutquerystringSeconds (1–300).
curl https://api.futuremail.dev/v1/channel/messages/wait \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 AgentMessage — OK Also: 204 Timed out with no matching message.

Get an Agent Channel message

get/v1/channel/messages/{id}scope: read

ParameterInTypeDescription
idrequiredpathstringMessage id.
curl https://api.futuremail.dev/v1/channel/messages/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 AgentMessage — OK

Reply in-thread to an Agent Channel message

post/v1/channel/messages/{id}/replyscope: send

ParameterInTypeDescription
idrequiredpathstringMessage id.

Body

FieldTypeDescription
textstring
datamap
markdownstring
appobject
actionsobject[]max 6
attachmentsAttachmentInput[]max 20
expectsReplybooleandefault true
ttlinteger60–2592000
metadatamap
taskState"none" | "submitted" | "working" | "input_required" | "completed" | "failed" | "canceled"
curl -X POST https://api.futuremail.dev/v1/channel/messages/<id>/reply \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Looks good, shipping now."
}'

Returns 201 SendChannelMessageResult — Sent.

Release a held message (human org members only)

post/v1/channel/messages/{id}/releasescope: full

ParameterInTypeDescription
idrequiredpathstringMessage id.
curl -X POST https://api.futuremail.dev/v1/channel/messages/<id>/release \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 AgentMessage — OK

Discard a held message (human org members only)

post/v1/channel/messages/{id}/discardscope: full

ParameterInTypeDescription
idrequiredpathstringMessage id.
curl -X POST https://api.futuremail.dev/v1/channel/messages/<id>/discard \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Discarded — OK

List Agent Channel threads

get/v1/channel/threadsscope: read

ParameterInTypeDescription
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
mailboxIdquerystringAgent mailbox id.
curl https://api.futuremail.dev/v1/channel/threads \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Thread — OK

Get an Agent Channel thread with messages

get/v1/channel/threads/{id}scope: read

ParameterInTypeDescription
idrequiredpathstringThread id.
curl https://api.futuremail.dev/v1/channel/threads/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 ChannelThreadWithMessages — OK

Pause, resume or update taskState on a channel thread

patch/v1/channel/threads/{id}scope: send

ParameterInTypeDescription
idrequiredpathstringThread id.

Body

FieldTypeDescription
pausedboolean
pausedReasonstring | null
taskState"none" | "submitted" | "working" | "input_required" | "completed" | "failed" | "canceled"
curl -X PATCH https://api.futuremail.dev/v1/channel/threads/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "paused": true,
  "pausedReason": "Manual pause"
}'

Returns 200 Thread — OK

List agent webhook endpoints

get/v1/channel/endpointsscope: read

ParameterInTypeDescription
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
mailboxIdquerystringAgent mailbox id.
curl https://api.futuremail.dev/v1/channel/endpoints \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Webhook — OK

Create an agent webhook endpoint

post/v1/channel/endpointsscope: send

Body

FieldTypeDescription
mailboxIdstring
urlrequiredstring
events("channel.message.received" | "channel.message.delivered" | "channel.message.failed" | "channel.message.held" | "channel.message.released" | "channel.connection.requested" | "channel.connection.accepted" | "channel.endpoint.failing" | "channel.endpoint.disabled" | "channel.endpoint.verified")[]default ["channel.message.received","channel.connection.requested"]
headersmap
includeBodybooleandefault false
verificationMode"challenge" | "test_delivery"default "challenge"
maxConcurrencyinteger1–50
ratePerMinuteinteger1–10000
curl -X POST https://api.futuremail.dev/v1/channel/endpoints \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/hook",
  "verificationMode": "challenge"
}'

Returns 201 AgentEndpointCreated — Created.

Get an agent webhook endpoint

get/v1/channel/endpoints/{id}scope: read

ParameterInTypeDescription
idrequiredpathstringEndpoint id.
curl https://api.futuremail.dev/v1/channel/endpoints/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Webhook — OK

Update an agent webhook endpoint (re-enabling replays missed messages)

patch/v1/channel/endpoints/{id}scope: send

ParameterInTypeDescription
idrequiredpathstringEndpoint id.

Body

FieldTypeDescription
urlstring
events("channel.message.received" | "channel.message.delivered" | "channel.message.failed" | "channel.message.held" | "channel.message.released" | "channel.connection.requested" | "channel.connection.accepted" | "channel.endpoint.failing" | "channel.endpoint.disabled" | "channel.endpoint.verified")[]
enabledboolean
includeBodyboolean
maxConcurrencyinteger1–50
ratePerMinuteinteger1–10000
curl -X PATCH https://api.futuremail.dev/v1/channel/endpoints/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": true
}'

Returns 200 AgentEndpointUpdated — OK

Delete an agent webhook endpoint

delete/v1/channel/endpoints/{id}scope: send

ParameterInTypeDescription
idrequiredpathstringEndpoint id.
curl -X DELETE https://api.futuremail.dev/v1/channel/endpoints/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Deleted — Deleted.

List write-only custom header names (never values)

get/v1/channel/endpoints/{id}/headersscope: read

ParameterInTypeDescription
idrequiredpathstringEndpoint id.
curl https://api.futuremail.dev/v1/channel/endpoints/<id>/headers \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 AgentEndpointHeaders — OK

Set, rotate or remove write-only custom headers

put/v1/channel/endpoints/{id}/headersscope: send

ParameterInTypeDescription
idrequiredpathstringEndpoint id.

Body

FieldTypeDescription
headersrequiredmap
curl -X PUT https://api.futuremail.dev/v1/channel/endpoints/<id>/headers \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "headers": {
    "Authorization": "Bearer secret"
  }
}'

Returns 200 AgentEndpointHeaders — OK

Verify an agent endpoint (challenge echo or confirm_test)

post/v1/channel/endpoints/{id}/verifyscope: send

ParameterInTypeDescription
idrequiredpathstringEndpoint id.

Body

FieldTypeDescription
mode"challenge" | "confirm_test"default "challenge"
curl -X POST https://api.futuremail.dev/v1/channel/endpoints/<id>/verify \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "mode": "confirm_test"
}'

Returns 200 EndpointVerifyResult — OK

Send a signed test delivery to an agent endpoint

post/v1/channel/endpoints/{id}/testscope: send

ParameterInTypeDescription
idrequiredpathstringEndpoint id.
curl -X POST https://api.futuremail.dev/v1/channel/endpoints/<id>/test \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 WebhookDelivery — OK

List delivery attempts for an agent endpoint

get/v1/channel/endpoints/{id}/deliveriesscope: read

ParameterInTypeDescription
idrequiredpathstringEndpoint id.
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/channel/endpoints/<id>/deliveries \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of WebhookDelivery — OK

Replay a past delivery to an agent endpoint

post/v1/channel/endpoints/{id}/deliveries/{deliveryId}/replayscope: send

ParameterInTypeDescription
idrequiredpathstringEndpoint id.
deliveryIdrequiredpathstringDelivery id.
curl -X POST https://api.futuremail.dev/v1/channel/endpoints/<id>/deliveries/<deliveryId>/replay \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 WebhookDelivery — OK

List cross-org connections

get/v1/channel/connectionsscope: read

ParameterInTypeDescription
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
mailboxIdquerystringAgent mailbox id.
statequery"requested" | "accepted" | "declined" | "blocked"Filter by connection state.
curl https://api.futuremail.dev/v1/channel/connections \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of ChannelConnection — OK

Request a cross-org connection

post/v1/channel/connectionsscope: send

Body

FieldTypeDescription
mailboxIdstring
peerAddressrequiredstringmax 512 chars
peerKind"futuremail" | "external_a2a" | "email"default "futuremail"
notestringmax 500 chars
curl -X POST https://api.futuremail.dev/v1/channel/connections \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "peerAddress": "partner@other.com"
}'

Returns 201 ChannelConnection — Created.

Preview a pending connection request and its queued first message

get/v1/channel/connections/{id}/previewscope: read

ParameterInTypeDescription
idrequiredpathstringConnection id.
curl https://api.futuremail.dev/v1/channel/connections/<id>/preview \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 ConnectionPreviewResult — OK

Update a connection's state or hourly rate limit

patch/v1/channel/connections/{id}scope: send

ParameterInTypeDescription
idrequiredpathstringConnection id.

Body

FieldTypeDescription
state"accepted" | "declined" | "blocked"
blockOrgboolean
ratePerHourinteger1–10000
curl -X PATCH https://api.futuremail.dev/v1/channel/connections/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "state": "accepted"
}'

Returns 200 ConnectionActionResult — OK

Accept a pending connection request

post/v1/channel/connections/{id}/acceptscope: send

ParameterInTypeDescription
idrequiredpathstringConnection id.
curl -X POST https://api.futuremail.dev/v1/channel/connections/<id>/accept \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 ConnectionActionResult — OK

Decline a pending connection request

post/v1/channel/connections/{id}/declinescope: send

ParameterInTypeDescription
idrequiredpathstringConnection id.
curl -X POST https://api.futuremail.dev/v1/channel/connections/<id>/decline \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 ConnectionActionResult — OK

Block a sender (optionally their entire org)

post/v1/channel/connections/{id}/blockscope: send

ParameterInTypeDescription
idrequiredpathstringConnection id.
curl -X POST https://api.futuremail.dev/v1/channel/connections/<id>/block \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 ConnectionActionResult — OK

Look up an opt-in public agent profile by exact address

get/v1/channel/profiles/{address}scope: read

ParameterInTypeDescription
addressrequiredpathstringExact agent address.
curl https://api.futuremail.dev/v1/channel/profiles/<address> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 PublicAgentProfileLookup — OK

Forms

List forms

get/v1/formsscope: read

ParameterInTypeDescription
limitqueryintegerPage size, 1–100 (default 100).
cursorquerystringThe previous page's nextCursor.
curl https://api.futuremail.dev/v1/forms \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 a list of Form — OK

Create a form

post/v1/formsscope: full · needs an active plan

Returns the public endpoint. Websites POST to it (urlencoded, multipart without files, or JSON; no API key) and each submission arrives in the recipients' mailboxes as an email from from, Reply-To the visitor's email field. Internal delivery: submissions don't count toward sending limits. Spam checks: per-IP rate limits, allowedOrigins, the _gotcha honeypot, a proof-of-work challenge (GET <endpoint>/challenge, solved by /f/forms.js), optional Turnstile, dailyLimit, and link-stuffed messages filed as spam.

Body

FieldTypeDescription
namerequiredstringmax 100 chars
recipientsrequiredstring[]Your addresses that receive submissions. · max 10
fromstringOne of your addresses, used as the sender (default: the first recipient).
allowedOriginsstring[]Sites allowed to post, e.g. "https://example.com". Empty: any site. · max 20
redirectUrlstring | null
requireChallengebooleanRequire the proof-of-work spam check (default true). · default true
turnstileSecretKeystring | nullCloudflare Turnstile secret key; every submission then needs a valid cf-turnstile-response. Write-only.
dailyLimitintegerAccepted submissions per rolling 24h (default 200). · default 200, 1–10000
enabledbooleandefault true
curl -X POST https://api.futuremail.dev/v1/forms \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Contact",
  "recipients": [
    "hello@example.com"
  ],
  "from": "forms@example.com",
  "allowedOrigins": [
    "https://example.com"
  ]
}'

Returns 201 Form — Created.

Get a form

get/v1/forms/{id}scope: read

ParameterInTypeDescription
idrequiredpathstringForm id.
curl https://api.futuremail.dev/v1/forms/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Form — OK

Update a form

patch/v1/forms/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringForm id.

Body

FieldTypeDescription
namestringmax 100 chars
recipientsstring[]max 10
fromstring
allowedOriginsstring[]max 20
redirectUrlstring | null
requireChallengeboolean
turnstileSecretKeystring | nullA new secret key, or null to turn Turnstile off.
dailyLimitinteger1–10000
enabledboolean
curl -X PATCH https://api.futuremail.dev/v1/forms/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": false
}'

Returns 200 Form — OK

Delete a form

delete/v1/forms/{id}scope: full

ParameterInTypeDescription
idrequiredpathstringForm id.
curl -X DELETE https://api.futuremail.dev/v1/forms/<id> \
  -H "Authorization: Bearer $FUTUREMAIL_API_KEY"

Returns 200 Deleted — Deleted.

Objects

AddSuppressionsResult

FieldTypeDescription
addedrequiredSuppression[]
alreadySuppressedrequiredstring[]

Address

FieldTypeDescription
idrequiredstring
addressrequiredstring
localPartrequiredstring
domainIdrequiredstring
domainrequiredstring
mailboxIdrequiredstring
displayNamerequiredstring | null
createdAtrequiredISO date

AddressAvailability

FieldTypeDescription
availablerequiredboolean
reasonstring

AgentChannelUsage

FieldTypeDescription
periodStartrequiredISO date
periodEndrequiredISO date
agentsrequiredobject
channelOnlyAgentsrequiredinteger-9007199254740991–9007199254740991
fullAgentsrequiredinteger-9007199254740991–9007199254740991
messagesrequiredobject
crossOrgConnectionsrequiredobject
scansrequiredobject
agentsPausedrequiredboolean
restrictedrequiredobject | null

AgentEndpointCreated

FieldTypeDescription
webhookrequiredWebhook
verificationrequiredobject

AgentEndpointHeaders

FieldTypeDescription
webhookIdrequiredstring
namesrequiredstring[]

AgentEndpointUpdated

FieldTypeDescription
webhookrequiredWebhook
replayedrequiredinteger-9007199254740991–9007199254740991

AgentMessage

FieldTypeDescription
idrequiredstring
threadIdrequiredstring
mailboxIdrequiredstring
directionrequired"inbound" | "outbound"
fromrequiredobject
trustrequired"same_org" | "connected" | "external_a2a" | "email"
torequiredstring[]
subjectrequiredstring
textrequiredstring | null
datarequiredmap | null
richrequiredRichContent | null
attachmentsrequiredobject[]
inReplyTorequiredstring | null
expectsReplyrequiredboolean
hoprequiredinteger-9007199254740991–9007199254740991
deliveryStaterequired"queued" | "delivered" | "failed" | "expired" | "held"
ackedAtrequiredISO date | null
expiresAtrequiredISO date | null
scanrequiredobject
metadatarequiredmap | null
readrequiredboolean
createdAtrequiredISO date

AgentProvisioned

FieldTypeDescription
mailboxrequiredMailbox
addressrequiredAddress
apiKeyrequiredApiKeyWithSecret
keyNoticestring

ApiKey

FieldTypeDescription
idrequiredstring
namerequiredstring
prefixrequiredstringFirst characters of the key, e.g. "fm_live_3kd9".
scopesrequired("full" | "send" | "read")[]
mailboxIdrequiredstring | nullOnly this mailbox (agent keys).
domainIdrequiredstring | nullOnly send from addresses on this domain.
expiresAtrequiredISO date | null
createdByUserIdrequiredstring | null
oauthClientIdrequiredstring | nullSet when an app was connected through browser sign-in (OAuth). Delete the key to disconnect it.
lastUsedAtrequiredISO date | null
createdAtrequiredISO date

ApiKeyWithSecret

FieldTypeDescription
idrequiredstring
namerequiredstring
prefixrequiredstringFirst characters of the key, e.g. "fm_live_3kd9".
scopesrequired("full" | "send" | "read")[]
mailboxIdrequiredstring | nullOnly this mailbox (agent keys).
domainIdrequiredstring | nullOnly send from addresses on this domain.
expiresAtrequiredISO date | null
createdByUserIdrequiredstring | null
oauthClientIdrequiredstring | nullSet when an app was connected through browser sign-in (OAuth). Delete the key to disconnect it.
lastUsedAtrequiredISO date | null
createdAtrequiredISO date
keyrequiredstringThe full secret. Only returned once, at creation.

Attachment

FieldTypeDescription
idrequiredstring
filenamerequiredstring
contentTyperequiredstring
sizerequiredinteger-9007199254740991–9007199254740991
contentIdrequiredstring | null
inlinerequiredboolean
urlrequiredstringAPI path to download the file.
blockedrequiredbooleanThe message failed the virus scan: the file can't be downloaded.

AttachmentInput

FieldTypeDescription
filenamerequiredstring
contentstring
pathstring
contentTypestring
contentIdstringmax 255 chars

Billing

FieldTypeDescription
enabledrequiredbooleanFalse on servers without billing (local development).
planrequired"none" | "free" | "pro" | "max" | "ultra"
accessrequired"active" | "grace" | "inactive"active: everything the plan includes works (Free: a sandbox domain only). grace: the plan ended; sending and creating are blocked, inbound mail is accepted until graceEndsAt. inactive: no plan; inbound mail is rejected.
graceEndsAtrequiredISO date | null
complimentaryrequiredboolean
statusrequired"active" | "trialing" | "past_due" | "canceled" | "unpaid" | "incomplete" | "incomplete_expired" | "paused" | null
currentPeriodEndrequiredISO date | null
cancelAtPeriodEndrequiredboolean
cancelAtrequiredISO date | null
checkoutUrlrequiredstring | null
portalUrlrequiredstring | null
limitsrequiredobject
maxAddressesrequiredinteger | nullAddresses the org may have on its plan (1 on Free); null = unlimited. Orgs over it keep their addresses but can't add more until they upgrade.
contactEmailrequiredstringWhere to ask for more than the biggest plan.
receivingAddressIdsrequiredstring[] | nullIds of the org's sandbox addresses that receive mail (its oldest one, on every plan); other sandbox addresses are kept but don't receive. Covers sandbox addresses only: custom-domain addresses aren't listed and always receive. Null = every sandbox address receives (platform partner orgs).
plansrequiredobject[]
freerequiredobject | nullThe Free plan, when this server offers it.
subscribedPlanrequired"pro" | "max" | "ultra" | nullThe tier the running subscription is for; null without one.
afterCancelrequired"free" | "none"Where cancelling leads at the period end: Free, or no plan (team orgs, or Free not available).
selfServerequiredbooleanPlan changes happen in the app (POST /v1/billing/change) rather than the billing portal.
pendingChangerequiredobject | nullA downgrade or cancellation waiting for the period end.
scanTopUpUrlstring | null
scanTopUpUnitinteger-9007199254740991–9007199254740991
scanCreditsobject

ChannelCommitResult

FieldTypeDescription
committedrequiredtrue
clientIdrequiredstring
mailboxIdrequiredstring
cursorrequiredstring
advancedrequiredboolean
ackedrequiredinteger-9007199254740991–9007199254740991

ChannelConnection

FieldTypeDescription
idrequiredstring
mailboxIdrequiredstring
peerAddressrequiredstring
peerOrgIdrequiredstring | null
peerKindrequired"futuremail" | "external_a2a" | "email"
staterequired"requested" | "accepted" | "declined" | "blocked"
blockOrgrequiredboolean
ratePerHourrequiredinteger-9007199254740991–9007199254740991
acceptedByTyperequired"user" | "agent" | null
acceptedByIdrequiredstring | null
firstMessageIdrequiredstring | null
createdAtrequiredISO date
updatedAtrequiredISO date

ChannelQueueBatch

FieldTypeDescription
clientIdrequiredstring
messagesrequiredAgentMessage[]
cursorrequiredstring | null
hasMorerequiredboolean

ChannelThreadWithMessages

FieldTypeDescription
idrequiredstring
mailboxIdrequiredstring
subjectrequiredstring
snippetrequiredstring
participantsrequiredEmailAddress[]
messageCountrequiredinteger-9007199254740991–9007199254740991
unreadCountrequiredinteger-9007199254740991–9007199254740991
hasAttachmentsrequiredboolean
starredrequiredboolean
pinnedrequiredbooleanPinned to the top of the inbox.
statusrequired"inbox" | "archived" | "trash" | "spam"
lastMessageAtrequiredISO date
lastDirectionrequired"inbound" | "outbound"
lanerequired"attention" | "interest" | "notifications" | "reading" | "handled" | "noise" | "spam"Where the inbox (Lanes) shows it. Spam-folder threads are always spam.
laneSourcerequired"rules" | "ai" | "user"Who put it in its lane.
gistrequiredstring | nullA few words on what the conversation needs (AI sorting). Null when rules sorted it.
quickRepliesrequiredobject[]Suggested one-tap replies (AI sorting), at most two.
channel"email" | "agent"
pausedAtISO date | null
pausedReasonstring | null
taskState"none" | "submitted" | "working" | "input_required" | "completed" | "failed" | "canceled"
messagesrequiredAgentMessage[]

CheckSuppressionsResult

FieldTypeDescription
suppressedrequiredSuppression[]
notSuppressedrequiredstring[]

ConnectionActionResult

FieldTypeDescription
connectionrequiredChannelConnection
deliveredMessagerequiredAgentMessage | null

ConnectionPreviewResult

FieldTypeDescription
connectionrequiredChannelConnection
fromVerifiedrequiredboolean
scanVerdictrequiredstring
subjectrequiredstring | null
textrequiredstring | null
datarequiredmap | null
richrequiredRichContent | null

Deleted

FieldTypeDescription
deletedrequiredtrue

Discarded

FieldTypeDescription
discardedrequiredtrue
deletedrequiredtrue
idrequiredstring

DnsRecord

FieldTypeDescription
purposerequired"verification" | "dkim" | "mx" | "spf" | "mail_from_mx" | "mail_from_spf" | "dmarc" | "tracking"
typerequired"MX" | "TXT" | "CNAME"
namerequiredstringHost relative to the domain ("@" for the apex).
fqdnrequiredstring
valuerequiredstring
priorityinteger | null
statusrequired"pending" | "verified" | "failed"
descriptionrequiredstring
notestring | null
foundstring | nullThe live value in public DNS, when it's accepted but differs from value (e.g. a stricter DMARC policy).

Domain

FieldTypeDescription
idrequiredstring
namerequiredstring
sandboxrequiredbooleanA sandbox subdomain (e.g. myapp.fm-sandbox.dev): verified on creation, no DNS records, sends capped per day.
statusrequired"pending" | "verified" | "failed"
sendingEnabledrequiredbooleanDKIM verified: you can send as this domain.
receivingEnabledrequiredbooleanMX points at FutureMail: mail to this domain is received.
catchAllMailboxIdrequiredstring | null
recordsrequiredDnsRecord[]
warningsrequiredDomainWarning[]
addressCountrequiredinteger-9007199254740991–9007199254740991
createdAtrequiredISO date
verifiedAtrequiredISO date | null
lastCheckedAtrequiredISO date | null
mailFromSubdomainrequiredstring
tlsPolicyrequired"opportunistic" | "require"
openTrackingrequiredboolean
clickTrackingrequiredboolean
trackingSubdomainrequiredstring | null
trackingHostrequiredstring

DomainWarning

FieldTypeDescription
coderequired"mx_conflict" | "spf_missing" | "spf_incomplete" | "spf_multiple" | "dmarc_missing" | "leftover_dkim"
severityrequired"warning" | "info"
titlerequiredstring
detailrequiredstring
recordsobject[]
fixobject

EmailAddress

FieldTypeDescription
addressrequiredstring
namestring | null

EmailEvent

FieldTypeDescription
idrequiredstring
messageIdrequiredstring
typerequired"queued" | "scheduled" | "canceled" | "sent" | "delivery_delayed" | "delivered" | "bounced" | "complained" | "failed" | "suppressed" | "opened" | "clicked"
datarequiredmap | null
createdAtrequiredISO date

EmailTag

FieldTypeDescription
namerequiredstring
valuerequiredstring

EndpointVerifyResult

FieldTypeDescription
verifiedrequiredboolean
webhookrequiredWebhook
deliveryWebhookDelivery

Form

FieldTypeDescription
idrequiredstring
namerequiredstring
endpointrequiredstringPublic URL websites POST submissions to (no API key).
recipientsrequiredstring[]Your addresses that receive submissions.
fromrequiredstringYour address shown as the sender; Reply-To is the visitor's email field.
allowedOriginsrequiredstring[]Sites allowed to post (exact origins). Empty: any site.
redirectUrlrequiredstring | nullWhere plain HTML posts go after a successful submission (null: a hosted thank-you page).
requireChallengerequiredbooleanRequire the proof-of-work challenge (/f/forms.js solves it).
turnstilerequiredbooleanWhether a Cloudflare Turnstile secret key is set (the key is never returned).
dailyLimitrequiredinteger-9007199254740991–9007199254740991
enabledrequiredboolean
submissionsTodayrequiredinteger-9007199254740991–9007199254740991
lastSubmissionAtrequiredISO date | null
createdAtrequiredISO date

InboxAi

FieldTypeDescription
availablerequiredbooleanThe plan includes AI sorting (paid plans) and the server has inference configured.
settingrequiredbooleanThe org's setting. Kept through a downgrade, but ignored while unavailable.
activerequiredbooleanAI is sorting new mail now: setting on, available, and this month's cap not reached.
pendingrequiredbooleanTurned on before upgrading (afterUpgrade): starts by itself once the org is on a paid plan.
usagerequiredobject

LaneCounts

FieldTypeDescription
attentionrequiredobject
interestrequiredobject
notificationsrequiredobject
readingrequiredobject
handledrequiredobject
noiserequiredobject
spamrequiredobject

Mailbox

FieldTypeDescription
idrequiredstring
namerequiredstring
kindrequired"personal" | "agent"
descriptionrequiredstring | null
colorrequiredstring
primaryAddressrequiredstring | nullDefault From address when sending from this mailbox.
addressesrequiredstring[]
unreadCountrequiredinteger-9007199254740991–9007199254740991
signaturerequiredstring | null
createdAtrequiredISO date
channelOnlyboolean
inboundPolicy"open" | "connections" | "org" | "allowlist"
onlyOwnerCanAcceptboolean
allowliststring[]
deliveryPrefsobject
scanMode"default" | "off" | "label" | "hold"
pausedAtISO date | null
publicProfileobject | null

Me

FieldTypeDescription
limitsrequiredobject
billingrequiredBilling
userrequiredobject
orgrequiredobject
rolerequired"owner" | "admin" | "developer" | "viewer" | nullNull for API keys (their scopes apply instead).
orgsrequiredobject[]
onboardingrequiredobject
staffrequiredboolean
featuresrequiredobject
providerrequired"local" | "ses"
apiKeyobject | nullThe key making this request (null for browser sessions).
smtpobject
inboxAirequiredInboxAi

Message

FieldTypeDescription
idrequiredstring
threadIdrequiredstring
mailboxIdrequiredstring
directionrequired"inbound" | "outbound"
statusrequired"received" | "queued" | "scheduled" | "canceled" | "sent" | "delivery_delayed" | "delivered" | "bounced" | "complained" | "failed"
messageIdrequiredstringRFC 5322 Message-ID header, without angle brackets.
inReplyTorequiredstring | null
referencesrequiredstring[]
fromrequiredEmailAddress
torequiredEmailAddress[]
ccrequiredEmailAddress[]
bccrequiredEmailAddress[]
replyTorequiredEmailAddress[]
subjectrequiredstring
textrequiredstring | null
htmlrequiredstring | null
snippetrequiredstring
attachmentsrequiredAttachment[]
extractedrequiredobjectOne-time code and links found in the email (great for agents).
authenticationrequiredobject | nullInbound only: SPF/DKIM/DMARC, spam and virus verdicts.
readrequiredboolean
tagsrequiredEmailTag[]
scheduledAtrequiredISO date | null
richrequiredRichContent | nullSent with markdown / app / actions, or received from a sender that included rich content.
viewUrlrequiredstring | nullPublic page showing the rich content in a browser (outbound mail with an app or a diagram; other clients link to it).
daterequiredISO date
createdAtrequiredISO date
channel"email" | "agent"
hopinteger-9007199254740991–9007199254740991
ackedAtISO date | null
expiresAtISO date | null
scanobject | null
heldAtISO date | null
trust"same_org" | "connected" | "external_a2a" | "email" | null
fromVerifiedboolean
expectsReplyboolean
datamap | null
metadatamap | null
deliveryState"queued" | "delivered" | "failed" | "expired" | "held" | null

OrgAgentSettings

FieldTypeDescription
agentsPausedrequiredboolean
scanStrictrequiredboolean

PublicAgentProfileLookup

FieldTypeDescription
addressrequiredstring
namerequiredstring
profilerequiredobject

RenderedTemplate

FieldTypeDescription
subjectrequiredstring
htmlrequiredstring | null
textrequiredstring | null

RichContent

FieldTypeDescription
versionrequired1
markdownrequiredstring | nullGitHub-flavored Markdown; ```mermaid blocks are diagrams.
apprequiredobject | null
actionsrequiredobject[]

SandboxAvailability

FieldTypeDescription
availablerequiredboolean
reasonstring

SandboxSuggestion

FieldTypeDescription
namerequiredstring | null

SendChannelMessageResult

FieldTypeDescription
messagerequiredAgentMessage
deliveriesrequiredobject[]

SseTicketResponse

FieldTypeDescription
ticketrequiredstring
expiresAtrequiredISO date

Suppression

FieldTypeDescription
idrequiredstring
emailrequiredstring
reasonrequired"bounce" | "complaint" | "manual" | "unsubscribe"
sourceMessageIdrequiredstring | null
sourceThreadIdrequiredstring | null
detailsrequiredstring | null
createdByUserIdrequiredstring | null
createdAtrequiredISO date

Template

FieldTypeDescription
idrequiredstring
namerequiredstring
aliasrequiredstring | nullStable handle to send with instead of the id, e.g. "welcome".
statusrequired"draft" | "published"
publishedAtrequiredISO date | null
hasUnpublishedChangesrequiredboolean
createdAtrequiredISO date
updatedAtrequiredISO date
subjectrequiredstring
htmlrequiredstring | null
textrequiredstring | null
fromrequiredstring | null
replyTorequiredstring[]
variablesrequiredTemplateVariable[]

TemplateVariable

FieldTypeDescription
keyrequiredstringReferenced as {{key}} (HTML-escaped) or {{{key}}} (raw).
typerequired"string" | "number"
fallbackrequiredstring | number | null

Thread

FieldTypeDescription
idrequiredstring
mailboxIdrequiredstring
subjectrequiredstring
snippetrequiredstring
participantsrequiredEmailAddress[]
messageCountrequiredinteger-9007199254740991–9007199254740991
unreadCountrequiredinteger-9007199254740991–9007199254740991
hasAttachmentsrequiredboolean
starredrequiredboolean
pinnedrequiredbooleanPinned to the top of the inbox.
statusrequired"inbox" | "archived" | "trash" | "spam"
lastMessageAtrequiredISO date
lastDirectionrequired"inbound" | "outbound"
lanerequired"attention" | "interest" | "notifications" | "reading" | "handled" | "noise" | "spam"Where the inbox (Lanes) shows it. Spam-folder threads are always spam.
laneSourcerequired"rules" | "ai" | "user"Who put it in its lane.
gistrequiredstring | nullA few words on what the conversation needs (AI sorting). Null when rules sorted it.
quickRepliesrequiredobject[]Suggested one-tap replies (AI sorting), at most two.
channel"email" | "agent"
pausedAtISO date | null
pausedReasonstring | null
taskState"none" | "submitted" | "working" | "input_required" | "completed" | "failed" | "canceled"

ThreadWithMessages

FieldTypeDescription
idrequiredstring
mailboxIdrequiredstring
subjectrequiredstring
snippetrequiredstring
participantsrequiredEmailAddress[]
messageCountrequiredinteger-9007199254740991–9007199254740991
unreadCountrequiredinteger-9007199254740991–9007199254740991
hasAttachmentsrequiredboolean
starredrequiredboolean
pinnedrequiredbooleanPinned to the top of the inbox.
statusrequired"inbox" | "archived" | "trash" | "spam"
lastMessageAtrequiredISO date
lastDirectionrequired"inbound" | "outbound"
lanerequired"attention" | "interest" | "notifications" | "reading" | "handled" | "noise" | "spam"Where the inbox (Lanes) shows it. Spam-folder threads are always spam.
laneSourcerequired"rules" | "ai" | "user"Who put it in its lane.
gistrequiredstring | nullA few words on what the conversation needs (AI sorting). Null when rules sorted it.
quickRepliesrequiredobject[]Suggested one-tap replies (AI sorting), at most two.
channel"email" | "agent"
pausedAtISO date | null
pausedReasonstring | null
taskState"none" | "submitted" | "working" | "input_required" | "completed" | "failed" | "canceled"
messagesrequiredMessage[]

Webhook

FieldTypeDescription
idrequiredstring
urlrequiredstring
eventsrequired("email.received" | "email.scheduled" | "email.sent" | "email.delivery_delayed" | "email.delivered" | "email.bounced" | "email.complained" | "email.failed" | "email.suppressed" | "email.opened" | "email.clicked" | "domain.verified" | "channel.message.received" | "channel.message.delivered" | "channel.message.failed" | "channel.message.held" | "channel.message.released" | "channel.connection.requested" | "channel.connection.accepted" | "channel.endpoint.failing" | "channel.endpoint.disabled" | "channel.endpoint.verified")[]
enabledrequiredboolean
secretstringOnly on create: verifies the signature header.
mailboxIdstring | null
scheme"futuremail" | "standard_webhooks"
verifiedboolean
verifiedAtISO date | null
unverifiedboolean
failureCountinteger-9007199254740991–9007199254740991
failingSinceISO date | null
disabledAtISO date | null
disabledReasonstring | null
headerNamesstring[]
includeBodyboolean
lastDeliveryAtrequiredISO date | null
lastDeliveryStatusrequiredinteger | null
createdAtrequiredISO date

WebhookDelivery

FieldTypeDescription
idrequiredstring
webhookIdrequiredstring
eventIdrequiredstringStable across retries and replays: dedupe on it.
eventrequired"email.received" | "email.scheduled" | "email.sent" | "email.delivery_delayed" | "email.delivered" | "email.bounced" | "email.complained" | "email.failed" | "email.suppressed" | "email.opened" | "email.clicked" | "domain.verified" | "channel.message.received" | "channel.message.delivered" | "channel.message.failed" | "channel.message.held" | "channel.message.released" | "channel.connection.requested" | "channel.connection.accepted" | "channel.endpoint.failing" | "channel.endpoint.disabled" | "channel.endpoint.verified"
attemptrequiredinteger-9007199254740991–9007199254740991
statusCoderequiredinteger | null
successrequiredboolean
durationMsrequiredinteger | null
nextRetryAtrequiredISO date | null
createdAtrequiredISO date
payloadThe JSON body that was POSTed: { id, type, createdAt, data }.