Complete Passkey.
POST
/api/admin/me/passkeys/complete
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/me/passkeys/complete \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "challenge_id": "challenge_123", "origin": "https://admin.test.authrim.com", "passkey_response": { "id": "credential-id", "type": "public-key", "response": {} }, "device_name": "MacBook Pro" }'Complete Passkey in the Admin Passkeys area. The request body is JSON unless the detailed schema for this operation states otherwise.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Complete current-admin passkey registration.
Media type application/json
object
challenge_id
required
string
passkey_response
required
object
key
additional properties
origin
required
string
device_name
string
Example
{ "challenge_id": "challenge_123", "origin": "https://admin.test.authrim.com", "passkey_response": { "id": "credential-id", "type": "public-key", "response": {} }, "device_name": "MacBook Pro"}Responses
Section titled “ Responses ”Passkey mutation result.
Media type application/json
object
success
required
boolean
passkey
required
object
id
required
string
device_name
required
string | null
aaguid
required
Display-only WebAuthn authenticator AAGUID. Do not use for trust decisions.
string | null
provider
required
created_at
required
integer format: int64
Example
{ "success": true, "passkey": { "id": "apk_123", "device_name": "MacBook Pro", "created_at": 1770000000000, "last_used_at": null }}default
Section titled “default ”Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}