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

Mobile account — API reference

The signed-in person in the native apps (`/api/mobile/v1`, an app session token only): who am I, the account and workspace switchers, the browser hand-off, two-step sign-in, phone keys, passkeys and every signed-in device. Errors are flat `{error: <code>, message}`; 429 `locked` carries `retry_after` and a `Retry-After` header.

← All groups
POST /api/mobile/v1/account

Switch this session's account

From now on the session works in that account (on `/api/mobile/v1` and `/api/v1`), in its default workspace.

Any valid credential · Idempotency-Key · mobile_account.switch_account

Request body application/json
account_id * string (uuid)
Responses 200 · 400 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

account MobileAccount
fields

MobileAccount

app "user" | "business" The app that opens it
billing_status string | null
id string (uuid)
kind "individual" | "business"
name string
plan string | null
role string The person's role (in `accounts` lists)
slug string
verification_policy string | null
role string
workspace_id string | null
workspaces [Workspace]
fields

Workspace

archived boolean
current boolean The workspace this request works in
id * string (uuid)
kind "personal" | "general" | "team" | "project" | "department"
name string
role string | null The person's role in the workspace

400 `bad_request`: account_id is required

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

401 Problem details (401)

402 Problem details (402)

403 `not_a_member`

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)

GET /api/mobile/v1/accounts

Every account the person belongs to

Any valid credential · paginated · mobile_account.accounts

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

accounts * [MobileAccount]
fields

MobileAccount

app "user" | "business" The app that opens it
billing_status string | null
id string (uuid)
kind "individual" | "business"
name string
plan string | null
role string The person's role (in `accounts` lists)
slug string
verification_policy 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)

POST /api/mobile/v1/browser-session

Open the web app signed in as the same person

Open `<server><url>` in the browser: the page shows whose account it is and a Continue button (CSRF-checked POST). The token lives two minutes; nothing is spent by opening it.

Any valid credential · Idempotency-Key · mobile_account.browser_session

Request body application/json
return_to string A path in the web app
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

expires_in integer Seconds (120)
return_to string
url string `/auth/app/<token>?return_to=…`

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/mobile/v1/devices

Phone keys that sign in

Any valid credential · paginated · mobile_account.devices

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

devices * [MobileDeviceKey]
fields

MobileDeviceKey

device_id string
id string (uuid)
inserted_at string (date-time)
last_used_at string | null
method "biometric" | "pattern" | "pin" | "key" What this key signs in with
name string | null
pattern boolean
pin boolean
platform "ios" | "android"
status string
user_verification "biometric" | "none"
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)

POST /api/mobile/v1/devices

Enrol a phone key

Re-enrolling the same device id replaces it. One key carries a pattern or a PIN, not both.

Any valid credential · Idempotency-Key · mobile_account.enroll_device

Request body application/json
device_id * string 16–128 characters
name string
pattern_proof string For a pattern key
pin_proof string For a PIN key: base64url(HMAC-SHA256(device_id, "pin:v1:" + digits))
platform * "ios" | "android"
public_key * string P-256 public key: point, SPKI or PEM, base64
user_verification "biometric" | "none" biometric for a Face ID / fingerprint key
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

MobileDeviceKey

device_id string
id string (uuid)
inserted_at string (date-time)
last_used_at string | null
method "biometric" | "pattern" | "pin" | "key" What this key signs in with
name string | null
pattern boolean
pin boolean
platform "ios" | "android"
status string
user_verification "biometric" | "none"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 `device_taken`

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 `weak_pin`, `invalid_pin_proof`, `one_secret_per_key`, `invalid_public_key` or `invalid_device`

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)

DELETE /api/mobile/v1/devices/{device_id}

Revoke a phone key

Any valid credential · mobile_account.revoke_device

ParameterInTypeDescription
device_id *pathstringThe device id the key was enrolled with
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/mobile/v1/me

The signed-in person, session, accounts and workspaces

Any valid credential · mobile_account.me

Responses 200 · 401 · 403 · 429

200 Success

account MobileAccount | null
fields

MobileAccount

app "user" | "business" The app that opens it
billing_status string | null
id string (uuid)
kind "individual" | "business"
name string
plan string | null
role string The person's role (in `accounts` lists)
slug string
verification_policy string | null
accounts [MobileAccount]
fields

MobileAccount

app "user" | "business" The app that opens it
billing_status string | null
id string (uuid)
kind "individual" | "business"
name string
plan string | null
role string The person's role (in `accounts` lists)
slug string
verification_policy string | null
role string | null
role_detail object | null
fields
key string
name string
permissions [string]
tier string
session MobileSession
fields

MobileSession

account_id string | null
app string | null
assurance string | null
current boolean This request's session
device_name string
expires_at string (date-time)
form_factor string | null
id string (uuid)
ip string | null
last_seen_at string | null
method string | null
platform string | null
signed_in_at string (date-time)
user * MobileUser
fields

MobileUser

email string (email)
id string (uuid)
locale string | null
name string | null
session_day_choices [integer]
session_days integer
two_factor boolean Two-step sign-in is on
verified boolean The address is confirmed
workspace_id string | null
workspaces [Workspace]
fields

Workspace

archived boolean
current boolean The workspace this request works in
id * string (uuid)
kind "personal" | "general" | "team" | "project" | "department"
name string
role string | null The person's role in the workspace

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/mobile/v1/passkeys

The person's passkeys

Any valid credential · paginated · mobile_account.passkeys

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
passkeys * [MobilePasskey]
fields

