@Sara Caballero, Thanks for posting in Q&A. Based on my testing, we can use the following API to get the compliance policy and its state on one managed device.
Action: Get
URL: https://graph.microsoft.com/beta/deviceManagement/managedDevices/<managed device id>/deviceCompliancePolicyStates
Meanwhile, I find one link list some scripts to get Intune compliance data. You can read it to see if it can help.
https://doitpsway.com/get-intune-compliance-data-using-powershell-leveraging-graph-api
Note: Non-Microsoft link, just for the reference.
To get managed apps on one device, we can query via the following method.
Action: Get
URL: https://graph.microsoft.com/beta/users/<user-id>/mobileAppIntentAndStates/<device-id>
In addition, i find a link describe to do this via PowerShell script. You can also refer to it.
Note: Non-Microsoft link, just for the reference.
Hope the above information can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.