Mail hub — API reference
Rules and Sieve, vacation, forwarding, labels, identities, signatures, delegates, shared-inbox threads and notes, snooze, undo send, recall, tracking, read receipts, templates and mail settings (docs/mail.md).
← All groups
GET
/api/v1/mail/settings
The person's mail settings
Scope: mail:read
· mail.settings
Responses 200 · 401 · 403 · 429
200 Success
choices
object
Each setting → its allowed values
settings *
MailSettings
fields
MailSettings
attachments_as
"file" | "link"
Compose's attached files go as files, or as Burmeel links
categories
boolean
The inbox's Primary / Promotions / Social / Updates / Forums tabs
compose_font
"default" | "sans" | "serif" | "mono" | "arial" | "georgia" | "verdana" | "times" | "courier"
Compose's default font (and the sent message's)
compose_size
"small" | "normal" | "large" | "huge"
Compose's default text size
confirm_missing_attachment
boolean
Ask before sending when the text mentions an attachment and there is none
confirm_no_subject
boolean
Ask before sending without a subject
conversation_view
boolean
copy_myself
"none" | "cc" | "bcc"
Always Cc or Bcc myself
default_reply
"reply" | "reply_all"
The reader's main reply button
density
"comfortable" | "compact"
The message list's row height
images_from
[string (email)]
Senders whose remote images are always shown
new_mail_notify
"all" | "important" | "off"
New-mail notifications in the app and by push (the Notification Hub's mail_received and mail_important rows)
page_size
integer
Messages per page: 25, 50 or 100
read_receipts
"ask" | "always" | "never"
Answering requests
reading_pane
"right" | "below" | "off"
Where an opened message shows
request_read_receipts
boolean
shortcuts
boolean
Keyboard shortcuts in the mail view (? lists them)
signature_defaults
object
Read only here (PUT /mail/signature-defaults changes it): sending address → {new, reply}
signature_placement
"above" | "below"
The signature above or below the quoted text in replies
snooze_evening
string
HH:MM — the snooze menu's evening (This evening)
snooze_morning
string
HH:MM — the snooze menu's morning (Tomorrow, Next week)
sound
boolean
A sound with new-mail notifications in the browser
swipe_left
"archive" | "delete" | "mark_read" | "snooze" | "none"
Swiping a row left on a touch screen
swipe_right
"archive" | "delete" | "mark_read" | "snooze" | "none"
Swiping a row right on a touch screen
undo_send_seconds
integer
0, 5, 10, 20 or 30
undo_send_choices
[integer]
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
Example
PUT
/api/v1/mail/settings
Change the person's mail settings
Only the fields given change; unknown fields are ignored. An Email Settings field with a value that isn't allowed refuses the change (422 `invalid`, `fields` names it). `new_mail_notify` sets the Notification Hub's new-mail rows. Needs a person (not an account-wide key).
Scope: mail:send
· mail.update_settings
Request body application/json
MailSettings
attachments_as
"file" | "link"
Compose's attached files go as files, or as Burmeel links
categories
boolean
The inbox's Primary / Promotions / Social / Updates / Forums tabs
compose_font
"default" | "sans" | "serif" | "mono" | "arial" | "georgia" | "verdana" | "times" | "courier"
Compose's default font (and the sent message's)
compose_size
"small" | "normal" | "large" | "huge"
Compose's default text size
confirm_missing_attachment
boolean
Ask before sending when the text mentions an attachment and there is none
confirm_no_subject
boolean
Ask before sending without a subject
conversation_view
boolean
copy_myself
"none" | "cc" | "bcc"
Always Cc or Bcc myself
default_reply
"reply" | "reply_all"
The reader's main reply button
density
"comfortable" | "compact"
The message list's row height
images_from
[string (email)]
Senders whose remote images are always shown
new_mail_notify
"all" | "important" | "off"
New-mail notifications in the app and by push (the Notification Hub's mail_received and mail_important rows)
page_size
integer
Messages per page: 25, 50 or 100
read_receipts
"ask" | "always" | "never"
Answering requests
reading_pane
"right" | "below" | "off"
Where an opened message shows
request_read_receipts
boolean
shortcuts
boolean
Keyboard shortcuts in the mail view (? lists them)
signature_defaults
object
Read only here (PUT /mail/signature-defaults changes it): sending address → {new, reply}
signature_placement
"above" | "below"
The signature above or below the quoted text in replies
snooze_evening
string
HH:MM — the snooze menu's evening (This evening)
snooze_morning
string
HH:MM — the snooze menu's morning (Tomorrow, Next week)
sound
boolean
A sound with new-mail notifications in the browser
swipe_left
"archive" | "delete" | "mark_read" | "snooze" | "none"
Swiping a row left on a touch screen
swipe_right
"archive" | "delete" | "mark_read" | "snooze" | "none"
Swiping a row right on a touch screen
undo_send_seconds
integer
0, 5, 10, 20 or 30
Responses 200 · 401 · 402 · 403 · 422 · 429
200 Success
settings *
MailSettings
fields
MailSettings
attachments_as
"file" | "link"
Compose's attached files go as files, or as Burmeel links
categories
boolean
The inbox's Primary / Promotions / Social / Updates / Forums tabs
compose_font
"default" | "sans" | "serif" | "mono" | "arial" | "georgia" | "verdana" | "times" | "courier"
Compose's default font (and the sent message's)
compose_size
"small" | "normal" | "large" | "huge"
Compose's default text size
confirm_missing_attachment
boolean
Ask before sending when the text mentions an attachment and there is none
confirm_no_subject
boolean
Ask before sending without a subject
conversation_view
boolean
copy_myself
"none" | "cc" | "bcc"
Always Cc or Bcc myself
default_reply
"reply" | "reply_all"
The reader's main reply button
density
"comfortable" | "compact"
The message list's row height
images_from
[string (email)]
Senders whose remote images are always shown
new_mail_notify
"all" | "important" | "off"
New-mail notifications in the app and by push (the Notification Hub's mail_received and mail_important rows)
page_size
integer
Messages per page: 25, 50 or 100
read_receipts
"ask" | "always" | "never"
Answering requests
reading_pane
"right" | "below" | "off"
Where an opened message shows
request_read_receipts
boolean
shortcuts
boolean
Keyboard shortcuts in the mail view (? lists them)
signature_defaults
object
Read only here (PUT /mail/signature-defaults changes it): sending address → {new, reply}
signature_placement
"above" | "below"
The signature above or below the quoted text in replies
snooze_evening
string
HH:MM — the snooze menu's evening (This evening)
snooze_morning
string
HH:MM — the snooze menu's morning (Tomorrow, Next week)
sound
boolean
A sound with new-mail notifications in the browser
swipe_left
"archive" | "delete" | "mark_read" | "snooze" | "none"
Swiping a row left on a touch screen
swipe_right
"archive" | "delete" | "mark_read" | "snooze" | "none"
Swiping a row right on a touch screen
undo_send_seconds
integer
0, 5, 10, 20 or 30
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/mailboxes/{mailbox_id}/delegates
A mailbox's delegates
For whoever may delegate or manage the mailbox.
Scope: mail:read
· paginated
· mail.delegates
Parameter In Type Description
mailbox_id * path string (uuid) cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 404 · 429
200 Success
delegates *
[MailDelegate]
fields
MailDelegate
email
string | null
granted_by_id
string | null
level
"read" | "send_on_behalf" | "send_as" | "manage"
name
string | null
since
string (date-time)
user_id
string (uuid)
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
DELETE
/api/v1/mailboxes/{mailbox_id}/delegates/{user_id}
Remove a delegate
Scope: mail:send
· mail.delete_delegate
Parameter In Type Description
mailbox_id * path string (uuid) user_id * path string (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
PUT
/api/v1/mailboxes/{mailbox_id}/delegates/{user_id}
Grant or change a delegate
The user must be an active member of the account.
Scope: mail:send
· mail.put_delegate
Parameter In Type Description
mailbox_id * path string (uuid) user_id * path string (uuid)
Request body application/json
level
"read" | "send_on_behalf" | "send_as" | "manage"
Default read
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
delegate *
MailDelegate
fields
MailDelegate
email
string | null
granted_by_id
string | null
level
"read" | "send_on_behalf" | "send_as" | "manage"
name
string | null
since
string (date-time)
user_id
string (uuid)
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/mailboxes/{mailbox_id}/forwarding
Forwarding addresses (confirmed or pending)
Scope: mail:read
· paginated
· mail.forwarding
Parameter In Type Description
mailbox_id * path string (uuid) cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 404 · 429
200 Success
addresses *
[MailForwardAddress]
fields
MailForwardAddress
address
string (email)
confirmed
boolean
confirmed_at
string | null
sent_at
string | null
valid_until
string | null
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/forwarding
Add a forwarding address
Sends a confirmation to the address; rules forward only to confirmed addresses.
Scope: mail:send
· Idempotency-Key
· mail.add_forwarding
Parameter In Type Description
mailbox_id * path string (uuid)
Request body application/json
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429
201 Success
address *
MailForwardAddress
fields
MailForwardAddress
address
string (email)
confirmed
boolean
confirmed_at
string | null
sent_at
string | null
valid_until
string | null
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/mailboxes/{mailbox_id}/identities
A mailbox's send-as identities
Scope: mail:read
· paginated
· mail.identities
Parameter In Type Description
mailbox_id * path string (uuid) cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 404 · 429
200 Success
has_more
boolean
identities *
[MailIdentity]
fields
MailIdentity
address
string (email)
display_name
string | null
dmarc_policy
string | null
id *
string (uuid)
kind
string
reply_to
string | null
signature_id
string | null
status
string
pending | verified …
usable
boolean
May be sent as
valid_until
string | null
verified_at
string | null
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/identities
Add a send-as identity
An alias or an address on a verified domain of the account is verified at once; an external address gets a confirmation code to its owner and can send once confirmed. Needs the right to manage the mailbox.
Scope: mail:send
· Idempotency-Key
· mail.create_identity
Parameter In Type Description
mailbox_id * path string (uuid)
Request body application/json
address *
string (email)
display_name
string
reply_to
string (email)
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429
201 Success
identity *
MailIdentity
fields
MailIdentity
address
string (email)
display_name
string | null
dmarc_policy
string | null
id *
string (uuid)
kind
string
reply_to
string | null
signature_id
string | null
status
string
pending | verified …
usable
boolean
May be sent as
valid_until
string | null
verified_at
string | null
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
DELETE
/api/v1/mailboxes/{mailbox_id}/identities/{id}
Revoke an identity
Scope: mail:send
· mail.delete_identity
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/identities/{id}/confirm
Confirm an identity with its code
Scope: mail:send
· Idempotency-Key
· mail.confirm_identity
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Request body application/json
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
identity *
MailIdentity
fields
MailIdentity
address
string (email)
display_name
string | null
dmarc_policy
string | null
id *
string (uuid)
kind
string
reply_to
string | null
signature_id
string | null
status
string
pending | verified …
usable
boolean
May be sent as
valid_until
string | null
verified_at
string | null
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/identities/{id}/resend
Resend an identity's confirmation
Scope: mail:send
· Idempotency-Key
· mail.resend_identity
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
identity *
MailIdentity
fields
MailIdentity
address
string (email)
display_name
string | null
dmarc_policy
string | null
id *
string (uuid)
kind
string
reply_to
string | null
signature_id
string | null
status
string
pending | verified …
usable
boolean
May be sent as
valid_until
string | null
verified_at
string | null
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/mailboxes/{mailbox_id}/labels
A mailbox's labels
Scope: mail:read
· paginated
· mail.labels
Parameter In Type Description
mailbox_id * path string (uuid) cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 404 · 429
200 Success
has_more
boolean
labels *
[MailLabel]
fields
MailLabel
color
string | null
id *
string (uuid)
name
string
position
integer
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/labels
Create a label
Scope: mail:send
· Idempotency-Key
· mail.create_label
Parameter In Type Description
mailbox_id * path string (uuid)
Request body application/json
color
string
name *
string
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429
201 Success
label *
MailLabel
fields
MailLabel
color
string | null
id *
string (uuid)
name
string
position
integer
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
DELETE
/api/v1/mailboxes/{mailbox_id}/labels/{id}
Delete a label
Scope: mail:send
· mail.delete_label
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
PATCH
/api/v1/mailboxes/{mailbox_id}/labels/{id}
Change a label
Scope: mail:send
· mail.update_label
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Request body application/json
color
string
name
string
position
integer
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
label *
MailLabel
fields
MailLabel
color
string | null
id *
string (uuid)
name
string
position
integer
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/mailboxes/{mailbox_id}/rules
A mailbox's rules, in order
A mailbox the person may open; a personal mailbox is its owner's only (and their delegates').
Scope: mail:read
· paginated
· mail.rules
Parameter In Type Description
mailbox_id * path string (uuid) cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 404 · 429
200 Success
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
rules *
[MailRule]
fields
MailRule
actions
[object]
conditions
[object]
enabled
boolean
id *
string (uuid)
inserted_at
string (date-time)
last_matched_at
string | null
match
"all" | "any"
matches
integer
name
string
position
integer
stop
boolean
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/rules
Create a rule
Scope: mail:send
· Idempotency-Key
· mail.create_rule
Parameter In Type Description
mailbox_id * path string (uuid)
Request body application/json
actions
[object]
conditions
[object]
enabled
boolean
match
"all" | "any"
How conditions combine
name
string
stop
boolean
Stop processing later rules
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429
201 Success
rule *
MailRule
fields
MailRule
actions
[object]
conditions
[object]
enabled
boolean
id *
string (uuid)
inserted_at
string (date-time)
last_matched_at
string | null
match
"all" | "any"
matches
integer
name
string
position
integer
stop
boolean
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/mailboxes/{mailbox_id}/rules.sieve
Export the rules as a Sieve script
Needs the right to manage the mailbox. Answered as `application/sieve` text.
Scope: mail:read
· mail.export_sieve
Parameter In Type Description
mailbox_id * path string (uuid)
Responses 200 · 401 · 403 · 404 · 429
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/rules.sieve
Import rules from a Sieve script
Scope: mail:send
· Idempotency-Key
· mail.import_sieve
Parameter In Type Description
mailbox_id * path string (uuid)
Request body application/json
script *
string
Sieve script
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429
201 Success
rules *
[MailRule]
fields
MailRule
actions
[object]
conditions
[object]
enabled
boolean
id *
string (uuid)
inserted_at
string (date-time)
last_matched_at
string | null
match
"all" | "any"
matches
integer
name
string
position
integer
stop
boolean
skipped
[any]
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
PUT
/api/v1/mailboxes/{mailbox_id}/rules/order
Reorder a mailbox's rules
Scope: mail:send
· mail.reorder_rules
Parameter In Type Description
mailbox_id * path string (uuid)
Request body application/json
ids *
[string (uuid)]
Every rule id, in the new order
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
rules *
[MailRule]
fields
MailRule
actions
[object]
conditions
[object]
enabled
boolean
id *
string (uuid)
inserted_at
string (date-time)
last_matched_at
string | null
match
"all" | "any"
matches
integer
name
string
position
integer
stop
boolean
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
DELETE
/api/v1/mailboxes/{mailbox_id}/rules/{id}
Delete a rule
Scope: mail:send
· mail.delete_rule
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
PATCH
/api/v1/mailboxes/{mailbox_id}/rules/{id}
Change a rule
Scope: mail:send
· mail.update_rule
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Request body application/json
actions
[object]
conditions
[object]
enabled
boolean
match
"all" | "any"
How conditions combine
name
string
stop
boolean
Stop processing later rules
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
rule *
MailRule
fields
MailRule
actions
[object]
conditions
[object]
enabled
boolean
id *
string (uuid)
inserted_at
string (date-time)
last_matched_at
string | null
match
"all" | "any"
matches
integer
name
string
position
integer
stop
boolean
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/rules/{id}/apply
Run a rule on mail already in a folder
Never forwards or auto-replies when run on existing mail.
Scope: mail:send
· Idempotency-Key
· mail.apply_rule
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Request body application/json
folder_id
string (uuid)
The folder to run on (default: the Inbox)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
matched *
integer
Messages the rule matched
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/mailboxes/{mailbox_id}/signatures
The person's signatures for a mailbox
Scope: mail:read
· paginated
· mail.signatures
Parameter In Type Description
mailbox_id * path string (uuid) cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 404 · 429
200 Success
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
signatures *
[MailSignature]
fields
MailSignature
default_new
boolean
default_reply
boolean
html_body
string | null
id *
string (uuid)
name
string
text_body
string | null
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/signatures
Create a signature
Scope: mail:send
· Idempotency-Key
· mail.create_signature
Parameter In Type Description
mailbox_id * path string (uuid)
Request body application/json
default_new
boolean
default_reply
boolean
html_body
string
name
string
text_body
string
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429
201 Success
signature *
MailSignature
fields
MailSignature
default_new
boolean
default_reply
boolean
html_body
string | null
id *
string (uuid)
name
string
text_body
string | null
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
DELETE
/api/v1/mailboxes/{mailbox_id}/signatures/{id}
Delete a signature
Scope: mail:send
· mail.delete_signature
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
PATCH
/api/v1/mailboxes/{mailbox_id}/signatures/{id}
Change a signature
Scope: mail:send
· mail.update_signature
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Request body application/json
default_new
boolean
default_reply
boolean
html_body
string
name
string
text_body
string
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
signature *
MailSignature
fields
MailSignature
default_new
boolean
default_reply
boolean
html_body
string | null
id *
string (uuid)
name
string
text_body
string | null
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/mailboxes/{mailbox_id}/threads
A shared mailbox's conversations
Scope: mail:read
· paginated
· mail.threads
Parameter In Type Description
mailbox_id * path string (uuid) assignee query string A user id, `me` or `none` status query "open" | "pending" | "done" cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 404 · 429
200 Success
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
threads *
[MailThread]
fields
MailThread
assigned_at
string | null
assignee_id
string | null
id *
string (uuid)
last_message_at
string | null
message_count
integer
participants
[any]
snippet
string | null
status
"open" | "pending" | "done"
status_changed_at
string | null
subject
string | null
unread_count
integer
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
PATCH
/api/v1/mailboxes/{mailbox_id}/threads/{id}
Assign a conversation or change its status
Shared mailboxes only; `assignee_id: null` unassigns.
Scope: mail:send
· mail.update_thread
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Request body application/json
assignee_id
string | null
status
"open" | "pending" | "done"
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
thread *
MailThread
fields
MailThread
assigned_at
string | null
assignee_id
string | null
id *
string (uuid)
last_message_at
string | null
message_count
integer
participants
[any]
snippet
string | null
status
"open" | "pending" | "done"
status_changed_at
string | null
subject
string | null
unread_count
integer
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/mailboxes/{mailbox_id}/threads/{id}/notes
A conversation's internal notes
Scope: mail:read
· paginated
· mail.notes
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid) cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 404 · 429
200 Success
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
notes *
[MailNote]
fields
MailNote
at
string (date-time)
author
string | null
body
string
body_text
string
id *
string (uuid)
user_id
string (uuid)
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/threads/{id}/notes
Add an internal note to a conversation
Scope: mail:send
· Idempotency-Key
· mail.create_note
Parameter In Type Description
mailbox_id * path string (uuid) id * path string (uuid)
Request body application/json
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429
201 Success
note *
MailNote
fields
MailNote
at
string (date-time)
author
string | null
body
string
body_text
string
id *
string (uuid)
user_id
string (uuid)
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/mailboxes/{mailbox_id}/trash/empty
Empty a mailbox's Trash
Deletes everything in Trash except what a legal hold keeps.
Scope: mail:send
· Idempotency-Key
· mail.empty_trash
Parameter In Type Description
mailbox_id * path string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
deleted *
integer
held *
integer
Kept by a legal hold
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/mailboxes/{mailbox_id}/vacation
The vacation responder
Scope: mail:read
· mail.vacation
Parameter In Type Description
mailbox_id * path string (uuid)
Responses 200 · 401 · 403 · 404 · 429
200 Success
active *
boolean
Replying right now
vacation
MailVacation | null
fields
MailVacation
body
string
days
integer
Days between replies to one sender
enabled
boolean
ends_at
string | null
starts_at
string | null
subject
string
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
PUT
/api/v1/mailboxes/{mailbox_id}/vacation
Turn the vacation responder on or off
Needs the right to manage the mailbox.
Scope: mail:send
· mail.update_vacation
Parameter In Type Description
mailbox_id * path string (uuid)
Request body application/json
MailVacation
body
string
days
integer
Days between replies to one sender
enabled
boolean
ends_at
string | null
starts_at
string | null
subject
string
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
active *
boolean
vacation
MailVacation | null
fields
MailVacation
body
string
days
integer
Days between replies to one sender
enabled
boolean
ends_at
string | null
starts_at
string | null
subject
string
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
PUT
/api/v1/messages/{id}/labels
Add or remove a message's labels, star or pin
Label ids not of this mailbox are ignored.
Scope: mail:send
· mail.put_labels
Parameter In Type Description
id * path string (uuid)
Request body application/json
add
[string (uuid)]
flagged
boolean
pinned
boolean
remove
[string (uuid)]
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
message *
MailHubMessage
fields
MailHubMessage
MailHubMessage
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/messages/{id}/read-receipt
Answer a sender's read-receipt request
Scope: mail:send
· Idempotency-Key
· mail.read_receipt
Parameter In Type Description
id * path string (uuid)
Request body application/json
send *
boolean
true sends the receipt, false declines
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
result
"sent" | "declined" | "none"
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/messages/{id}/recall
Recall a sent message
Removes copies delivered to Record Sender mailboxes and not yet read (unless a legal hold keeps them); mail that left for other servers cannot be recalled.
Scope: mail:send
· Idempotency-Key
· mail.recall
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
results *
object
Recipient → recalled | already_read | not_supported | legal_hold | not_found
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
DELETE
/api/v1/messages/{id}/snooze
Stop snoozing a message
Scope: mail:send
· mail.unsnooze
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
message *
MailHubMessage
fields
MailHubMessage
MailHubMessage
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/messages/{id}/snooze
Snooze a message
The message waits in Snoozed, then returns to where it was as unread.
Scope: mail:send
· Idempotency-Key
· mail.snooze
Parameter In Type Description
id * path string (uuid)
Request body application/json
until *
string (date-time)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
message *
MailHubMessage
fields
MailHubMessage
MailHubMessage
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/messages/{id}/tracking
A sent message's delivery timeline and clicks
Scope: mail:read
· mail.tracking
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 403 · 404 · 429
200 Success
click_tracking
boolean
links
[object]
fields
clicks
integer
recipients
integer
url
string (uri)
message_id
string (uuid)
read_receipt
string | null
recipients
[object]
fields
events
[object]
fields
at
string (date-time)
detail
string | null
status
string
recipient
string (email)
status
string
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/messages/{id}/undo
Undo a send while its undo window is open
The message goes back to Drafts; 422 `not_undoable` once it has left.
Scope: mail:send
· Idempotency-Key
· mail.undo
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
message *
MailMessage
fields
MailMessage
cc
[string]
channel
string | null
direction
"inbound" | "outbound" | "internal"
flagged
boolean
from_address
string (email)
from_name
string | null
id *
string (uuid)
message_id
string
The RFC 5322 Message-ID
received_at
string | null
scheduled_at
string | null
seen
boolean
sent_at
string | null
snippet
string
The start of the text body
status
string
draft | queued | scheduled | sent | received | failed …
subject
string | null
thread_id
string | null
to
[string]
verification
object | null
Recipient address → verification result
undone *
boolean
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
The person's and the account's shared templates
The template library every message box's media header opens (docs/mail.md "Media header"): the person's own and the account's shared templates, by name. `q` keeps those whose name, subject or text holds every word. A rich box inserts `body` (and an empty subject takes `subject`); a chat or plain-text box inserts `text`.
Scope: mail:read
· paginated
· mail.templates
Parameter In Type Description
q query string Search words (name, subject, text) cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 429
200 Success
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
templates *
[MailTemplate]
fields
MailTemplate
body
string | null
Rich text (sanitised); may hold `{{field}}` placeholders
id *
string (uuid)
name
string
shared
boolean
subject
string | null
text
string
The body as plain text (chat and plain-text boxes insert this)
updated_at
string | null
user_id
string | null
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
Example
Save a template
Scope: mail:send
· Idempotency-Key
· mail.create_template
Request body application/json
body
string
May hold `{{field}}` placeholders
name *
string
shared
boolean
Shared with the account
subject
string
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429
201 Success
template *
MailTemplate
fields
MailTemplate
body
string | null
Rich text (sanitised); may hold `{{field}}` placeholders
id *
string (uuid)
name
string
shared
boolean
subject
string | null
text
string
The body as plain text (chat and plain-text boxes insert this)
updated_at
string | null
user_id
string | null
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
DELETE
/api/v1/templates/{id}
Delete a template
Scope: mail:send
· mail.delete_template
Parameter In Type Description
id * path string (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example