palbaseDocs

Palbase Auth API · API

POST/auth/webauthn/recovery/register/finish

Complete recovery passkey registration

Complete registration of a recovery passkey for the authenticated user. An account whose email address is not confirmed is refused (403 email_unconfirmed): no sign-in method is added to it until its address is confirmed, as its owner, proving the address, takes the account as it was opened.

Called by a signed-in user of your app, with their token and 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/register/finish" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"id":"string","rawId":"string","response":{"attestationObject":"string","authenticatorData":"string","clientDataJSON":"string","publicKey":"string","publicKeyAlgorithm":0,"transports":["string"]},"type":"public-key"}'

Responses

201Recovery credential registered

400Validation failed or required field missing

401Missing, invalid, or expired credentials

409Conflict with current resource state (duplicate, race)

503Downstream dependency unavailable (typically HIBP / breach service)

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

Operation WebauthnRecoveryRegisterFinish of auth's contract.