Capture An Image

Last Updated on : 2023-06-20 14:54:08

Trigger a camera to capture an image. The captured image is pushed to the requester through a message.

API address

POST: /v1.0/cameras/{device_id}/actions/capture

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a Tuya device.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe ID of a specified command record.

Request example

POST: /v1.0/cameras/bc1***/actions/capture

Return example

{
    "result": {
        "sn": "10000333222***"
    },
    "t": 1573441137,
    "success": true
}

Error code

For more information, see error code.