{
"device_types": [
{
"device_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"display_name": "<string>",
"is_accessory": true,
"sort_order": 0,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"has_next_page": true,
"next_page_cursor": "<string>"
},
"ok": true
}{
"ok": false,
"error": {
"type": "<string>",
"message": "<string>",
"request_id": "<string>",
"data": {}
}
}{
"ok": false,
"error": {
"type": "<string>",
"message": "<string>",
"request_id": "<string>",
"data": {}
}
}{
"ok": false,
"error": {
"type": "<string>",
"message": "<string>",
"request_id": "<string>",
"data": {}
}
}{
"ok": false,
"error": {
"type": "<string>",
"message": "<string>",
"request_id": "<string>",
"data": {}
}
}API Reference
List Device Types
Lists published device types, such as smartlock and thermostat, ordered for display.
GET
/
device_types
/
list
{
"device_types": [
{
"device_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"display_name": "<string>",
"is_accessory": true,
"sort_order": 0,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"has_next_page": true,
"next_page_cursor": "<string>"
},
"ok": true
}{
"ok": false,
"error": {
"type": "<string>",
"message": "<string>",
"request_id": "<string>",
"data": {}
}
}{
"ok": false,
"error": {
"type": "<string>",
"message": "<string>",
"request_id": "<string>",
"data": {}
}
}{
"ok": false,
"error": {
"type": "<string>",
"message": "<string>",
"request_id": "<string>",
"data": {}
}
}{
"ok": false,
"error": {
"type": "<string>",
"message": "<string>",
"request_id": "<string>",
"data": {}
}
}Authorizations
secret_keyembed_keyembed_key_param
Optional on endpoints that serve published content. A secret key (eco_sk_…), sent as Authorization: Bearer eco_sk_… from your servers only. A manufacturer secret key implies its manufacturer and can include that manufacturer's device models hidden from third parties.
Query Parameters
Only device types with these slugs.
Filter by the accessory flag.
Maximum number of device types to return (1-500).
Required range:
1 <= x <= 500The next_page_cursor from the previous page.
Was this page helpful?