QueryList / search the user's physical keys

List / search the user's physical keys

Lists physical-key entries for the user. Optional filters: orgId (exact), orgName (exact), q (case-insensitive substring match on note). Filters combine with AND. Capped at 100 entries; total reflects filtered count before the cap.

curl -X GET "https://api.spkey.co/users/example_string/PhysicalKeys?orgId=example_string&orgName=John%20Doe&q=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "keys": [
    {
      "number": 42,
      "orgId": "example_string",
      "orgName": "John Doe",
      "note": "example_string",
      "addedAt": 3.14
    }
  ],
  "total": 42
}
GET
/users/{id}/PhysicalKeys
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.
API Key (header: X-API-Key)
X-API-Keystring
Required

API key for B2B organization access. Provided during organization onboarding.

API key for B2B organization access. Provided during organization onboarding.
query
orgIdstring

Filter by exact orgId match

query
orgNamestring

Filter by exact orgName match

query
qstring

Case-insensitive substring match against the note field

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

header
X-API-Keystring
Required

API Key for authentication. API key for B2B organization access. Provided during organization onboarding.

Path Parameters

Query Parameters

orgIdstring

Filter by exact orgId match

orgNamestring

Filter by exact orgName match

qstring

Case-insensitive substring match against the note field

Responses

keysarray
Required
totalinteger
Required

Filtered count BEFORE the 100-result cap