Seam Docs
Search…
Devices
An internet-connected device that has been connected to the Seam platform.

The Device Object

device_id
uuid
ID of the Device
device_type
string
Type of Device
workspace_id
uuid
ID of the workspace that the device belongs to
properties
object
Properties for the Device
created_at
datetime
Timestamp of creation time
location
object
Location information for the Device

Get a Device

get
https://connect.getseam.com
/devices/get
Get a device
Python
Javascript
1
from seamapi import Seam
2
​
3
seam = Seam()
4
device_id = "123e4567-e89b-12d3-a456-426614174000"
5
device = seam.devices.get(device_id)
6
​
7
print(device)
8
# {
9
# "device_id": "123e4567-e89b-12d3-a456-426614174000",
10
# "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
11
# "properties": {},
12
# "location": {},
13
# "device_type": "SCHLAGE_LOCK",
14
# "third_party_account_id": "123e4567-e89b-12d3-a456-426614174000",
15
# "name": "Workspace 1",
16
# "is_sandbox": false
17
# }
Copied!
1
import Seam from "seamapi"
2
​
3
const seam = Seam()
4
const deviceId = "123e4567-e89b-12d3-a456-426614174000"
5
const device = await seam.devices.get(deviceId)
6
​
7
console.log(device)
8
​
9
/*
10
{
11
"device_id": "123e4567-e89b-12d3-a456-426614174000",
12
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
13
"properties": {},
14
"location": {},
15
"device_type": "SCHLAGE_LOCK",
16
"third_party_account_id": "123e4567-e89b-12d3-a456-426614174000",
17
"name": "Workspace 1",
18
"is_sandbox": false
19
}
20
*/
Copied!

List Devices

get
https://connect.getseam.com
/devices/list
Get a list of devices
Python
Javascript
1
from seamapi import Seam
2
​
3
seam = Seam()
4
devices = seam.devices.list()
5
​
6
print(devices)
7
# [
8
# {
9
# "device_id": "123e4567-e89b-12d3-a456-426614174000",
10
# "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
11
# "properties": {},
12
# "location": {},
13
# "device_type": "SCHLAGE_LOCK",
14
# "third_party_account_id": "123e4567-e89b-12d3-a456-426614174000",
15
# "name": "Workspace 1",
16
# "is_sandbox": false
17
# }
18
# ]
Copied!
1
import Seam from "seamapi"
2
​
3
const seam = Seam()
4
const devices = await seam.devices.list()
5
​
6
console.log(devices)
7
/*
8
[
9
{
10
"device_id": "123e4567-e89b-12d3-a456-426614174000",
11
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
12
"properties": {},
13
"location": {},
14
"device_type": "SCHLAGE_LOCK",
15
"third_party_account_id": "123e4567-e89b-12d3-a456-426614174000",
16
"name": "Workspace 1",
17
"is_sandbox": false
18
}
19
]
20
*/
Copied!

​