Retrieving Devices or Access Control Systems Connected Through a Connect Webview
Learn how to retrieve the set of devices or ACS that your app user connected to Seam through a specific Connect Webview.
Retrieve Connected Devices
// Retrieve all devices for the connected_account_id.
const connectedDevices = await seam.devices.list({
connected_account_id: "11111111-1111-1111-1111-222222222222"
});[
{
connected_account_id: '11111111-1111-1111-1111-222222222222',
device_id: '11111111-1111-1111-1111-444444444444',
display_name: 'Front Door Lock',
is_managed: true,
...
},
...
]# Retrieve all devices for the connected_account_id.
connected_devices=$(
# Use GET or POST.
curl -X 'GET' \
'https://connect.getseam.com/devices/list' \
-H 'accept: application/json' \
-H "Authorization: Bearer ${SEAM_API_KEY}" \
-H 'Content-Type: application/json' \
-d '{
"connected_account_id": "11111111-1111-1111-1111-222222222222"
}'){
"devices": [
{
"connected_account_id": "11111111-1111-1111-1111-222222222222",
"device_id": "11111111-1111-1111-1111-444444444444",
"display_name": "Front Door Lock",
"is_managed": true,
...
},
...
],
"ok": true
}Retrieve a Connected Access Control System
Last updated
Was this helpful?

