DevicesV1
Get an Afi login token for a device.
get/devices/v1/{serial_number}/login_token
Request
- Base URL: https://api.danalock.com
- URL: https://api.danalock.com/devices/v1/{serial_number}/login_token
- Auth: OAuth 2 (authorization code, authorization URL /oauth2/authorize, token URL /oauth2/token)
Path parameters
serial_numberstring required
Dmi serial number of requested device.
Headers
X-Assume-Userstring
Assume the identity of the user in another domain
Response
Login token with metadata
Example response
{
"device": {
"timezone": "Europe/Copenhagen"
},
"blob": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8=",
"broadcast_key": "AAECAwQFBgcICQoLDA0ODw==",
"metadata": {
"valid_from": "2018-01-01T10:20:30+00.00",
"valid_to": "2018-01-01T10:20:30+00.00",
"permissions": [
{
"id": "3",
"name": "afi_lock_operate",
"description": "Operate Lock Permission"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.