LoguDocs
Open Logu

Sign-in · passkeyRegisterOptions

Start adding a passkey

POST /api/auth/passkeys/register/options

WebAuthn creation options for the signed-in account.

Who may call it
Anyone (no credentials)
Server
https://api.logu.dev

Example#

curl -s -X POST "https://api.logu.dev/api/auth/passkeys/register/options" \
  -H "Authorization: Bearer $LOGU_SESSION_TOKEN"

Responses#

200

The ceremony.

{
  "options": {
    "challenge": "Zk3vQ9…",
    "rpId": "logu.dev",
    "userVerification": "required"
  },
  "challengeToken": "aS7dQ2xLp9Vt4mKz.signature"
}
Response fields
FieldTypeRequiredNotes
optionsobjectrequiredPublicKeyCredentialCreationOptionsJSON / …RequestOptionsJSON.
challengeTokenstringrequiredThe ceremony's signed challenge reference: send it back with the response.

Errors#

Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.

StatusCodeMeaning
401unauthorizedNo credentials, or the API key or session is invalid or revoked.
500internal_errorSomething went wrong on Logu's side.