Query Device Information

Last Updated on : 2025-02-26 01:50:50download

Query the device information by the device serial number (SN).

API address

GET: /v1.0/cloud/thing/device/info

Request parameter

Parameter nameTypeINRequiredDescription
snStringquerytrueThe device SN.

Return parameter

Parameter nameTypeDescription
resultObjectThe returned result.
codeStringThe response code. It is empty if the request is successful.
msgStringThe message that is returned if the request fails. It is empty if the request is successful.
successBooleanIndicates whether the operation is successful.Valid values:
  • true: success
  • false: failure
tLongThe 13-digit timestamp of a response.

Description of result

Parameter nameTypeDescription
devIdStringThe ID of a Tuya-enabled device.
uuidStringThe universally unique identifier (UUID) of the specified device.

Request example

GET: /v1.0/cloud/thing/device/info?sn=BA190411PY0****

Return example

{
    "result": {
        "devId": "6c3c54beb3124053d2****",
        "uuid": "2630183568572d11****"
    },
    "t": 1734579142041,
    "success": true
}

Error code

For more information, see error code.