List the public key credentials of the WebAuthn Registrations or Passkeys registered to a specific User.
List WebAuthn Credentials
GET
https://test.stytch.com/v1/webauthn/credentialsBody parameters
user_id* string
domain* string
Response fields
status_code int
request_id string
credentials array[object]
curl --request GET \
--url https://test.stytch.com/v1/webauthn/credentials \
-u 'PROJECT_ID:SECRET' \
-H 'Content-Type: application/json' \
-d '{
"user_id": "user-test-16d9ba61-97a1-4ba4-9720-b03761dc50c6",
"domain": "localhost"
}'
RESPONSE
200
{
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"public_keys": [
{
"public_key": "\"AAbb55jpkgGGAA4AFvmBBA==\"",
"type": "public_key",
"webauthn_registration_id": "webauthn-registration-test-5c44cc6a-8af7-48d6-8da7-ea821342f5a6"
}
],
"status_code": 200
}