Skip to content
POST
/api/v1/auth/register/start
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 }'
  • None

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.

Media typeapplication/json

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
device_name
required

What to call this passkey in Settings (“MacBook”, “iPhone”).

string
>= 1 characters <= 60 characters
setup_code
string | null

A WebAuthn ceremony in progress: options goes to navigator.credentials, and the result comes back with ceremony.

Media typeapplication/json

A WebAuthn ceremony in progress: options goes to navigator.credentials, and the result comes back with ceremony.

object
ceremony
required
string
options
required

WebAuthn options as JSON: pass them to navigator.credentials.create() (registering) or .get() (signing in).

Example generated

{
"ceremony": "example",
"options": "example"
}

An error, with its message.

Media typeapplication/json

Every error the REST API returns, with an HTTP status.

object
error
required
string

Example generated

{
"error": "example"
}