Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Email settings — API reference

Email Settings beyond the preferences (`/mail/settings`): the signature each sending address uses for new mail and for replies, importing a SenderStudio design as a signature, a mailbox's blocked and safe senders (they run before the mailbox's rules), and the person's quick steps (several actions on a message in one go). Everything is the person's own, in this account only; a key that acts for no person is refused (403 `no_person`).

← All groups
GET /api/v1/mail/quick-steps

The person's quick steps

Scope: mail:read · paginated · mail.quick_steps

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage 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
quick_steps * [MailQuickStep]
fields

MailQuickStep

actions * [MailQuickStepAction]
fields

MailQuickStepAction

folder string move: a folder by name (instead of role)
label string label: the label's name (made when missing)
role "inbox" | "archive" | "spam" | "trash" move: a system folder
type * "move" | "archive" | "delete" | "mark_read" | "mark_unread" | "label" | "star" | "pin"
id * string (uuid)
inserted_at string (date-time)
name * string
position integer

401 Problem details (401)

403 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/mail/quick-steps

Create a quick step

At most 20 per person; 1 to 6 actions each.

Scope: mail:send · Idempotency-Key · mail.create_quick_step

Request body application/json
actions * [MailQuickStepAction]
fields

MailQuickStepAction

folder string move: a folder by name (instead of role)
label string label: the label's name (made when missing)
role "inbox" | "archive" | "spam" | "trash" move: a system folder
type * "move" | "archive" | "delete" | "mark_read" | "mark_unread" | "label" | "star" | "pin"
name * string
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

quick_step * MailQuickStep
fields

MailQuickStep

actions * [MailQuickStepAction]
fields

MailQuickStepAction

folder string move: a folder by name (instead of role)
label string label: the label's name (made when missing)
role "inbox" | "archive" | "spam" | "trash" move: a system folder
type * "move" | "archive" | "delete" | "mark_read" | "mark_unread" | "label" | "star" | "pin"
id * string (uuid)
inserted_at string (date-time)
name * string
position integer

401 Problem details (401)

402 Problem details (402)

403 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/mail/quick-steps/{id}

Delete a quick step

Scope: mail:send · mail.delete_quick_step

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PATCH /api/v1/mail/quick-steps/{id}

Change a quick step

Scope: mail:send · mail.update_quick_step

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
actions [MailQuickStepAction]
fields

MailQuickStepAction

folder string move: a folder by name (instead of role)
label string label: the label's name (made when missing)
role "inbox" | "archive" | "spam" | "trash" move: a system folder
type * "move" | "archive" | "delete" | "mark_read" | "mark_unread" | "label" | "star" | "pin"
name string
position integer
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

quick_step * MailQuickStep
fields

MailQuickStep

actions * [MailQuickStepAction]
fields

MailQuickStepAction

folder string move: a folder by name (instead of role)
label string label: the label's name (made when missing)
role "inbox" | "archive" | "spam" | "trash" move: a system folder
type * "move" | "archive" | "delete" | "mark_read" | "mark_unread" | "label" | "star" | "pin"
id * string (uuid)
inserted_at string (date-time)
name * string
position integer

401 Problem details (401)

402 Problem details (402)

403 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/mail/signature-defaults

The signature each sending address uses

Every address the person sends from (each mailbox's own address, `from: "mb:<mailbox id>"`, and its confirmed identities, `"id:<identity id>"`) with the signature that applies to new mail and to replies and forwards (`*_signature_id`, null for none) and what the person chose (`*_choice`: an id, `"none"`, or null when the mailbox's default applies). `placement`: the signature above or below the quoted text.

Scope: mail:read · mail.signature_defaults

Responses 200 · 401 · 403 · 429

200 Success

addresses * [MailSignatureDefault]
fields

MailSignatureDefault

