List Devices
Changed onGet a list of devices.
Request
- Base URLhttps://api.smartthings.com/v1
- Auth
- OAuth 2Implicithttps://auth-global.api.smartthings.comScopesl:devices
- or OAuth 2Implicithttps://auth-global.api.smartthings.comScopesr:devices:*
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The device capabilities to filter the results by. The capabilities are treated as an "and" so all capabilities must be present.
The device locations to filter the results by.
The device IDs to filter the results by.
Treat all capability filter query params as a logical "or" or "and" with a default of "and".
Restricted devices are hidden by default. This query parameter will reveal them. Device status will not be provided if the token does not have sufficient access level to view the device status even if includeStatus parameter is set to true.
Only list devices accessible by the given accessLevel.
Include the actions permitted by this token's access for each individual resource.
Include the status of the device's capabilities, if permission is adequate to view them. This requires r:devices permission.
Include the health status of the device. Requires r:devices permission.
Include hidden devices in the results. Requires r:devices permission.
Response
A list of devices.
Changes
- info
the security scope
l:deviceswas added to the endpoint's security schemeBearer - info
the security scope
r:devices:*was removed from the endpoint's security schemeBearer - info
added the new optional
queryrequest parameterincludeHiddenDevices
- info
- info
the security scope
l:deviceswas added to the endpoint's security schemeBearer - info
the security scope
r:devices:*was removed from the endpoint's security schemeBearer - info
added the new optional
queryrequest parameterincludeHealth - info
added the new optional
queryrequest parameterincludeStatus
- info