Get Temporary Key

Last Updated on : 2023-12-07 03:34:01download

Get the temporary key for password encryption. The temporary key is valid for 5 minutes.

API address

POST: /v1.0/smart-lock/devices/{device_id}/password-ticket

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.

Return parameter

Parameter name Type Description
result LockTicketVO

Description of result

Parameter name Type Description
ticket_id String The ID of the temporary key.
ticket_key String The temporary key. It can be used after decryption with AES using the accessKey that is issued by the Cloud Development Platform.
expire_time Long The remaining validity period.

Request example

POST: /v1.0/smart-lock/devices/vdevo15345926009****/password-ticket

Return example

{ "result": { "expire_time": 360, "ticket_id": "9wxxoLM", "ticket_key": "901CC35A67DA3429C38E9622xxxxx3EAE1CE333462356D257FD1*****" }, "t": 1592899848757, "success": true }

Error code

For more information, see error code.