Get passkey
Get all passkey data for a passkey including the public key. Call this endpoint if you want to extract the public-key component of a passkey for use in another platform or library.
1GET https://api.passlock.dev/v2/{tenancyId}/passkeys/{passkeyId} HTTP/1.12Authorization: Bearer {apiKey}3Accept: application/json1HTTP/1.1 200 OK2Content-Type: application/json3
4{5 "_tag": "Passkey",6 "id": "sewqeeqx69cr7axut7kat",7 "userId": "puubifsmidah0f8c0y9bm",8 "enabled": true,9 "credential": {10 "id": "bW9wN3IzenE0enJ5OXVnZXoxOWF4",11 "userId": "MTVkMTFmdHM1Yzg0bDN0anpieG9w",12 "username": "jdoe@example.com",13 "aaguid": "0000-0000-0000-0000",14 "backedUp": true,15 "counter": 0,16 "deviceType": "multiDevice",17 "transports": ["internal"],18 "publicKey": "dGhpcy1pcy1hLWNib3ItcHVibGljLWtleQ",19 "rpId": "example.com"20 },21 "platform": {22 "icon": "https://api.passlock.dev/v2/aaguid/0000-0000-0000/icon.svg",23 "name": "Apple Passwords"24 },25 "createdAt": 1770123293,26 "updatedAt": 1770123293,27 "lastUsed": 177012329328}HTTP response properties
Section titled “HTTP response properties”| Property | Type | Description |
|---|---|---|
id | string | passkeyId. Not to be confused with the credential.id |
userId | string | undefined | Optional custom user ID. Not to be confused with the credential.userId |
enabled | boolean | Passkey enabled |
credential | object | WebAuthn data directly related to the browser’s credential |
platform | object | undefined | Optional details about the authenticator platform |
createdAt | number | Passkey creation date |
updatedAt | number | Passkey update/changed date |
lastUsed | number | undefined | Present if the passkey has been used for authentication |
credential
Section titled “credential”| Property | Type | Description |
|---|---|---|
id | string | Device native credential ID |
userId | string | Device native credential user ID |
aaguid | string | Global ID representing the platform used |
backedUp | boolean | Backup/sync status |
counter | number | Credential counter. Unreliable |
deviceType | string | singleDevice or multiDevice |
transports | array | Credential transport mechanisms |
publicKey | string (Base64Url) | Base64Url encoded public key in the raw HTTP response |
rpId | string | Relying Party ID associated with the credential |
platform
Section titled “platform”| Property | Type | Description |
|---|---|---|
icon | string | undefined | Optional URL to an icon representing the authenticator platform |
name | string | undefined | Optional platform name, e.g. Apple Passwords |