MobilePasskey

id string (uuid)
inserted_at string (date-time)
last_used_at string | null
name string | null

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/mobile/v1/passkeys

Register a passkey

Any valid credential · Idempotency-Key · mobile_account.passkey_register

Request body application/json
challenge_id * string
credential * object The WebAuthn attestation (attestationObject, clientDataJSON)
name string
Responses 201 · 400 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

MobilePasskey

id string (uuid)
inserted_at string (date-time)
last_used_at string | null
name string | null

400 `bad_request`

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

401 `challenge_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>)

402 Problem details (402)

403 Problem details (403)

409 `already_registered`

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 `invalid_passkey`

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/mobile/v1/passkeys/options

Passkey registration options

Any valid credential · Idempotency-Key · mobile_account.passkey_options

Request body application/json

object

Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

MobilePasskeyOptions

challenge_id * string
publicKey object WebAuthn options (base64url binary fields)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 `rate_limited`: five pending registrations

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/mobile/v1/passkeys/{id}

Delete a passkey

Any valid credential · mobile_account.delete_passkey

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

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PATCH /api/mobile/v1/passkeys/{id}

Rename a passkey

Any valid credential · mobile_account.rename_passkey

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
name * string
Responses 204 · 400 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

400 `bad_request`: name is required

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

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PUT /api/mobile/v1/session-length

Set how long sign-ins last

New sign-ins use it; a shorter length also cuts devices already signed in to at most that long from now.

Any valid credential · mobile_account.session_length

Request body application/json
days * 1 | 7 | 30 | 90
Responses 200 · 400 · 401 · 402 · 403 · 422 · 429

200 Success

user MobileUser
fields

MobileUser

email string (email)
id string (uuid)
locale string | null
name string | null
session_day_choices [integer]
session_days integer
two_factor boolean Two-step sign-in is on
verified boolean The address is confirmed

400 `bad_request`

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

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

422 `invalid_session_length`

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)

DELETE /api/mobile/v1/sessions

Sign out everywhere else

Every other browser, phone and desktop app.

Any valid credential · mobile_account.delete_other_sessions

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

200 Success

signed_out integer How many sessions were signed out

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

422 Problem details (422)

429 Problem details (429)

GET /api/mobile/v1/sessions

Every signed-in device

Any valid credential · paginated · mobile_account.sessions

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
sessions * [MobileSession]
fields

MobileSession

account_id string | null
app string | null
assurance string | null
current boolean This request's session
device_name string
expires_at string (date-time)
form_factor string | null
id string (uuid)
ip string | null
last_seen_at string | null
method string | null
platform string | null
signed_in_at string (date-time)

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

DELETE /api/mobile/v1/sessions/{id}

Sign one device out

Any valid credential · mobile_account.delete_session

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

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

DELETE /api/mobile/v1/totp

Turn two-step sign-in off

Any valid credential · mobile_account.totp_disable

Request body application/json
code * string A current code or a recovery code
Responses 204 · 401 · 402 · 403 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

422 `invalid_code`

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 `locked`

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/mobile/v1/totp

Two-step sign-in status

Any valid credential · mobile_account.totp

Responses 200 · 401 · 403 · 429

200 Success

totp MobileTotpStatus
fields

MobileTotpStatus

enabled boolean
enabled_at string | null
last_used_at string | null
pending boolean Set up but not confirmed
recovery_codes_left integer

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/mobile/v1/totp/confirm

Turn two-step sign-in on

Any valid credential · Idempotency-Key · mobile_account.totp_confirm

Request body application/json
code * string The authenticator's current code
Responses 200 · 400 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

recovery_codes [string] Shown once
totp MobileTotpStatus
fields

MobileTotpStatus

enabled boolean
enabled_at string | null
last_used_at string | null
pending boolean Set up but not confirmed
recovery_codes_left integer

400 `bad_request`

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

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 `not_started` or `already_enabled`

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 `invalid_code`

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 `locked`

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/mobile/v1/totp/recovery-codes

New recovery codes

Any valid credential · Idempotency-Key · mobile_account.totp_recovery_codes

Request body application/json
code * string A current code
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

recovery_codes [string]

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 `not_enabled`

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 `invalid_code`

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 `locked`

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/mobile/v1/totp/setup

Start two-step enrolment

A new secret, shown once; not active until confirmed.

Any valid credential · Idempotency-Key · mobile_account.totp_setup

Request body application/json

object

Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

otpauth_uri string
qr_svg string
secret string

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 `already_enabled`

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)

POST /api/mobile/v1/workspace

Switch this session's workspace

Any valid credential · Idempotency-Key · mobile_account.switch_workspace

Request body application/json
workspace_id * string (uuid)
Responses 200 · 400 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

workspace_id string (uuid)
workspaces [Workspace]
fields

Workspace

archived boolean
current boolean The workspace this request works in
id * string (uuid)
kind "personal" | "general" | "team" | "project" | "department"
name string
role string | null The person's role in the workspace

400 `bad_request`

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

401 Problem details (401)

402 Problem details (402)

403 `not_a_workspace_member`

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)

GET /api/mobile/v1/workspaces

The workspaces of the session's account

Any valid credential · paginated · mobile_account.workspaces

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
workspace_id string | null
workspaces * [Workspace]
fields

Workspace

archived boolean
current boolean The workspace this request works in
id * string (uuid)
kind "personal" | "general" | "team" | "project" | "department"
name string
role string | null The person's role in the workspace

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)