Information about the access key associated with a device

Hello!

I would like to get information about the access key for each device. Is there a way of getting the access key based on the description field or the device that is using it?

We haven’t exposed the functionality through the UI, but you can query access keys using the API:

To query by description:

https://api.losant.com/applications/YOUR_APP_ID/keys?query={ "description": "YOUR_DESCRIPTION" }

You can also query by which device IDs are configured on the access key. If you have a key configured using tags or “all devices”, you cannot query by specific device IDs that have used that key - only by device IDs specifically configured on the key.

https://api.losant.com/applications/YOUR_APP_ID/keys?query={ "deviceIds": "YOUR_DEVICE_ID" }
1 Like