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

Mobile sign-in — API reference

Passwordless sign-in for the native apps (`/api/mobile/v1/auth/*`): email PIN or magic link (either signs up a new address), passkeys, phone keys (Face ID / fingerprint, pattern, phone PIN), Authpermit Authorizer and the two-step (authenticator) step. Every sign-in takes `app` (`user` | `business`) or `kind` (`individual` | `business`), optionally `account_id` and a `device` object, and ends in a Bearer session token that also works on `/api/v1` and `/mcp`. A first factor for somebody with two-step sign-in on answers `second_step_required` instead of a token. Errors here are flat: `{error: <code>, message: <a sentence to show>}` (+ extra fields such as `remaining`, `retry_after`, `account_type`); 409 `wrong_account_type` when the person has no account of the app's kind; 429 `locked` with a `Retry-After` header. Limits: 30 / 10 min per IP and 10 / 10 min per identifier.

← All groups
POST /api/mobile/v1/auth/authorizer/poll

Poll an Authorizer sign-in

202 `{status: "pending"}` while waiting, 200 with the signed-in (or second-step) answer once approved.

Any valid credential · mobile_auth.authorizer_poll

Request body application/json
account_id string (uuid) An account the person belongs to
app "user" | "business" Which app: user (personal) or business
device MobileDeviceInfo Names the session in the signed-in devices list (or headers `x-rs-device-name`, `x-rs-platform`, `x-rs-form-factor`, `x-rs-app`)
fields

MobileDeviceInfo

app string
form_factor "phone" | "tablet" | "desktop"
name string Dana's iPhone
platform "ios" | "android" | "desktop" | "linux"
door "any" | "gate"
id * string
kind "individual" | "business" The account type (alternative to `app`)
poll_token * string
Responses 200 · 400 · 401 · 409 · 410 · 429 · 503

200 Success

MobileSignedIn | MobileSecondStep | object

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 `denied`, `consumed` or `refused`

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

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

429 `locked` (600 polls / 10 min per IP)

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

503 `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/mobile/v1/auth/authorizer/start

Start an Authpermit Authorizer (QR) sign-in

Show `qr_payload` as a QR code (or open Authorizer on the same phone), then poll every 2 s with `id` and `poll_token`.

Any valid credential · mobile_auth.authorizer_start

Request body application/json
door "sign_on" | "gate" gate for the admin gate
Responses 201 · 401 · 429 · 503

201 Success

expires_at string (date-time)
id string
poll_token string Binds the challenge to this device
qr_payload string

401 Problem details (401)

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

503 `unavailable`: Authorizer not configured or down

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/auth/device/biometric

Sign in with Face ID / fingerprint

`envelope` is an AuthpermitScanners `DeviceKey` envelope signed by the biometric hardware key over `{challenge}`.

Any valid credential · mobile_auth.device_biometric

Request body application/json
account_id string (uuid) An account the person belongs to
app "user" | "business" Which app: user (personal) or business
device MobileDeviceInfo Names the session in the signed-in devices list (or headers `x-rs-device-name`, `x-rs-platform`, `x-rs-form-factor`, `x-rs-app`)
fields

MobileDeviceInfo

app string
form_factor "phone" | "tablet" | "desktop"
name string Dana's iPhone
platform "ios" | "android" | "desktop" | "linux"
envelope * MobileDeviceEnvelope An AuthpermitScanners `DeviceKey` envelope (device_id, signed body over `{challenge}` …)
fields

MobileDeviceEnvelope

MobileDeviceEnvelope

kind "individual" | "business" The account type (alternative to `app`)
Responses 200 · 400 · 401 · 403 · 409 · 429 · 503

200 Success

MobileSignedIn | MobileSecondStep

400 `bad_request`, `malformed` or `wrong_key`

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 `wrong_pattern` / `wrong_pin` (+`remaining`), `challenge_expired`, `replayed`, `bad_signature`, `clock_skew`, `device_unknown`

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 `device_revoked`, `pattern_disabled` or `pin_disabled`

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

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` (Retry-After)

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

