API Reference
Passkey Management
API endpoint for listing the passkey of the authenticated user.
List passkey
Returns all passkey associated with the currently authenticated user.
GET /api/passkeys
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Response — 200 OK
Response
[
{
"id": 1,
"label": "MacBook Touch ID",
"credential_id": "base64-encoded-credential-id",
"created_at": "2024-01-15T10:30:00.000000Z"
},
{
"id": 2,
"label": "iPhone Face ID",
"credential_id": "base64-encoded-credential-id-2",
"created_at": "2024-02-01T08:00:00.000000Z"
}
]
Returns an empty array [] if the user has no registered passkey.
This endpoint requires authentication. Include an
Authorization: Bearer <token> header.