Miradore Api — Patched
import requests auth = requests.post('https://api.miradore.com/oauth/token', data='client_id': ID, 'client_secret': SECRET, 'grant_type': 'client_credentials') token = auth.json()['access_token'] Get devices inactive for >30 days headers = 'Authorization': f'Bearer token' devices = requests.get('https://api.miradore.com/api/v2/devices', headers=headers, params='filter': 'last_seen < 2025-03-01') Retire them for device in devices.json(): requests.put(f'https://api.miradore.com/api/v2/devices/device["id"]/retire', headers=headers)
Use it for scripts that run hourly or daily. Avoid building a real-time application on top of it. If your use case requires instant reactions to device events, consider a different MDM with webhook support (e.g., Intune, Kandji, or Workspace ONE). miradore api
The native reporting in Miradore is decent, but the API allows you to pull raw device attributes (storage, OS version, last compliance check) into a real BI tool like Power BI or Grafana. The /reports endpoint can generate CSV/JSON exports of custom report definitions. import requests auth = requests