Start signing in with a passkey
POST
/api/v1/auth/login/start
const url = 'https://deck.example.com/api/v1/auth/login/start';const options = {method: 'POST'};
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/login/startAuthorizations
Section titled “Authorizations”- None
Responses
Section titled “Responses”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"}default
Section titled “default”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"}