palbaseDocs

Palbase Auth API · API

POST/auth/webauthn/recovery/finish

Complete recovery passkey authentication

Complete an account-recovery ceremony and open a session. Only credentials registered as recovery passkeys are accepted.

Called by your app, with the publishable key.

Request body

authenticatorAttachmentstring · optional
clientExtensionResultsobject · optional
idstring · required
rawIdstring · required
responseobject · required
type"public-key" · required
curl
curl -X POST "https://<your-ref>.palbase.studio/auth/webauthn/recovery/finish" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "content-type: application/json" \
  -d '{"id":"string","rawId":"string","response":{"authenticatorData":"string","clientDataJSON":"string","signature":"string","userHandle":"string"},"type":"public-key"}'

Responses

200Session created via recovery

400Validation failed or required field missing

403Authenticated but not permitted (banned, hook denial, role mismatch)

503Downstream dependency unavailable (typically HIBP / breach service)

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation WebauthnRecoveryFinish of auth's contract.