List User Credentials
curl -X GET "https://your-domain.com/recipe/webauthn/user/credential/list?recipeUserId=recipe-user-id" \
-H "Content-Type: application/json"
{
"status": "OK",
"credentials": [
{
"credentialId": "credential-id-1",
"publicKey": "base64-public-key",
"counter": 1,
"transports": ["usb", "nfc"],
"createdAt": 1234567890000
},
{
"credentialId": "credential-id-2",
"publicKey": "base64-public-key",
"counter": 5,
"transports": ["internal"],
"createdAt": 1234567900000
}
]
}
The recipe user ID to list credentials for
Array of credential objects for this user
credentials[].credentialId
Unique identifier for the credential
Base64-encoded public key
Signature counter value (for replay detection)
Supported transport methods (e.g., “usb”, “nfc”, “ble”, “internal”)
Timestamp when credential was created (milliseconds since epoch)
Get Specific Credential
curl -X GET "https://your-domain.com/recipe/webauthn/user/credential/?recipeUserId=recipe-user-id&webauthnCredentialId=credential-id" \
-H "Content-Type: application/json"
{
"status": "OK",
"credentialId": "credential-id",
"publicKey": "base64-public-key",
"counter": 1,
"transports": ["usb", "nfc"],
"createdAt": 1234567890000
}
The credential ID to retrieve
“OK” or “CREDENTIAL_NOT_FOUND_ERROR”
Unique identifier for the credential
Base64-encoded public key
Supported transport methods
Timestamp when credential was created
Remove Credential
curl -X DELETE "https://your-domain.com/recipe/webauthn/user/credential/remove?recipeUserId=recipe-user-id&webauthnCredentialId=credential-id" \
-H "Content-Type: application/json"
The credential ID to remove
“OK” or “CREDENTIAL_NOT_FOUND_ERROR”