Password-Free Unlocking

Last Updated on : 2024-08-19 06:22:12download

Unlock a door without a password.

API address

POST: /v1.0/devices/{device_id}/door-lock/password-free/open-door

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.

Description of body

Parameter nameTypeINRequiredDescription
ticket_idString trueThe ID of the temporary secret key. For how to get it, see [Get Temporary Key] (https://developer.tuya.com/en/docs/cloud/c6ec729dac?id=Kat26yeejknqo).

Return parameter

Parameter nameTypeDescription
resultBooleanThe operation result.

Request example

POST: /v1.0/devices/vdevo15345926009****/door-lock/password-free/open-door
{
  "ticket_id": "xxxx"
}

Return example

{
    "result": true,
    "t": 1592899848757,
    "success": true
}

Error code

For more information, see error code.