Skip to main content

Introduction

Overview​

The Aqara Studio API provides a comprehensive set of interfaces that support you to efficiently and securely access and manage data related to devices, spaces, and automation within Aqara Studio.

With these APIs, you can list spaces and devices, control devices remotely, read and write trait values, and create, query, update, and delete automation rules.

Whether you are managing devices or building automation scenarios, the Studio API provides the essential capabilities needed to quickly integrate and extend Aqara platform data and services.

HTTP API List​

tip

Before reading each HTTP API document, please make sure you have read the following documents:

  • Getting Started with the HTTP API: Understand the key elements of Aqara Studio HTTP API requests (HTTP method, endpoint, headers, authentication, parameters) and responses (status codes, response body).
  • Try HTTP API Online: Learn how to conveniently test and verify API functions online from the documentation page.
  • Test API with Postman: Learn how to use Postman to debug Aqara Studio APIs.

Space​

NameAPI EndpointHTTP Method
List Spaces/open/api/v1/spacesGET
Create Space/open/api/v1/spacesPOST
Update Space Name/open/api/v1/spaces/namePOST
Delete Space/open/api/v1/spaces/deletePOST

Gateway​

NameAPI EndpointHTTP Method
List Gateways/open/api/v1/gatewaysGET
Gateway Joins Subdevice/open/api/v1/gateways/subdevices/joinPOST
Stop Gateway Subdevice Join/open/api/v1/gateways/subdevices/join/stopPOST
Get Device Bind Result/open/api/v1/gateways/subdevices/bindResultPOST

Device​

NameAPI EndpointHTTP Method
List Device Types/open/api/v1/devices/typesGET
List Devices/open/api/v1/devicesGET
Query Device Model Definition/open/api/v1/devices/definitionsGET
Query Device Matching Capabilities/open/api/v1/devices/capabilitiesGET
Control Devices by Traits/open/api/v1/devices/trait/executePOST
Query Trait Values/open/api/v1/devices/trait/readPOST
Control Devices by Commands/open/api/v1/devices/command/executePOST
Send Command to Device and Wait for Response/open/api/v1/devices/command/execute/awaitPOST
Batch Query Device Point Information/open/api/v1/devices/points/infoPOST
Update Device Name/open/api/v1/devices/namePOST
Update Device Point Name/open/api/v1/devices/points/namePOST
Delete A Function/open/api/v1/devices/points/deletePOST
Add A Virtual Device/open/api/v1/virtual-devicesPOST
Bind Source Device Function Points/open/api/v1/virtual-devices/points/bindPOST
Unbind Source Device Function Points/open/api/v1/virtual-devices/points/unbindPOST
Unbind A Device/open/api/v1/devices/unbindPOST

Automation​

NameAPI EndpointHTTP Method
List Automation Capabilities/open/api/v1/automations/capabilitiesGET
Create Automation/open/api/v1/automationsPOST
List Automations/open/api/v1/automationsGET
Query Automation Details/open/api/v1/automations/<automationId>GET
Edit Automation/open/api/v1/automations/<automationId>PATCH
Batch Update Automation Status/open/api/v1/automations/statusPOST
Batch Update Automation Space/open/api/v1/automations/spacePOST
Delete Automations/open/api/v1/automations/deletePOST

Firmware​

NameAPI EndpointHTTP Method
Query Upgradable Device Firmware by Device IDs/open/api/v1/firmware/upgradable-devices/search-by-device-idsPOST
Initiate Firmware Upgrade/open/api/v1/firmware/upgradePOST
Query Firmware Upgrade Progress and Result/open/api/v1/firmware/upgrade/status/searchPOST
Cancel firmware upgrade/open/api/v1/firmware/upgrade/cancelPOST

History​

NameAPI EndpointHTTP Method
Query Device Point Value Change History/open/api/v1/history/device-point-values/queryPOST

Studio​

NameAPI EndpointHTTP Method
Get Studio Statistics/open/api/v1/studio/statisticsGET

EMS​

NameAPI EndpointHTTP Method
Get Energy Consumption Trend of a Device/open/api/v1/ems/trend/devicePOST
Get Energy Consumption Trend of a Space/open/api/v1/ems/trend/spacePOST
Get Energy Consumption of a Device/open/api/v1/ems/total/devicePOST
Query Energy Consumption for a Space/open/api/v1/ems/total/spacePOST
Query Space Energy Consumption Summary/open/api/v1/ems/summary/spacePOST
Query Multi-Device Energy Consumption Summary/open/api/v1/ems/summary/devicesPOST

WebSocket API​

In addition to HTTP API, Aqara Studio also provides WebSocket-based subscription and push capabilities, suitable for receiving real-time trait value changes and object events. If you want to test connection, authentication, heartbeat, and subscription processes directly within the documentation, please visit the WebSocket API Playground.