Open Platform
Skip to content

Get gateway detail ​

https://cnapi.ttlock.com/v3/gateway/detail

You can use gatewayId which from init gateway API to gain gateway detail

1 Request example ​

javascript
curl --location --request GET 'https://cnapi.ttlock.com/v3/gateway/detail?clientId=4773aa036f7f49c68d876bb4be85c80c&accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f&gatewayId=347&date=1626674054000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
gatewayIdIntYGatewayId, from init gateway API
dateLongYCurrent time (timestamp in millisecond)

3 Response and example ​

ParameterTypeDescription
gatewayIdIntGateway ID
gatewayMacStringGateway MAC
gatewayNameStringGateway name
gatewayVersionIntThe version of gateway, 1-G1,2-G2,3-G3(wired gateway),4-G4(4G gateway)
networkNameStringThe network name gateway connected to.
networkMacStringMac address of the network to which the gateway is connected
lockNumIntThe number of locks connected to the gateway.
isOnlineIntIs it online: 0-No, 1-Yes. The gateway will maintain a TCP connection with the gateway server, the cloud server consider it online if the connection is present, plug off the gateway may not break the connection immediately, it may take several minutes for the gateway server to break the connection after heartbeat timeout.
{
    "gatewayMac": "DC:A4:53:85:39:74",
    "lockNum": 1,
    "gatewayName": "G2_743985",
    "networkName": "ttlock",
    "isOnline": 0,
    "gatewayVersion": 2,
    "gatewayId": 347
}
CopyRight © 2012-2026 TTLock.All Rights Reserved