address * string (email)
from * string "mb:<mailbox id>" or "id:<identity id>"
identity_id string | null
mailbox_id * string (uuid)
new_choice string | null The person's choice: an id, "none", or null (the mailbox's default)
new_signature_id string | null The signature new mail gets (null: none)
reply_choice string | null
reply_signature_id string | null The signature replies and forwards get (null: none)
placement "above" | "below"

401 Problem details (401)

403 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

PUT /api/v1/mail/signature-defaults

Choose an address's signatures

`new` and/or `reply`: one of the person's signatures in that mailbox, `"none"`, or null (back to the mailbox's default). Compose uses it, and switches it when the From changes.

Scope: mail:send · mail.put_signature_default

Request body application/json
from * string "mb:<mailbox id>" or "id:<identity id>"
new string | null A signature id, "none", or null for the mailbox's default
reply string | null A signature id, "none", or null for the mailbox's default
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

address * MailSignatureDefault
fields

MailSignatureDefault

address * string (email)
from * string "mb:<mailbox id>" or "id:<identity id>"
identity_id string | null
mailbox_id * string (uuid)
new_choice string | null The person's choice: an id, "none", or null (the mailbox's default)
new_signature_id string | null The signature new mail gets (null: none)
reply_choice string | null
reply_signature_id string | null The signature replies and forwards get (null: none)

401 Problem details (401)

402 Problem details (402)

403 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/mailboxes/{mailbox_id}/senders

A mailbox's blocked and safe senders

Blocked senders' mail goes to Spam (or Trash) and no rule or vacation reply runs on it; safe senders' mail is never moved to Spam. A domain covers its subdomains; the most specific entry wins.

Scope: mail:read · paginated · mail.senders

ParameterInTypeDescription
mailbox_id *pathstring (uuid)
listquery"blocked" | "safe"
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage 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
senders * [MailSender]
fields

MailSender

action "spam" | "delete" | nil
hits integer Messages it has matched
id * string (uuid)
inserted_at string (date-time)
last_hit_at string | null
list * "blocked" | "safe"
match "address" | "domain"
value * string

401 Problem details (401)

403 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/mailboxes/{mailbox_id}/senders

Block a sender or mark one safe

`value`: an address or a domain (`example.com`, `@example.com`). Adding a value that is on the other list moves it. Needs the right to manage the mailbox (a personal mailbox's owner). 422 `invalid_sender` when the value is neither.

Scope: mail:send · Idempotency-Key · mail.add_sender

ParameterInTypeDescription
mailbox_id *pathstring (uuid)
Request body application/json
action "spam" | "delete" Blocked only: to Spam (default) or to Trash
list * "blocked" | "safe"
value * string
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429

201 Success

sender * MailSender
fields

MailSender

action "spam" | "delete" | nil
hits integer Messages it has matched
id * string (uuid)
inserted_at string (date-time)
last_hit_at string | null
list * "blocked" | "safe"
match "address" | "domain"
value * string

401 Problem details (401)

402 Problem details (402)

403 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/mailboxes/{mailbox_id}/senders/{id}

Take a sender off the lists

Scope: mail:send · mail.delete_sender

ParameterInTypeDescription
mailbox_id *pathstring (uuid)
id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/mailboxes/{mailbox_id}/signatures/import

Import a SenderStudio design as a signature

A SenderStudio design (`GET /api/v1/studio/designs?kind=signature`) becomes one of the person's signatures in the mailbox (404 when the person can't see it). The same as `POST /api/v1/studio/designs/{id}/use-as-signature`.

Scope: mail:send · Idempotency-Key · mail.import_design

ParameterInTypeDescription
mailbox_id *pathstring (uuid)
Request body application/json
design_id * 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 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/messages/{id}/quick-steps/{step_id}

Run a quick step on a message

Runs the actions in order (moves last). Needs the right to organize the message's mailbox; sign-in and security mail is refused.

Scope: mail:send · Idempotency-Key · mail.run_quick_step

ParameterInTypeDescription
id *pathstring (uuid)
step_id *pathstring (uuid)The quick step
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 no_person — the key acts for no person; forbidden — not allowed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)