Query Factory Information in Bulk

Last Updated on : 2023-12-07 03:33:49download

Based on a list of device IDs, query the factory information of multiple devices in bulk.

API address

GET: /v1.0/devices/factory-infos

Request parameter

Parameter nameTypeINRequiredDescription
device_idsStringquerytrueThe list of device IDs, separated with commas (,).

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
idStringThe device ID.
uuidStringThe universally unique identifier (UUID) of the specified device.
snStringThe serial number of the specified device.
macStringThe MAC address of the specified device.

Request example

GET: /v1.0/devices/factory-infos?device_ids=65057368c44f3380****,65057368c44f3381****

Return example

{
    "tid": "438d4c0b7d3911eeaf40161d72836dc2",
    "result": [
        {
            "uuid": "tuyaac****14d253",
            "mac": "DC:23:**:**:26:48",
            "id": "6cf0ca9a****ab76bfjntj",
            "sn": "6dsd****ddse"
        }
    ],
    "t": 1699339539557,
    "success": true
}

Error code

For more information, see error code.