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

Message box — API reference

What every email and chat message box offers (owner rule 2026-12-04; docs/assistant.md "AI writing and voice in every message box"), for the native apps' boxes: AI writing (write, reply, rewrite, shorten, expand, fix grammar, tone, translate), speech to text, and the emoji rail's dataset. AI is paid in AI credits (402 without them). It writes text for the box and never sends anything. A key that acts for no person is refused (403 `no_person`).

← All groups
GET /api/v1/assist/emoji

The emoji rail's dataset

The emoji list every message box's rail uses (the web loads the same file as `/emoji.json`), generated from Unicode's emoji-test data and CLDR's English keywords: `categories` (`key`, `name`, `icon`, in rail order: smileys, people, hearts, nature, food, travel, activities, objects, symbols, flags — the app adds Recent itself, kept on the device) and `emoji` as `[emoji, name, keywords, category index]`. No skin-tone variants; nothing newer than Emoji 15.0. Cacheable: send the `ETag` back as `If-None-Match` for a 304. `mail:read` or `chat:read`.

Scope: mail:read · assist.emoji

Responses 200 · 401 · 403 · 429

200 Success

categories * [object]
fields
icon string
key string
name string
emoji * [[any]]
version string

401 Problem details (401)

403 no_person — the key acts for no person; or a scope is missing

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/assist/transcribe

Speech to text for a message box

A recording (WebM/Opus, Ogg, MP4/AAC, MP3 or WAV; at most 25 MB) as multipart `audio`, or JSON `audio_base64` with `content_type`, transcribed by Langaat — the transcription voicemail and Docs Emailer use — and paid in AI credits per minute (`assist.transcribe`). The app puts the text at the caret (Dictate) or sends it as `prompt` to `POST /assist/write` (Speak to AI). `mail:send` or `chat:write`.

Scope: mail:send · uses AI credits · Idempotency-Key · assist.transcribe

Request body multipart/form-data
audio string The recording (multipart)
audio_base64 string JSON uploads: the recording, base64
content_type string JSON uploads: the recording's type
Responses 200 · 401 · 402 · 403 · 409 · 413 · 422 · 429 · 503

200 Success

cost * object
fields
credits number | null
minutes integer | null minutes charged (estimated from the size until Langaat reports the length)
text * string

401 Problem details (401)

402 insufficient_credits or billing_read_only

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>)

403 no_person — the key acts for no person; or a scope is missing

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)

413 too_large

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 no_audio, not_audio or no_text (nothing heard)

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)

503 langaat_not_connected or speech_engine_unavailable

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>)
POST /api/v1/assist/write

Write in a message box (AI)

The box's AI writing, as the web does it. `mode`: `write` (Write for me: from `prompt`; with `text`/`html` the current draft changes as asked), `reply` (Reply for me: an answer to `message_id` — an email of a mailbox the person can open — or to `conversation_id` (a thread with `parent_id`), following `prompt` when given), `rewrite`, `shorten`, `expand`, `grammar`, `tone` (with `tone`), `translate` (with `lang`, through Langaat, per character). A signature or quoted message below the person's text is kept as it is. Answers the box's new content; nothing is sent. `mail:send`, or `chat:write` with `conversation_id`. Sign-in and security mail, and protected health or tax email, are never read (403).

Scope: mail:send · uses AI credits · Idempotency-Key · assist.write

Request body application/json
conversation_id string (uuid) The conversation the box answers (reply)
html string What the box holds, as rich text (sanitised)
kind "email" | "chat" | "note" | "instruction" What the box is (default email)
lang string A language code: translate's target, or the language to write in
message_id string (uuid) The email the box answers (reply)
mode * "write" | "reply" | "rewrite" | "shorten" | "expand" | "grammar" | "tone" | "translate"
parent_id string (uuid) The thread's first message (reply in a thread)
prompt string What to write (write; optional for reply), at most 2000 characters
text string What the box holds, as plain text (or `html`)
tone "formal" | "friendly" | "confident" | "apologetic" | "casual"
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429 · 503

200 Success

cost * object
fields
credits number | null AI credits charged
engine string provider:model, or langaat
html * string The box's new content, sanitised rich text
text * string The same as plain text

401 Problem details (401)

402 insufficient_credits (with the buy path) or billing_read_only

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>)

403 no_person — the key acts for no person; or a scope is missing

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 not_found — the email or conversation isn't one the person can open

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 no_prompt, no_context, no_text or invalid

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)

503 ai_unavailable or langaat_not_connected

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>)