List passkeys
This paginated endpoint returns a summarized list of passkeys for a given domain.
GET https://api.passlock.dev/{tenancyId}/passkeys/ HTTP/1.1Authorization: Bearer {apiKey}Accept: application/jsonPassing the cursor:
GET https://api.passlock.dev/{tenancyId}/passkeys/?cursor=xxx HTTP/1.1HTTP Response:
HTTP/1.1 200 OKContent-Type: application/json
{ "_tag": "FindAllPasskeys", "cursor": "xa8bsv1bloaedwb98f0in", "records": [ { "_tag": "PasskeySummary", "id": "iww93q3zxd4qh26hta98h", "userId": "6tzynkjaa6pee2t8rafax", "enabled": true, "credential": { "id": "MTVkMTFmdHM1Yzg0bDN0anpieG9w", "userId": "bW9wN3IzenE0enJ5OXVnZXoxOWF4" }, "createdAt": 1770123293, "lastUsed": 1770123293 } ]}import { listPasskeys } from "@passlock/server";
const tenancyId = "myTenancyId";const apiKey = "myApiKey";
await listPasskeys({ tenancyId, apiKey });Response properties
Section titled “Response properties”| Property | Type | Description |
|---|---|---|
| cursor | string | Used to fetch the next page. Can be null |
| id | string | passkeyId/authenticatorId. Not to be confused with the credential ID |
| userId | string | Not to be confused with the credential user ID |
| credential | object | WebAuthn data directly related to the browser’s credential |
| enabled | boolean | Passkey enabled |
| createdAt | number | Passkey creation date |
| lastUsed | number | Last time the passkey was used for authentication |
credential
Section titled “credential”| Property | Type | Description |
|---|---|---|
| id | string (base64url) | The device native credential ID |
| userId | string (base64url) | The device native credential user ID |