コンテンツにスキップ

Verify Admin passkey login.

POST
/api/admin/auth/passkey/verify
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/admin/auth/passkey/verify \
--header 'Content-Type: application/json' \
--data '{ "token": "admin_setup_token_123", "challenge_id": "challenge_123", "passkey_response": { "id": "credential-id", "type": "public-key", "response": {} }, "origin": "https://admin.example.com" }'

Verifies an Admin UI passkey authentication response, updates the passkey counter, and returns the authenticated admin identity.

Media type application/json
object
token
required
string
challenge_id
required
string
passkey_response
required

WebAuthn credential response from the browser.

object
key
additional properties
origin
required
string format: uri
Example
{
"token": "admin_setup_token_123",
"challenge_id": "challenge_123",
"passkey_response": {
"id": "credential-id",
"type": "public-key",
"response": {}
},
"origin": "https://admin.example.com"
}

Successful JSON response.

Media type application/json
object
success
required
boolean
user
required
object
id
string
email
string format: email
name
Any of:
string
Example
{
"success": true,
"user": {
"id": "admin_123",
"email": "[email protected]",
"name": "Admin User"
}
}

Error response.

Media type application/json
object
error
string
error_description
string
message
string
webauthn_signal

Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.

object
unknown_credential
boolean
key
additional properties
Example generated
{
"error": "example",
"error_description": "example",
"message": "example",
"webauthn_signal": {
"unknown_credential": true
}
}

Error response.

Media type application/json
object
error
string
error_description
string
message
string
webauthn_signal

Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.

object
unknown_credential
boolean
key
additional properties
Example generated
{
"error": "example",
"error_description": "example",
"message": "example",
"webauthn_signal": {
"unknown_credential": true
}
}

Error response.

Media type application/json
object
error
string
error_description
string
message
string
webauthn_signal

Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.

object
unknown_credential
boolean
key
additional properties
Example generated
{
"error": "example",
"error_description": "example",
"message": "example",
"webauthn_signal": {
"unknown_credential": true
}
}