Open Platform
Skip to content

Gateway online or offline notify ​

Same as lock records notify, this API should be developed yourself on your system, you can set the callback URL in the detail page of your application in Management Center. The cloud server will call this callback URL to notify your system when there are gateway online or offline. Gateway offline notify has 30 minutes delay from actual offline time

Notice: to receive gateway online or offline notify, please make sure the gateway's administrator have get access token with your application's clientId.

1 Request method ​

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

2 Request parameters ​

NameTypeDescription
notifyTypeInt2, mean gateway online or offline notify
gatewayIdIntGateway ID
gatewayNameStringGteway name
gatewayMacStringGateway Mac
gatewayVersionIntGateway version: 1-G1, 2-G2
networkNameStringThe network name which the gateway connected to
isOnlineIntOnline or offline:0-Offline,1-Online

Response ​

Response a raw string: "success" in the response body.

CopyRight © 2012-2026 TTLock.All Rights Reserved