503 `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/mobile/v1/auth/device/challenge

A challenge for a phone key to sign

Any valid credential · mobile_auth.device_challenge

Request body application/json
device_id * string The enrolled device id
Responses 200 · 400 · 401 · 429

200 Success

challenge string
expires_at string (date-time)

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)

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/auth/device/pattern

Sign in with the phone pattern

The envelope's body carries `pattern_proof` besides the challenge. Wrong answers say how many tries `remaining`; after too many the pattern is turned off (403 `pattern_disabled`).

Any valid credential · mobile_auth.device_pattern

Request body application/json
account_id string (uuid) An account the person belongs to
app "user" | "business" Which app: user (personal) or business
device MobileDeviceInfo Names the session in the signed-in devices list (or headers `x-rs-device-name`, `x-rs-platform`, `x-rs-form-factor`, `x-rs-app`)
fields

MobileDeviceInfo

app string
form_factor "phone" | "tablet" | "desktop"
name string Dana's iPhone
platform "ios" | "android" | "desktop" | "linux"
envelope * MobileDeviceEnvelope An AuthpermitScanners `DeviceKey` envelope (device_id, signed body over `{challenge}` …)
fields

MobileDeviceEnvelope

MobileDeviceEnvelope

kind "individual" | "business" The account type (alternative to `app`)
Responses 200 · 400 · 401 · 403 · 409 · 429 · 503

200 Success

MobileSignedIn | MobileSecondStep

400 `bad_request`, `malformed` or `wrong_key`

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 `wrong_pattern` / `wrong_pin` (+`remaining`), `challenge_expired`, `replayed`, `bad_signature`, `clock_skew`, `device_unknown`

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 `device_revoked`, `pattern_disabled` or `pin_disabled`

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

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` (Retry-After)

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

503 `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/mobile/v1/auth/device/pin

Sign in with the phone PIN

The envelope's body carries `pin_proof` = base64url(HMAC-SHA256(device_id, "pin:v1:" + digits)). Wrong answers say how many tries `remaining`; after 10 the PIN is turned off (403 `pin_disabled`).

Any valid credential · mobile_auth.device_pin

Request body application/json
account_id string (uuid) An account the person belongs to
app "user" | "business" Which app: user (personal) or business
device MobileDeviceInfo Names the session in the signed-in devices list (or headers `x-rs-device-name`, `x-rs-platform`, `x-rs-form-factor`, `x-rs-app`)
fields

MobileDeviceInfo

app string
form_factor "phone" | "tablet" | "desktop"
name string Dana's iPhone
platform "ios" | "android" | "desktop" | "linux"
envelope * MobileDeviceEnvelope An AuthpermitScanners `DeviceKey` envelope (device_id, signed body over `{challenge}` …)
fields

MobileDeviceEnvelope

MobileDeviceEnvelope

kind "individual" | "business" The account type (alternative to `app`)
Responses 200 · 400 · 401 · 403 · 409 · 429 · 503

200 Success

MobileSignedIn | MobileSecondStep

400 `bad_request`, `malformed` or `wrong_key`

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 `wrong_pattern` / `wrong_pin` (+`remaining`), `challenge_expired`, `replayed`, `bad_signature`, `clock_skew`, `device_unknown`

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 `device_revoked`, `pattern_disabled` or `pin_disabled`

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

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` (Retry-After)

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

503 `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/mobile/v1/auth/email/start

Email a sign-in PIN or magic link

Answers the same 202 for every address, known or not (anti-enumeration). The PIN email's subject starts with the code.

Any valid credential · mobile_auth.email_start

Request body application/json
account_id string (uuid) An account the person belongs to
app "user" | "business" Which app: user (personal) or business
device MobileDeviceInfo Names the session in the signed-in devices list (or headers `x-rs-device-name`, `x-rs-platform`, `x-rs-form-factor`, `x-rs-app`)
fields

MobileDeviceInfo

app string
form_factor "phone" | "tablet" | "desktop"
name string Dana's iPhone
platform "ios" | "android" | "desktop" | "linux"
email * string (email)
kind "individual" | "business" The account type (alternative to `app`)
method "pin" | "magic" pin (default) or magic
Responses 202 · 400 · 401 · 429

202 Success

message string
method "pin" | "magic"
status "sent"

400 `bad_request`: email 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)

429 `locked` (Retry-After)

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/auth/email/verify

Sign in with the emailed PIN

A PIN allows 3 wrong tries, then it is burned; 5 wrong codes lock the address for 15 minutes.

Any valid credential · mobile_auth.email_verify

Request body application/json
account_id string (uuid) An account the person belongs to
app "user" | "business" Which app: user (personal) or business
code * string The six digits
device MobileDeviceInfo Names the session in the signed-in devices list (or headers `x-rs-device-name`, `x-rs-platform`, `x-rs-form-factor`, `x-rs-app`)
fields

MobileDeviceInfo

app string
form_factor "phone" | "tablet" | "desktop"
name string Dana's iPhone
platform "ios" | "android" | "desktop" | "linux"
email * string (email)
kind "individual" | "business" The account type (alternative to `app`)
Responses 200 · 400 · 401 · 409 · 429

200 Success

MobileSignedIn | MobileSecondStep

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

409 `wrong_account_type` (+`account_type`, `app`)

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` (Retry-After)

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/auth/magic/verify

