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

Media header — API reference

Every email and chat message box's media header (owner rule 2026-12-04; docs/mail.md "Media header", docs/native.md): voice, video and screen recordings, screenshots, camera photos and videos and uploaded files go into the person's Files Hub (`Mail media` / `Chat media` in My files, on the account's storage — Burmeel by default, or the account's own S3) and the message carries only a link (an external view link honouring the sharing policy, expiry, restricted files and the access log) and a card. No attachment bytes go in the email. `mail:send` or `chat:write`; a key that acts for no person is refused (403 `no_person`).

← All groups
POST /api/v1/media

Send a small media file in one request

A recording, photo or file up to `single_max` (25 MB) as multipart `file`: stored in the box's media folder, linked, and answered as a card. Larger files go as an upload session (`POST /media/uploads`). Quotas apply (507 when the space or the account is full). With virus scanning on, the card's `scan` is `checking` until the scan clears the file (the link's page says so and serves nothing until then).

Scope: mail:send · Idempotency-Key · media.create

Request body multipart/form-data
box "mail" | "chat" The box: `mail` (Mail media, the default) or `chat` (Chat media); it names the card ("Voice email" / "Voice message")
content_type string
duration integer A recording's length in seconds (shown on the card)
expires_in_days integer How long the link stays valid, 1–365 days (default 30; the account policy's link_max_days caps it)
file * string The file (multipart)
kind "voice" | "video" | "screen" | "screenshot" | "photo" | "camera_video" | "file" What the box made: a voice, video or screen recording, a screenshot, a camera photo or video, or an uploaded file (default file)
name string A file name (default the upload's)
Responses 201 · 401 · 402 · 403 · 409 · 413 · 422 · 429 · 507

201 Success

media * MediaCard
fields

MediaCard

card_html * string The email-safe card for a rich box: <div data-media> with the name, kind, length, size and links
card_text * string The same as plain text (a plain box, the text/plain part, a chat message)
download_url string (uri)
duration integer | null Seconds
expires_at string | null
file_id * string (uuid) The file in the person's Files Hub
kind * "voice" | "video" | "screen" | "screenshot" | "photo" | "camera_video" | "file"
link_url * string (uri) The page the recipient opens: plays video and audio, shows images, offers Download
media "video" | "audio" | "image" | "file" How it plays
mime string | null
name * string
raw_url string (uri) Inline playback (what the link's page plays)
scan "checking" | "ok" checking while the virus scan runs (the page says so and serves nothing until it clears)
size integer

401 Problem details (401)

402 Problem details (402)

403 no_person — the key acts for no person; forbidden — no files:share right or a scope is missing; external_sharing_disabled — links are off for the account

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 — over single_max: use an upload session

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)

507 space_full or storage_full

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>)
GET /api/v1/media/options

What the media header may do

Whether the person can send media as links now (`available`, else `reason` and a `message` to show), the limits (`max_seconds` of a recording — 15 minutes —, `max_bytes` of a file, `single_max` of one-request uploads, `part_size` of upload sessions), the link's `default_days` and the policy's `max_days`, the storage `provider` (`burmeel` or `s3`), the folder names and the `screenshot` modes and formats (rectangular area, window, full page; PNG, JPEG with a quality, or a one-page PDF made on the device — a screenshot upload of any other type is refused with 422 `bad_type`). `mail:send` or `chat:write`.

Scope: mail:send · media.options

Responses 200 · 401 · 403 · 429

200 Success

available * boolean
default_days * integer
folders object
fields
chat string
mail string
max_bytes * integer
max_days integer | null
max_seconds * integer
message string | null A sentence to show when not available
part_size * integer
provider * "burmeel" | "s3"
reason string | null no_person, forbidden, external_sharing_disabled, no_files
screenshot * MediaScreenshotOptions
fields

MediaScreenshotOptions

default_format string
default_mode string
formats * [object] The upload's content_type is the format's mime
fields
description string
ext string
id * "png" | "jpeg" | "pdf"
label string
mime * string
quality object | null JPEG only: the encoder quality (0–1)
fields
default number
max number
min number
step number
modes * [object] area: capture, then drag a rectangle to keep; window: one window or tab where the platform lets you pick; full_page: the whole screen or tab as captured
fields
description string
id * "area" | "window" | "full_page"
label string
single_max * integer

401 Problem details (401)

403 no_person — the key acts for no person; forbidden — no files:share right or a scope is missing; external_sharing_disabled — links are off for the account

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/media/uploads

Start a media upload session

For recordings and files of any size up to `max_bytes`: send the parts with `PUT /media/uploads/{id}/parts/{n}` (`part_size` bytes each, the last one shorter, in any order, again if one fails), then `POST /media/uploads/{id}/complete`. Parts go straight to the storage provider's multipart upload. Sessions expire after 24 hours. Links being off for the account is refused here, before anything is uploaded.

Scope: mail:send · Idempotency-Key · media.begin

Request body application/json
box "mail" | "chat" The box: `mail` (Mail media, the default) or `chat` (Chat media); it names the card ("Voice email" / "Voice message")
content_type * string e.g. audio/webm, video/mp4, image/png
kind "voice" | "video" | "screen" | "screenshot" | "photo" | "camera_video" | "file" What the box made: a voice, video or screen recording, a screenshot, a camera photo or video, or an uploaded file (default file)
name string A file name; an extension that fits `content_type` is added when missing
sha256 string Hex SHA-256 of the whole file (checked at the end)
size * integer Total bytes
Responses 201 · 401 · 402 · 403 · 409 · 413 · 422 · 429 · 507

201 Success

upload * MediaUpload
fields

MediaUpload

expires_at string (date-time)
id * string (uuid)
missing [integer] Part numbers still to send
name string
part_size * integer
part_url string Where each part goes, with `{n}` for its number
parts_total * integer
received integer Bytes received
size integer
status "open" | "completed" | "aborted"

401 Problem details (401)

402 Problem details (402)

403 no_person — the key acts for no person; forbidden — no files:share right or a scope is missing; external_sharing_disabled — links are off for the account

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 Problem details (422)

429 Problem details (429)

507 space_full or storage_full

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>)
DELETE /api/v1/media/uploads/{id}

Drop an unfinished media upload

Scope: mail:send · media.abort

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 — no files:share right or a scope is missing; external_sharing_disabled — links are off for the account

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/media/uploads/{id}/complete

Finish a media upload and get its link

Send `kind` again (a session keeps no kind; `box` defaults to the session's folder). Joins the parts, checks the SHA-256 when one was given, makes the file in the box's media folder and its view link, and answers the card the app puts in the message (`card_html` in a rich box, `card_text` in a plain one).

Scope: mail:send · Idempotency-Key · media.complete

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
box "mail" | "chat" The box: `mail` (Mail media, the default) or `chat` (Chat media); it names the card ("Voice email" / "Voice message")
duration integer A recording's length in seconds (shown on the card)
expires_in_days integer How long the link stays valid, 1–365 days (default 30; the account policy's link_max_days caps it)
kind "voice" | "video" | "screen" | "screenshot" | "photo" | "camera_video" | "file" What the box made: a voice, video or screen recording, a screenshot, a camera photo or video, or an uploaded file (default file)
Responses 201 · 401 · 402 · 403 · 404 · 409 · 410 · 422 · 429 · 507

201 Success

media * MediaCard
fields

MediaCard

card_html * string The email-safe card for a rich box: <div data-media> with the name, kind, length, size and links
card_text * string The same as plain text (a plain box, the text/plain part, a chat message)
download_url string (uri)
duration integer | null Seconds
expires_at string | null
file_id * string (uuid) The file in the person's Files Hub
kind * "voice" | "video" | "screen" | "screenshot" | "photo" | "camera_video" | "file"
link_url * string (uri) The page the recipient opens: plays video and audio, shows images, offers Download
media "video" | "audio" | "image" | "file" How it plays
mime string | null
name * string
raw_url string (uri) Inline playback (what the link's page plays)
scan "checking" | "ok" checking while the virus scan runs (the page says so and serves nothing until it clears)
size integer

401 Problem details (401)

402 Problem details (402)

403 no_person — the key acts for no person; forbidden — no files:share right or a scope is missing; external_sharing_disabled — links are off for the account

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 incomplete — parts are 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>)

410 session_expired

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)

507 space_full or storage_full

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>)
PUT /api/v1/media/uploads/{id}/parts/{n}

Upload one part of a media upload

Scope: mail:send · media.put_part

ParameterInTypeDescription
id *pathstring (uuid)
n *pathintegerPart number, from 1
Request body application/octet-stream

string

Responses 200 · 401 · 402 · 403 · 404 · 410 · 422 · 429

200 Success

upload * MediaUpload
fields

MediaUpload

expires_at string (date-time)
id * string (uuid)
missing [integer] Part numbers still to send
name string
part_size * integer
part_url string Where each part goes, with `{n}` for its number
parts_total * integer
received integer Bytes received
size integer
status "open" | "completed" | "aborted"

401 Problem details (401)

402 Problem details (402)

403 no_person — the key acts for no person; forbidden — no files:share right or a scope is missing; external_sharing_disabled — links are off for the account

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)

410 session_expired

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 bad_part — wrong number or size

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)