Get Device

Get a Device by its ID

Get a Device

Get a device

GET https://connect.getseam.com/devices/get

Retrieve a single device from your workspace using a device_id or a filter

Query Parameters

Name
Type
Description

device_id*

String

Device id

{
  "device": {
    "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"
      },
      "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": []
  },
  "ok": true
}

Code Example

seam.devices.get("123e4567-e89b-12d3-a456-426614174000")

# Device(
#   device_id='a83690b2-2b70-409a-9a94-426699b84c97', 
#   device_type='schlage_lock', 
#   location=None, 
#   properties={
#     'locked': False, 
#     'online': True, 
#     'battery_level': 0.48, 
#     'manufacturer': 'schlage',
#     'schlage_metadata': {
#       'device_id': 'device-3', 
#       'device_name': 'GARAGE'
#       }, 
#     'name': 'GARAGE'
#     }, 
#   capabilities_supported=[], 
#   errors=[]
#   )

Parameters

device_id

type: string

Device ID

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

{
  "device": {
    "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": []
  },
  "ok": true
}

Last updated

Was this helpful?