Sign in with a magic link opened in the app

Any valid credential · mobile_auth.magic_verify

Request body application/json
account_id string (uuid) An account the person belongs to
app "user" | "business" Which app: user (personal) or business
device MobileDeviceInfo Names the session in the signed-in devices list (or headers `x-rs-device-name`, `x-rs-platform`, `x-rs-form-factor`, `x-rs-app`)
fields

MobileDeviceInfo

app string
form_factor "phone" | "tablet" | "desktop"
name string Dana's iPhone
platform "ios" | "android" | "desktop" | "linux"
kind "individual" | "business" The account type (alternative to `app`)
token * string The token from the link `/auth/verify/<token>`
Responses 200 · 400 · 401 · 409 · 429

200 Success

MobileSignedIn | MobileSecondStep

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 `invalid_link` (used, expired or forged)

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

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/auth/passkey/options

Passkey sign-in options (discoverable)

Any valid credential · mobile_auth.passkey_options

Request body application/json

object

Responses 200 · 401 · 429

200 Success

MobilePasskeyOptions

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

401 Problem details (401)

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/auth/passkey/verify

Sign in with a passkey

Standard WebAuthn JSON (`id`/`rawId` + `response.*`) or the flat form (`rawId`, `authenticatorData`, `signature`, `clientDataJSON`, `userHandle`).

Any valid credential · mobile_auth.passkey_verify

Request body application/json
account_id string (uuid) An account the person belongs to
app "user" | "business" Which app: user (personal) or business
challenge_id * string
credential * object The WebAuthn assertion
device MobileDeviceInfo Names the session in the signed-in devices list (or headers `x-rs-device-name`, `x-rs-platform`, `x-rs-form-factor`, `x-rs-app`)
fields

MobileDeviceInfo

app string
form_factor "phone" | "tablet" | "desktop"
name string Dana's iPhone
platform "ios" | "android" | "desktop" | "linux"
kind "individual" | "business" The account type (alternative to `app`)
Responses 200 · 400 · 401 · 409 · 429

200 Success

MobileSignedIn | MobileSecondStep

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 `invalid_passkey`, `challenge_expired` or `passkey_refused`

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

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>)
DELETE /api/mobile/v1/auth/session

Sign this app out

Revokes the session named by the `Authorization: Bearer` token (if any) and disconnects its sockets. Always 204.

Any valid credential · mobile_auth.logout

Responses 204 · 401 · 429

204 Done (no content)

401 Problem details (401)

429 Problem details (429)

POST /api/mobile/v1/auth/totp/verify

Complete the two-step sign-in

`code` is the authenticator's 6 digits or a recovery code. Send `app` / `kind` again. `method` gets `+totp`, `assurance` `two_factor`.

Any valid credential · mobile_auth.totp_verify

Request body application/json
account_id string (uuid) An account the person belongs to
app "user" | "business" Which app: user (personal) or business
code * string
device MobileDeviceInfo Names the session in the signed-in devices list (or headers `x-rs-device-name`, `x-rs-platform`, `x-rs-form-factor`, `x-rs-app`)
fields

MobileDeviceInfo

app string
form_factor "phone" | "tablet" | "desktop"
name string Dana's iPhone
platform "ios" | "android" | "desktop" | "linux"
kind "individual" | "business" The account type (alternative to `app`)
second_step * string From the `second_step_required` answer
Responses 200 · 400 · 401 · 409 · 429

200 Success

MobileSignedIn

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
assurance string possession | two_factor | federated …
expires_at string (date-time) The person's session length: 1, 7, 30 or 90 days
method string email_pin | magic_link | passkey | device_biometric | pattern | pin | authorizer … (+totp)
role string | null owner | admin | a staff job role …
status * "signed_in"
token * string The session token (send as `Authorization: Bearer …`)
token_type "Bearer"
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

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 `invalid_code` or `second_step_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>)

409 `wrong_account_type`

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