Device APIs
API ReferenceVerifiedShare on
Endpoints the Android app calls.
HM Redowan1 min readUpdated 2026-12-04
Bu sayfanın Türkçe çevirisi editör incelemesinde. İngilizce sürüm gösteriliyor.
| Method | Path | Auth | Purpose |
|---|---|---|---|
| POST | /api/public/device/pair | none | {code} → {token} |
| GET | /api/public/device/policy | token | Full policy |
| POST | /api/public/device/heartbeat | token | Status report |
| POST | /api/public/device/events | token | Security event |
| POST | /api/public/device/unlock-request | token | Permission request |
| GET | /api/public/device/update?version_code=N | token | Newer APK, if any |
Heartbeat body
json
{"battery_level": 80, "android_version": "14", "app_version": "1.30", "model": "SM-A156", "serial_number": "...",
"restricted": true, "guard_accessibility": true, "guard_overlay": true, "guard_admin": true, "guard_owner": false}All fields optional. The first heartbeat turns a pending device active.
Event body
json
{"event_type": "uninstall_attempt", "severity": "high", "message": "...", "occurred_at": "2026-12-04T09:00:00Z"}Update response
json
{"update": {"version_code": 31, "version_name": "1.31", "notes": "...", "size_bytes": 123, "sha256": "...", "download_url": "https://..."}}Bu sayfa yardımcı oldu mu?