Palbase Auth API · API
POST
/auth/webauthn/login/beginBegin WebAuthn authentication
Start a WebAuthn authentication ceremony. Body is optional —
empty body triggers a discoverable (passkey) login; supplying
user_id or email scopes the assertion to an existing user.
Called by your app, with the publishable key.
Request body
auth_request_idstring · optionalLinks the passkey login to a pending /oauth/authorize request: bound to the ceremony here, completed when it finishes, whose answer then names the callback (`oidc_callback_url`). A request that is not waiting is refused with 400 `auth_request_invalid` before the person is asked for a passkey. A passkey completes it at `urn:nist:800-63:aal2`: amr `swk` for one that syncs, `hwk` for one bound to its device (a flag the authenticator reports, so it raises no level).emailstring (email) · optionaluser_idstring · optionalcurl
curl -X POST "https://<your-ref>.palbase.studio/auth/webauthn/login/begin" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "content-type: application/json" \
-d '{"auth_request_id":"string","email":"user@example.com","user_id":"string"}'Responses
200PublicKeyCredentialRequestOptions wrapped under `options`
400Validation failed or required field missing
503Downstream dependency unavailable (typically HIBP / breach service)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation WebauthnLoginBegin of auth's contract.