Assistant — API reference
The AI email assistant: summaries, reply drafts, rewrites, extracted commitments, agent proposals a person approves, and notifications (docs/assistant.md).
← All groups
GET
/api/v1/assistant/commitments
The person's commitments
Scope: mail:read
· paginated
· assistant.commitments
Parameter In Type Description
status query "open" | "done" | "dismissed" Default open message_id query string (uuid) Only from this message limit query integer Default 200, at most 500 cursor query string The `next_cursor` of the previous page
Responses 200 · 401 · 403 · 429
200 Success
commitments *
[AssistantCommitment]
fields
AssistantCommitment
ai
boolean
brain_item_id
string | null
created_at
string (date-time)
direction
string | null
done_at
string | null
due_at
string | null
engine
string | null
id *
string (uuid)
kind
"commitment" | "decision" | "deadline" | "meeting_request" | "action_item"
mailbox_id
string (uuid)
message_id
string | null
private
boolean
snoozed_until
string | null
source
string
status
"open" | "done" | "dismissed"
text
string
thread_id
string | null
updated_at
string (date-time)
verified
boolean
who
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)
429 Problem details (429)
Example
PATCH
/api/v1/assistant/commitments/{id}
Complete, dismiss, snooze or re-date a commitment
One change per call, checked in this order: `status`, `snoozed_until`, `due_at` (null clears it).
Scope: mail:send
· assistant.update_commitment
Parameter In Type Description
id * path string (uuid)
Request body application/json
due_at
string | null
snoozed_until
string (date-time)
status
"open" | "done" | "dismissed"
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
commitment *
AssistantCommitment
fields
AssistantCommitment
ai
boolean
brain_item_id
string | null
created_at
string (date-time)
direction
string | null
done_at
string | null
due_at
string | null
engine
string | null
id *
string (uuid)
kind
"commitment" | "decision" | "deadline" | "meeting_request" | "action_item"
mailbox_id
string (uuid)
message_id
string | null
private
boolean
snoozed_until
string | null
source
string
status
"open" | "done" | "dismissed"
text
string
thread_id
string | null
updated_at
string (date-time)
verified
boolean
who
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
POST
/api/v1/assistant/draft
Draft a reply (saved as a draft, never sent)
Writes a reply from the thread and the brain context the person may see, signs it with the reply signature and saves it in Drafts.
Scope: mail:send
· uses AI credits
· Idempotency-Key
· assistant.draft
Request body application/json
instruction
string
What to say (for `custom`)
intent
"accept" | "decline" | "ask_info" | "follow_up" | "custom"
length
"short" | "medium" | "long"
message_id *
string (uuid)
The message to reply to
reply_all
boolean
tone
"neutral" | "friendly" | "formal" | "brief"
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429 · 503
201 Success
ai
boolean
citations
[any]
credits
number | null
draft *
object
fields
cc
[string]
id
string (uuid)
status
string
subject
string | null
text_body
string | null
to
[string]
engine
string
text
string
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
503 No AI provider is available
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>)
Example
GET
/api/v1/assistant/notifications
The person's in-app notifications
Empty for a credential without a person.
Scope: mail:read
· paginated
· assistant.notifications
Parameter In Type Description
unread query boolean Only unread ones 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
notifications *
[AssistantNotification]
fields
AssistantNotification
actor
object | null
fields
id
string | null
name
string | null
body
string | null
category
string | null
channels
[string]
count
integer
created_at
string (date-time)
data
object | null
group_key
string | null
id *
string (uuid)
kind
string
link
string | null
mute_keys
[string]
priority
string | null
privacy
string | null
read_at
string | null
subject
object | null
fields
id
string (uuid)
type
string
title
string
type
string
updated_at
string (date-time)
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
Example
POST
/api/v1/assistant/notifications/read
Mark notifications read
Scope: mail:send
· Idempotency-Key
· assistant.read_notifications
Request body application/json
id
string (uuid)
One notification (default: all)
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429
200 Success
read *
integer
How many were marked
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
GET
/api/v1/assistant/proposals
Agent proposals the person can see
Scope: mail:read
· paginated
· assistant.proposals
Parameter In Type Description
status query string pending, approved, executed, rejected, expired or all (default) mailbox_id query string (uuid) limit query integer Default 100, at most 500 cursor query string The `next_cursor` of the previous page
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
proposals *
[AssistantProposal]
fields
AssistantProposal
action
string
agent
string | null
created_at
string (date-time)
decided_at
string | null
decided_by_id
string | null
edited
boolean
error
any | null
executed_at
string | null
expires_at
string | null
id *
string (uuid)
mailbox_id
string | null
payload
object
private
boolean
reason
string | null
requested_by_id
string | null
result
object | null
source_message_id
string | null
status
"pending" | "approved" | "executed" | "rejected" | "expired"
summary
string | null
trail
[object]
Single proposal only
fields
actor_id
string | null
actor_type
string
at
string (date-time)
data
object | null
event
string
updated_at
string (date-time)
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
Example
POST
/api/v1/assistant/proposals
Propose an action for a person to approve
Sending, replying, forwarding, scheduling, calendar items and rule changes wait for a person unless the account's policy lets the action run at once (as the person who asked); background work always waits.
Scope: mail:send
· Idempotency-Key
· assistant.propose
Request body application/json
action *
string
send, reply, forward, schedule, calendar_event, rule_change …
agent
string
Agent name (default: the API key's name)
payload
object
The action's fields
reason
string
Why the agent proposes it
source_message_id
string (uuid)
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429
201 Success
proposal *
AssistantProposal
fields
AssistantProposal
action
string
agent
string | null
created_at
string (date-time)
decided_at
string | null
decided_by_id
string | null
edited
boolean
error
any | null
executed_at
string | null
expires_at
string | null
id *
string (uuid)
mailbox_id
string | null
payload
object
private
boolean
reason
string | null
requested_by_id
string | null
result
object | null
source_message_id
string | null
status
"pending" | "approved" | "executed" | "rejected" | "expired"
summary
string | null
trail
[object]
Single proposal only
fields
actor_id
string | null
actor_type
string
at
string (date-time)
data
object | null
event
string
updated_at
string (date-time)
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
GET
/api/v1/assistant/proposals/{id}
A proposal with its trail
Scope: mail:read
· assistant.proposal
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 403 · 404 · 429
200 Success
proposal *
AssistantProposal
fields
AssistantProposal
action
string
agent
string | null
created_at
string (date-time)
decided_at
string | null
decided_by_id
string | null
edited
boolean
error
any | null
executed_at
string | null
expires_at
string | null
id *
string (uuid)
mailbox_id
string | null
payload
object
private
boolean
reason
string | null
requested_by_id
string | null
result
object | null
source_message_id
string | null
status
"pending" | "approved" | "executed" | "rejected" | "expired"
summary
string | null
trail
[object]
Single proposal only
fields
actor_id
string | null
actor_type
string
at
string (date-time)
data
object | null
event
string
updated_at
string (date-time)
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/assistant/proposals/{id}/approve
Approve (and run) a proposal
Needs a person (an app session token): an `rs_` API key may only propose (403 `approval_needs_person`). A personal mailbox's proposal is its owner's only. It runs through the normal guarded path as the approving person; a failed run goes back to `pending` with its `error`.
Scope: mail:send
· Idempotency-Key
· assistant.approve
Parameter In Type Description
id * path string (uuid)
Request body application/json
edits
object
Changes to the payload before it runs
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
proposal *
AssistantProposal
fields
AssistantProposal
action
string
agent
string | null
created_at
string (date-time)
decided_at
string | null
decided_by_id
string | null
edited
boolean
error
any | null
executed_at
string | null
expires_at
string | null
id *
string (uuid)
mailbox_id
string | null
payload
object
private
boolean
reason
string | null
requested_by_id
string | null
result
object | null
source_message_id
string | null
status
"pending" | "approved" | "executed" | "rejected" | "expired"
summary
string | null
trail
[object]
Single proposal only
fields
actor_id
string | null
actor_type
string
at
string (date-time)
data
object | null
event
string
updated_at
string (date-time)
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 The proposal is no longer pending
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>)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/assistant/proposals/{id}/reject
Reject a proposal
Needs a person (an app session token): an `rs_` API key may only propose (403 `approval_needs_person`). A personal mailbox's proposal is its owner's only.
Scope: mail:send
· Idempotency-Key
· assistant.reject
Parameter In Type Description
id * path string (uuid)
Request body application/json
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
proposal *
AssistantProposal
fields
AssistantProposal
action
string
agent
string | null
created_at
string (date-time)
decided_at
string | null
decided_by_id
string | null
edited
boolean
error
any | null
executed_at
string | null
expires_at
string | null
id *
string (uuid)
mailbox_id
string | null
payload
object
private
boolean
reason
string | null
requested_by_id
string | null
result
object | null
source_message_id
string | null
status
"pending" | "approved" | "executed" | "rejected" | "expired"
summary
string | null
trail
[object]
Single proposal only
fields
actor_id
string | null
actor_type
string
at
string (date-time)
data
object | null
event
string
updated_at
string (date-time)
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 The proposal is no longer pending
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>)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/assistant/rewrite
Rewrite or translate composer text
Scope: mail:send
· uses AI credits
· Idempotency-Key
· assistant.rewrite
Request body application/json
mode *
"rewrite" | "shorten" | "grammar" | "formal" | "friendly" | "translate"
text *
string
to
string
Target language for `translate` (default en)
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429 · 503
200 Success
credits
number | null
engine
string
text *
string
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
503 No AI provider is available
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>)
Example
GET
/api/v1/assistant/settings
Assistant opt-ins, approval policy and credit standing
Scope: mail:read
· assistant.settings
Responses 200 · 401 · 403 · 429
200 Success
AssistantSettings
approval_policy
object
Action type → approval | auto
costs
object
fields
draft
object
fields
configured
boolean
credits
integer | null
label
string
extract
object
fields
configured
boolean
credits
integer | null
label
string
summary
object
fields
configured
boolean
credits
integer | null
label
string
triage
object
fields
configured
boolean
credits
integer | null
label
string
credits
object
fields
available
number
buy_path
string
out
boolean
read_only
boolean
locked
[string]
Action types that always need approval
mailboxes
[object]
fields
address
string (email)
can_change
boolean
extract
boolean
kind
"personal" | "shared"
mailbox_id
string (uuid)
paused
any | null
triage
boolean
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
Example
PUT
/api/v1/assistant/settings
Change opt-ins and the approval policy
Per mailbox (needs the right to manage it): `triage` and `extract` opt-ins. The approval policy (`account:manage`): per action type `approval` or `auto`; personal accounts can never auto-send. Answers the settings as `GET`.
Scope: mail:send
· assistant.update_settings
Request body application/json
approval_policy
object
Action type → approval | auto
mailboxes
[object]
fields
extract
boolean
mailbox_id *
string (uuid)
triage
boolean
Responses 200 · 401 · 402 · 403 · 422 · 429
200 Success
AssistantSettings
approval_policy
object
Action type → approval | auto
costs
object
fields
draft
object
fields
configured
boolean
credits
integer | null
label
string
extract
object
fields
configured
boolean
credits
integer | null
label
string
summary
object
fields
configured
boolean
credits
integer | null
label
string
triage
object
fields
configured
boolean
credits
integer | null
label
string
credits
object
fields
available
number
buy_path
string
out
boolean
read_only
boolean
locked
[string]
Action types that always need approval
mailboxes
[object]
fields
address
string (email)
can_change
boolean
extract
boolean
kind
"personal" | "shared"
mailbox_id
string (uuid)
paused
any | null
triage
boolean
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/assistant/summary
Summarise a message's conversation
One summary is cached per conversation version; `refresh` recomputes (and charges) it. Sign-in codes are never summarised.
Scope: mail:send
· uses AI credits
· Idempotency-Key
· assistant.summary
Request body application/json
message_id *
string (uuid)
refresh
boolean
Recompute even when a cached summary exists
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429 · 503
200 Success
cached *
boolean
summary *
AssistantSummary
fields
AssistantSummary
ai
boolean
amounts
[object]
fields
amount
string
what
string
ask_of_me
string | null
credits
number | null
dates
[object]
fields
engine
string
key_points
[string]
message_count
integer
open_questions
[string]
people
[object]
fields
thread_id
string (uuid)
tldr
string
updated_at
string (date-time)
version
integer
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
503 No AI provider is available
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>)
Example