Create Challenge
Mints the challenge a browser needs to run a WebAuthn ceremony against the authenticated user's own passkeys. A registration challenge enrolls a new passkey; a deletion challenge is bound to the one passkey named by passkey_id and proves the user still holds it. Challenges are single-use and expire 5 minutes after they are issued, so send a fresh Idempotency-Key per ceremony — a replayed key returns the original challenge, which may already have expired. Requires a user session.
Headers
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Example request
{
"challenge_type": "registration",
"passkey_id": "wcred_xxxxxxxxxxxxxx"
}Response
challenge minted
Example response
{
"challenge": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}Changes
Changed in 3 of the 42 revisions of this API.6
- ○
added the non-success response with the status
409response-non-success-status-added
- ○
- ○
added the optional property
error/codeto the response with the400statusresponse-optional-property-added
- ○
added the optional property
error/codeto the response with the401statusresponse-optional-property-added
- ○
added the optional property
error/codeto the response with the403statusresponse-optional-property-added
- ○
added the optional property
error/codeto the response with the404statusresponse-optional-property-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
Of the 42 revisions, 1 has no diff computed.