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

Readers — API reference

Physical fingerprint / hand / face readers. Each submission is an AuthpermitScanners `Device` envelope signed with the reader's HMAC key; signature, clock and replay are checked first. Answers `{outcome, message}`.

← All groups
POST /api/readers/v1/submit

Submit a reader envelope

`purpose: "enroll"` with a link code and the reader's subject links a person to the reader (`linked`); a sign-in code with the presented finger/hand approves the browser waiting on it (`approved`). A bad signature and an unknown reader answer the same 401.

Any valid credential · readers.submit

Request body application/json

object

Responses 200 · 401 · 422 · 429 · 503

200 Success

ReaderOutcome

assurance string On `approved`
message string
outcome * string linked | approved | refused | invalid_code | not_recognised | unavailable

401 `refused`: reader not authorised, or its clock is off / replayed

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

429 Problem details (429)

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