List Devices
List Devices
Get a list of devices
GET
https://connect.getseam.com/devices/list
Retrieve a list of devices, optionally filtered
Request Body
connected_account_id
String
ID of Connected Account you'd like to filter by
connect_webview_id
String
ID of Connect Webview you'd like to filter by
workspace_id
String
ID of Workspace you'd like to filter with
{
"devices": [
{
"device_id": "6b0afc38-7883-4efd-a31d-fccf6c04d809",
"device_type": "schlage_lock",
"capabilities_supported": [],
"properties": {
"locked": false,
"online": true,
"battery_level": 0.48,
"schlage_metadata": {
"device_id": "device-3",
"device_name": "GARAGE"
},
"max_active_codes_supported": 100,
"supported_code_lengths": [
6
],
"name": "GARAGE"
},
"location": null,
"connected_account_id": "9dcedcb3-5ede-4b66-9e07-f9ef97b3c29b",
"workspace_id": "f97073eb-c003-467a-965b-e6dba3a0131d",
"created_at": "2022-08-24T10:38:05.759Z",
"errors": []
},
{
"device_id": "2aa2c8e6-a255-4548-96fd-8eac38ca031d",
"device_type": "schlage_lock",
"capabilities_supported": [],
"properties": {
"locked": false,
"online": true,
"battery_level": 0.48,
"schlage_metadata": {
"device_id": "device-1",
"device_name": "FRONT DOOR"
},
"max_active_codes_supported": 100,
"supported_code_lengths": [
6
],
"name": "FRONT DOOR"
},
"location": null,
"connected_account_id": "9dcedcb3-5ede-4b66-9e07-f9ef97b3c29b",
"workspace_id": "f97073eb-c003-467a-965b-e6dba3a0131d",
"created_at": "2022-08-24T10:38:05.476Z",
"errors": []
},
{
"device_id": "70ad4408-78dd-4e29-b0c0-c8f9eb4478d1",
"device_type": "schlage_lock",
"capabilities_supported": [],
"properties": {
"locked": false,
"online": true,
"battery_level": 0.48,
"schlage_metadata": {
"device_id": "device-2",
"device_name": "BACK DOOR"
},
"max_active_codes_supported": 100,
"supported_code_lengths": [
6
],
"name": "BACK DOOR"
},
"location": null,
"connected_account_id": "9dcedcb3-5ede-4b66-9e07-f9ef97b3c29b",
"workspace_id": "f97073eb-c003-467a-965b-e6dba3a0131d",
"created_at": "2022-08-24T10:38:05.618Z",
"errors": []
}
],
"ok": true
}
Code Example
seam.devices.list()
# [
# {
# "device_id": "123e4567-e89b-12d3-a456-426614174000",
# "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
# "properties": {},
# "location": {},
# "manufacturer": "schlage",
# "device_type": "SCHLAGE_LOCK",
# "third_party_account_id": "123e4567-e89b-12d3-a456-426614174000",
# "name": "Workspace 1",
# "is_sandbox": false
# }
# ]
Parameters
connected_account_id
type: string Optional
ID of the Connected Account
connected_account_ids
type: string[] Optional
IDs of the Connected Accounts
connect_webview_id
type: string Optional
ID of Connect Webview
workspace_id
type: String Optional
ID of Workspace
manufacturer
type: String Optional
Device manufacturer
device_ids
type: string[] Optional
IDs of the Devices to include
Response
This section shows the JSON response returned by the API. Since each language encapsulates this response inside objects specific to that language and/or implementation, the actual type in your language might differ from what’s written here.
JSON format
{
"devices": [
{
"device_id": "6b0afc38-7883-4efd-a31d-fccf6c04d809",
"device_type": "schlage_lock",
"capabilities_supported": [],
"properties": {
"locked": false,
"online": true,
"battery_level": 0.48,
"manufacturer": "schlage",
"schlage_metadata": {
"device_id": "device-3",
"device_name": "GARAGE"
},
"max_active_codes_supported": 100,
"supported_code_lengths": [
6
],
"name": "GARAGE"
},
"location": null,
"connected_account_id": "9dcedcb3-5ede-4b66-9e07-f9ef97b3c29b",
"workspace_id": "f97073eb-c003-467a-965b-e6dba3a0131d",
"created_at": "2022-08-24T10:38:05.759Z",
"errors": []
},
{
"device_id": "2aa2c8e6-a255-4548-96fd-8eac38ca031d",
"device_type": "schlage_lock",
"capabilities_supported": [],
"properties": {
"locked": false,
"online": true,
"battery_level": 0.48,
"manufacturer": "schlage",
"schlage_metadata": {
"device_id": "device-1",
"device_name": "FRONT DOOR"
},
"max_active_codes_supported": 100,
"supported_code_lengths": [
6
],
"name": "FRONT DOOR"
},
"location": null,
"connected_account_id": "9dcedcb3-5ede-4b66-9e07-f9ef97b3c29b",
"workspace_id": "f97073eb-c003-467a-965b-e6dba3a0131d",
"created_at": "2022-08-24T10:38:05.476Z",
"errors": []
},
{
"device_id": "70ad4408-78dd-4e29-b0c0-c8f9eb4478d1",
"device_type": "schlage_lock",
"capabilities_supported": [],
"properties": {
"locked": false,
"online": true,
"battery_level": 0.48,
"manufacturer": "schlage",
"schlage_metadata": {
"device_id": "device-2",
"device_name": "BACK DOOR"
},
"max_active_codes_supported": 100,
"supported_code_lengths": [
6
],
"name": "BACK DOOR"
},
"location": null,
"connected_account_id": "9dcedcb3-5ede-4b66-9e07-f9ef97b3c29b",
"workspace_id": "f97073eb-c003-467a-965b-e6dba3a0131d",
"created_at": "2022-08-24T10:38:05.618Z",
"errors": []
}
],
"ok": true
}
Last updated
Was this helpful?