1. Real-time Data
OpenAPI
  • Account Authentication
    • Login
      POST
  • Wattsonic OpenAPI
    • Query real time info
      POST
    • Unbind MQTT topic
      POST
    • Bind MQTT topic
      POST
    • Remote Operate WattMate
      POST
    • Remote Config WattMate
      POST
    • Query WattMate history
      GET
  • Real-time Data
    • Quick Start
    • Subscription of real-time data
    • `fields` Parameter for /ws/openapi/wattmate/tsd
  • Schemas
    • Schemas
      • OpenApiBindEvent
      • OpenApiAuthenticateEvent
      • ResultString
    • LocalTime
    • ResultVoid
    • ResultWattMateVo
    • WattMateVo
    • WmHeater
    • WmNetwork
    • WmPlan
    • WattMateUnbindTopicEvent
    • WattMateBindTopicEvent
    • WattMateOperateEvent
    • WattMateConfigEventV2
    • WattMatePlan
    • LoginEvent
    • ResultWattsonicToken
    • WattsonicToken
    • ResultListWattMateVo
  1. Real-time Data

Quick Start

Login and Retrieve Access Token#

You can log in through the Login API:
Login API Example
After a successful login, you will receive an Access Token.
⚠️ Important: Always include the following headers in your HTTP requests:
Platform: WEB
APPS: DESK

Bind Device to MQTT Topic#

Once you’ve logged in, you can bind your device to your account using the Bind Device API:
Bind Device API Example
Follow these steps:
1.
Copy your Access Token and add it to the Header parameters.
2.
Provide the productSn and checkCode fields in the JSON body.
After the API call is successfully executed, you will begin receiving events from the specified device SN via MQTT.
Modified at 2025-10-30 08:11:34
Previous
Query WattMate history
Next
Subscription of real-time data
Built with