Skip to main content
GET
/
api
/
v1
/
device-keys
List device keys
curl --request GET \
  --url https://staging.zerolatencylabs.com/api/v1/device-keys \
  --header 'X-DEVICE-KEY: <api-key>'
[
  {
    "created_at": "2024-06-23T16:00:00.000Z",
    "id": "0190b6c2-7e4a-7c3b-9f21-2b6a1c4e5d8f",
    "key_prefix": "k8Jq3xQp",
    "last_seen_at": "2024-06-23T16:00:00.000Z",
    "device_label": "MacBook Pro",
    "subaccount_index": 0
  }
]

Authorizations

X-DEVICE-KEY
string
header
required

Base64-encoded device-key secret issued by POST /api/v1/login.

Response

Device keys for the account

created_at
string<date-time>
required

Creation timestamp.

Example:

"2024-06-23T16:00:00.000Z"

id
string<uuid>
required

Device key identifier.

Example:

"0190b6c2-7e4a-7c3b-9f21-2b6a1c4e5d8f"

key_prefix
string
required

First 8 characters of the secret, for display only.

Example:

"k8Jq3xQp"

last_seen_at
string<date-time>
required

Timestamp of the key's most recent use.

Example:

"2024-06-23T16:00:00.000Z"

device_label
string | null

Human-readable label set at login time, if any.

Example:

"MacBook Pro"

subaccount_index
integer<int32> | null

Subaccount the key is pinned to, if any.

Required range: x >= 0
Example:

0