Get the eKey unlocking link
https://cnapi.ttlock.com/v3/key/getUnlockLink
After the administrator sends the eKey to the user (with a hyperlink to the eKey interface document), if the lock is connected to the Internet and both the lock and the eKey have remote unlocking enabled, the administrator can generate a remote unlocking link and send it to the user, and the user can unlock the lock through the link.
1 Request example
POST, ContentType:application/x-www-form-urlencoded
javascript
x
curl --location -g --request POST 'https://cnapi.ttlock.com/v3/key/getUnlockLink' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'keyId=27619' \
--data-urlencode 'date=1625025703000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | Client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| keyId | Int | Y | The ID of the eKey |
| date | Long | Y | Current time (timestamp in millisecond) |
3 Response and example
| ** Parameter** | Type | Description |
|---|---|---|
| link | String | the link of unlocking |
json
{
"link": "https://c.ttekey.com/h?k=0qFsTwJF"
}