Bulk Query Firmware Details by Firmware Key

Last Updated on : 2024-06-13 10:37:58download

Query the firmware details based on the product ID and firmware key on the Tuya Developer Platform. The firmware details include firmware key, protocol type, firmware name in Chinese and English, classification, and ID.

API address

GET: /v1.0/iot-03/product/firmwares

Request parameter

Parameter nameTypeINRequiredDescription
product_idStringquerytrueThe product ID.
firmware_keysStringquerytrueThe list of firmware keys.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
firmware_keyStringThe firmware key.
communication_typesListThe protocol type. Valid values:
  • wifi
  • bluetooth
  • gprs
  • zigbee
  • infrared
  • subpieces
  • nb-iot
  • cable
  • blemesh
  • sigmesh
  • ty-smesh
  • Zwave
  • pl-mesh
  • extension
  • cat1
  • beacon
  • lte-cat4
  • lte-cat10
  • lte-catm
  • thread
  • ty_sask
remarkStringThe remarks.
firmware_name_enStringThe firmware name in English.
firmware_identificationStringThe firmware identifier.
timeoutIntegerThe timeout value.
channel_categoryIntegerThe category of channels. Valid values:
  • 1: main module firmware.
  • 2: MCU firmware.
  • 3: Bluetooth firmware.
  • 4: Zigbee firmware.
  • 5: extension firmware.
firmware_idLongThe firmware ID.
firmware_name_zhStringThe firmware name in Chinese.

Request example

GET: /v1.0/iot-03/product/firmwares

Return example

{
    "result": {
        "firmware_key": "key***",
        "firmware_identification": "identification",
        "firmware_id": 999,
        "remark": "Remarks",
        "timeout": 60,
        "channel_category": 0,
        "communication_types": [
            "wifi"
        ],
        "firmware_name_zh": "Firmware name in Chinese",
        "firmware_name_en": "name en"
    },
    "t": 1545278901275,
    "success": true
}

Error code

For more information, see error code.