Open Platform
Skip to content

Get user id ​

https://euapi.ttlock.com/v3/user/getUid

Request this API for user id of your account.

When developing your own APP base on our APP SDK to init gateway you'll need a parameter: uid to identify which user account the gateway will belongs to.

1 Request example ​

javascript
x
curl --location -g --request GET 'https://euapi.ttlock.com/v3/user/getUid?clientId=fd2ff35ee3d8424c8665c07b7b9a7f45&accessToken=61a2aed94d015882c2db764591aaeb0e&date=1625019027000'

2 Request parameters ​

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

3 Response and example ​

ParameterTypeDescription
uidIntUser id
{
    "uid": 2529
}
CopyRight © 2012-2026 TTLock.All Rights Reserved