Palbase Auth API · API
/auth/webauthn/register/finishComplete passkey registration
Complete registration of an additional WebAuthn credential for the authenticated user.
A guest's account is converted with it (user.converted), under the same id. 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 · optionalclientExtensionResultsobject · optionalidstring · requiredrawIdstring · requiredresponseobject · requiredtype"public-key" · requiredcurl -X POST "https://<your-ref>.palbase.studio/auth/webauthn/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
201Credential 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 WebauthnRegisterFinish of auth's contract.