{ "opencollection": "1.0.0", "info": { "name": "Tuya Device Management Device Control API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "client_id", "value": "{{client_id}}", "placement": "header" } }, "items": [ { "info": { "name": "Device Control", "type": "folder" }, "items": [ { "info": { "name": "Send Device Commands", "type": "http" }, "http": { "method": "POST", "url": "https://openapi.tuyaus.com/v1.0/devices/:device_id/commands", "params": [ { "name": "device_id", "value": "", "type": "path", "description": "Unique device identifier" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Send one or more control commands to a device. Commands correspond to device data points (DPs) defined in the product schema." }, { "info": { "name": "Get Device Status", "type": "http" }, "http": { "method": "GET", "url": "https://openapi.tuyaus.com/v1.0/devices/:device_id/status", "params": [ { "name": "device_id", "value": "", "type": "path", "description": "Unique device identifier" } ] }, "docs": "Retrieve the current status of all data points for a device." }, { "info": { "name": "Reset Device to Factory Settings", "type": "http" }, "http": { "method": "PUT", "url": "https://openapi.tuyaus.com/v1.0/devices/:device_id/reset-factory", "params": [ { "name": "device_id", "value": "", "type": "path", "description": "Unique device identifier" } ] }, "docs": "Restore a device to its factory default settings and unpair it from the current account." } ] } ], "bundled": true }