Open Platform
Skip to content

Get lock time ​

https://cnapi.ttlock.com/v3/lock/queryDate

Get the time of a lock remotely via gateway or WiFi lock.

There is a time in the lock, when unlocking via passcode or ekey, the lock will check if it is valid base on the lock time. If the lock time is incorrect, a valid passcode may failed to unlock the lock. You can request this API to query the lock time, and you can request cloud API:Adjust lock time to adjust lock time if it's incorrect.

1 Request example ​

javascript
curl --location --request GET 'https://cnapi.ttlock.com/v3/lock/queryDate?clientId=4773aa036f7f49c68d876bb4be85c80c&accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f&lockId=163377&date=1626674054000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
dateLongYCurrent time (timestamp in millisecond)

3 Response and example ​

ParameterTypeDescription
dateLongLock time (timestamp in millisecond)
{
    "date": 1625025703000
}
CopyRight © 2012-2026 TTLock.All Rights Reserved