apistockdocs
v0.4 GitHub apistock.dev
API reference/Auth

Add a passkey

POST /v1/auth/passkeys
Send the browser's response to the registration options. Verifies this session with a second factor; the account's first second factor also returns recovery codes.

Authorization

bearer
Authorizationheader · stringrequired

Session token from POST /v1/auth/login with "transport": "bearer". Browsers use the session cookie that login sets instead.

Body

application/json
ceremony_tokenstringrequired
maxLength: 256
credentialobjectrequired

The PublicKeyCredential from navigator.credentials.create(), as JSON (PublicKeyCredential.toJSON())

namestring

A label to recognise it by; default Passkey

maxLength: 100

Responses

errors: application/problem+json
201

Created

401

Unauthorized

409

Conflict

422

Unprocessable Entity

500

Internal Server Error

503

Service Unavailable

Match errors on the problem's code, which stays the same, not on its message.

esc
↑↓ move↵ openesc close