List Accessible Devices for a User Identity

POST /user_identities/list_accessible_devices ⇒ { devices: [device, …] }

Returns a list of all devices associated with a specified user identity.

Request

await seam.userIdentities.listAccessibleDevices({
  user_identity_id: "f3a328b4-dd04-4370-9000-d52b7a01b0bf",
});

Response

[
  {
    "device_id": "054765c8-a2fc-4599-b486-14c19f462c45",
    "nickname": "",
    "display_name": "Seam Thermostat",
    "device_type": "nest_thermostat",
    "capabilities_supported": ["thermostat"],
    "properties": {
      "online": true,
      "is_cooling": false,
      "is_heating": false,
      "manufacturer": "nest",
      "nest_metadata": {
        "custom_name": "",
        "device_name": "enterprises/nest_project_id/devices/AVPHwEvjFcX-wRmGdXApyxON24SAI0S9oU13a2GSVFLPVehUKH1ATqlASyKi2N2dbJCVW-B6-VxgbhdjUyyjA-K3Vo5C9g",
        "nest_device_id": "bcca8c5f-1854-4906-9911-c877d513e00a"
      },
      "is_fan_running": false,
      "has_direct_power": true,
      "relative_humidity": 0.46,
      "temperature_celsius": 24.64,
      "temperature_fahrenheit": 76.352,
      "current_climate_setting": {
        "hvac_mode_setting": "heat_cool",
        "manual_override_allowed": true,
        "cooling_set_point_celsius": 21.5,
        "heating_set_point_celsius": 20,
        "cooling_set_point_fahrenheit": 70.7,
        "heating_set_point_fahrenheit": 68
      },
      "available_hvac_mode_settings": ["heat", "cool", "heat_cool", "off"],
      "is_temporary_manual_override_active": false,
      "name": "",
      "appearance": { "name": "" },
      "model": {
        "display_name": "Thermostat",
        "manufacturer_display_name": "Nest",
        "accessory_keypad_supported": false
      },
      "image_url": "https://connect.getseam.com/assets/images/devices/unknown-lock.png",
      "image_alt_text": "Placeholder Lock Image",
      "is_climate_setting_schedule_active": false
    },
    "location": null,
    "connected_account_id": "44284499-a50b-4947-86c1-58264f014be5",
    "workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be",
    "created_at": "2024-02-29T21:57:33.397Z",
    "errors": [],
    "warnings": [],
    "is_managed": true,
    "custom_metadata": {}
  }
]

Request Parameters

user_identity_id

Type: string Required: Yes

ID of the user identity for which you want to retrieve all accessible devices.


Return Type

Array<device>

Last updated

Logo

© Seam Labs, Inc. All rights reserved.