Open Platform
Skip to content

Get DS3 alert ​

https://cnapi.ttlock.com/v3/standaloneDoorSensor/getAlertFlag

The notification received in the cloud will be sent to the developer via a callback.

1 Request example ​

POST, ContentType:application/x-www-form-urlencoded

javascript
curl --location -g --request POST 'https://cnapi.ttlock.com/v3/standaloneDoorSensor/getAlertFlag' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'doorSensorId=100123' \
--data-urlencode 'date=1625025703000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
doorSensorIdIntYDS3 ID
dateLongYCurrent time (timestamp, in milliseconds)

3 Response and example ​

ParameterTypeDescription
notCloseAlertFlagIntDoor not closed reminder indicator: Value range 1 - Open, 2 - Closed
notCloseAlertSecondNumIntDoor not closed reminder time, unit: seconds, range: 1~900 seconds.
longTimeNotOpenAlertFlagIntLong-term inactivity reminder indicator: Value range 1 - On, 2 - Off
longTimeNotOpenDayNumIntLong-term door inactivity reminder time, unit: days, range: 1-15 days.
{
    "notCloseAlertFlag": 1, 
    "notCloseAlertSecondNum": 100,
    "longTimeNotOpenAlertFlag": 1,
    "longTimeNotOpenDayNum": 10
}
CopyRight © 2012-2026 TTLock.All Rights Reserved