Register
Registers a passkey for the authenticated user from the attestation a browser produced for a registration challenge. Mint that challenge first with POST /users/me/passkeys/challenge; it is single-use and expires 5 minutes after it is issued. Requires a user session.
Headers
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Example request
{
"attestation_object": "YXR0ZXN0YXRpb24",
"client_data_json": "Y2xpZW50LWRhdGE",
"credential_id": "bmV3LWNyZWRlbnRpYWw",
"nickname": "Work laptop"
}Response
passkey registered
Example response
{
"created_at": "2026-01-01T12:00:00.000Z",
"credential_id": "bGFwdG9wLWNyZWRlbnRpYWw",
"id": "wcred_xxxxxxxxxxxxxx",
"last_used_at": "2026-01-01T12:00:00.000Z",
"nickname": "MacBook Pro"
}Changes
Changed in 3 of the 74 revisions of this API.5
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-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 74 revisions, 1 has no diff computed.