{ "uuid": "20f7a309-018c-495a-8323-7bb60244260c", "lastMigration": 29, "name": "HomeGraph API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "7b2eb2c1-00ef-4da8-8c4e-b9c5f5b9b374", "documentation": "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.", "method": "post", "endpoint": "v1/devices:query", "responses": [ { "uuid": "6a0e4875-a024-493b-a0ae-342651a50cb1", "body": "{\n \"payload\": {\n \"devices\": {}\n },\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6e932f17-aa59-46a9-b2ca-527bd1af7568", "documentation": "Reports device state and optionally sends device notifications. Called by your smart home Action when the state of a third-party device changes or you need to send a notification about the device. See [Implement Report State](https://developers.google.com/assistant/smarthome/develop/report-state) for more information. This method updates the device state according to its declared [traits](https://developers.google.com/assistant/smarthome/concepts/devices-traits). Publishing a new state value outside of these traits will result in an `INVALID_ARGUMENT` error response. The third-party user's identity is passed in via the `agent_user_id` (see ReportStateAndNotificationRequest). This request must be authorized using service account credentials from your Actions console project.", "method": "post", "endpoint": "v1/devices:reportStateAndNotification", "responses": [ { "uuid": "0ba063ff-2ecb-4a99-a404-97c799a50d2e", "body": "{\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "dcce1f49-1d6c-4e6f-911a-f86d63866434", "documentation": "Requests Google to send an `action.devices.SYNC` [intent](https://developers.google.com/assistant/smarthome/reference/intent/sync) to your smart home Action to update device metadata for the given user. The third-party user's identity is passed via the `agent_user_id` (see RequestSyncDevicesRequest). This request must be authorized using service account credentials from your Actions console project.", "method": "post", "endpoint": "v1/devices:requestSync", "responses": [ { "uuid": "948cab60-471c-49d2-943c-26d7789a7aa7", "body": "{}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "80227213-6e92-4e51-9617-10552d4270d2", "documentation": "Gets all the devices associated with the given third-party user. The third-party user's identity is passed in via the `agent_user_id` (see SyncRequest). This request must be authorized using service account credentials from your Actions console project.", "method": "post", "endpoint": "v1/devices:sync", "responses": [ { "uuid": "5cf76e31-5b5f-4023-991e-6f2f3f5f882c", "body": "{\n \"payload\": {\n \"agentUserId\": \"\",\n \"devices\": [\n {\n \"attributes\": {},\n \"customData\": {},\n \"deviceInfo\": {\n \"hwVersion\": \"\",\n \"manufacturer\": \"\",\n \"model\": \"\",\n \"swVersion\": \"\"\n },\n \"id\": \"\",\n \"name\": {\n \"defaultNames\": [\n \"\"\n ],\n \"name\": \"\",\n \"nicknames\": [\n \"\"\n ]\n },\n \"notificationSupportedByAgent\": {{faker 'datatype.boolean'}},\n \"otherDeviceIds\": [\n {\n \"agentId\": \"\",\n \"deviceId\": \"\"\n }\n ],\n \"roomHint\": \"\",\n \"structureHint\": \"\",\n \"traits\": [\n \"\"\n ],\n \"type\": \"\",\n \"willReportState\": {{faker 'datatype.boolean'}}\n }\n ]\n },\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "eacdb776-a413-486c-a30e-470a91916d66", "documentation": "Unlinks the given third-party user from your smart home Action. All data related to this user will be deleted. For more details on how users link their accounts, see [fulfillment and authentication](https://developers.google.com/assistant/smarthome/concepts/fulfillment-authentication). The third-party user's identity is passed in via the `agent_user_id` (see DeleteAgentUserRequest). This request must be authorized using service account credentials from your Actions console project.", "method": "delete", "endpoint": "v1/:agentUserId", "responses": [ { "uuid": "da088f85-809a-4933-b68b-c1c4d36896a7", "body": "{}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "7b2eb2c1-00ef-4da8-8c4e-b9c5f5b9b374" }, { "type": "route", "uuid": "6e932f17-aa59-46a9-b2ca-527bd1af7568" }, { "type": "route", "uuid": "dcce1f49-1d6c-4e6f-911a-f86d63866434" }, { "type": "route", "uuid": "80227213-6e92-4e51-9617-10552d4270d2" }, { "type": "route", "uuid": "eacdb776-a413-486c-a30e-470a91916d66" } ] }