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

Start adding a passkey

POST /v1/auth/passkeys/registration
Returns the options for navigator.credentials.create(). Send the password unless this session verified a second factor in the last 10 minutes; once the account has two-factor authentication on, the session must also have verified one.

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
passwordstring

Required unless this session verified a second factor in the last 10 minutes

maxLength: 512

Responses

errors: application/problem+json
200

OK

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