OAuth2, autoryzacja, webhooks.
Autoryzacja
Wszystkie endpointy wymagają nagłówka Authorization: Bearer <token>. Token wygenerujesz w /panel/konto/api.
Endpointy
`
GET /api/devices — lista swoich urządzeń
GET /api/devices/{id} — detale
GET /api/devices/{id}/history?range=24h
POST /api/devices/{id}/control — polecenie (JSON)
GET /api/live/config — config WS dla live updates
`
Webhooks
Od planu Pro: w /panel/konto/webhooks dodaj URL który będzie wywoływany przy alertach krytycznych.