Start registering a passkey
const url = 'https://deck.example.com/api/v1/auth/register/start';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"device_name":"example","setup_code":null}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://deck.example.com/api/v1/auth/register/start \ --header 'Content-Type: application/json' \ --data '{ "device_name": "example", "setup_code": null }'Authorizations
Section titled “Authorizations”- None
Request Bodyrequired
Section titled “Request Bodyrequired”Start registering a passkey. Signed in, it adds one for this device; with a setup code (from
quietdeck-server setup-code), it registers the first one, or recovers a deck whose passkeys are all lost.
Start registering a passkey. Signed in, it adds one for this device; with a setup code (from
quietdeck-server setup-code), it registers the first one, or recovers a deck whose passkeys are all lost.
object
What to call this passkey in Settings (“MacBook”, “iPhone”).
Responses
Section titled “Responses”A WebAuthn ceremony in progress: options goes to navigator.credentials, and the result comes back with
ceremony.
A WebAuthn ceremony in progress: options goes to navigator.credentials, and the result comes back with
ceremony.
object
WebAuthn options as JSON: pass them to navigator.credentials.create() (registering) or .get() (signing in).
Example generated
{ "ceremony": "example", "options": "example"}default
Section titled “default”An error, with its message.
Every error the REST API returns, with an HTTP status.
object
Example generated
{ "error": "example"}