v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1352926.5 KB
devices

Gets the current states in Home Graph for the given set of the third-party user's devices. The third-party user's identity is passed in via the agent_user_id (see QueryRequest). This request must be authorized using service account credentials from your Actions console project.

post/v1/devices:query

Request body

requestIdstring

Request ID used for debugging.

includeDeviceMetadataboolean

Optional. If true, the response will include device metadata in the device_metadata field.

agentUserIdstring

Required. Third-party user ID.

deviceView'DEVICE_VIEW_UNSPECIFIED' | 'SMART_HOME_TRAIT_ONLY' | 'HOME_TRAIT_ONLY' | 'HOME_TRAIT_AND_SMART_HOME_TRAIT'

Optional. Specifies the type of device data to be returned in the response. This allows callers to request traditional Smart Home traits, Unified Device Data Model (UDDM) traits, or both. If unspecified, defaults to SMART_HOME_TRAIT_ONLY.

Response

Successful response