AdminRead a sensor's learned Matter device types, per endpoint

Read a sensor's learned Matter device types, per endpoint

The sticky Descriptor (29/0) device type this device taught us, one row per Matter endpoint, with when it was learned. This value interprets Boolean State (69/0) readings — contact (21) reports false when OPEN, while water leak (67), water freeze (65) and rain (68) report true when the condition is present — so a wrong row does not merely mislabel an alarm, it inverts it. An empty list means nothing has been learned yet, which is why such readings produce no alarm at all. Requires dual auth: X-Admin-API-Key + JWT.

curl -X GET "https://api.spkey.co/admin/sensor-device-type/John Doe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "thingName": "John Doe",
  "total": 3.14,
  "entries": [
    {
      "endpoint": 3.14,
      "deviceTypeId": 3.14,
      "updatedAt": "example_string"
    }
  ]
}
GET
/admin/sensor-device-type/{thingName}
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.
path
thingNamestring
Required

AWS IoT thing name — identical to the Matter device UUID / aggregate id.

Min length: 1
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

thingNamestring
Required

AWS IoT thing name — identical to the Matter device UUID / aggregate id.

Responses

thingNamestring
Required
totalnumber
Required
entriesarray
Required