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
bearerAuthorizationheader · stringrequired
Session token from POST /v1/auth/login with "transport": "bearer". Browsers use the session cookie that login sets instead.
Body
application/jsonpasswordstring
Required unless this session verified a second factor in the last 10 minutes
maxLength: 512Responses
errors: application/problem+json200
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.