Hello @Taavi, that would be possible with Hexnode APIs. For the particular example you gave, you could use the List All Devices API to fetch device details along with their compliance status.
Then you could run some internal validation on your page to filter out the devices (get the device id) showing compliant status as false. If there are device which are non-compliant, you can use the Enable Lost Mode API to send a command to enable lost mode on these devices.
@Wilson, an Hexnode API call inbound to your Hexnode console will only be able to query data if it is authenticated with the correct and authorized credential. The API calls can only be authorized using the API key which is a 20-digit alphanumeric code.
Note: The API Key can be fetched with the Retrive API Key API using the user credential of the Hexnode super admin or any user with an admin role. Learn more.
To find the complete list of Hexnode APIs refer the Hexnode API documentation.
Cheers!
Zach Goodman
Hexnode UEM