API Overview

Endpoints0
Auth Methods0Session, Bearer, Device Token
FormatJSON
ProtocolHTTPS

RESTful API Reference

The NexaIoT exposes REST endpoints organized into three categories: Device Ingestion (token auth), Dashboard APIs (session auth), and Mobile APIs (Bearer token auth).

Endpoint Index

MethodEndpointAuthDescription
POST/api/telemetry/ingestDevice TokenIngest telemetry data
POST/api/heartbeatDevice TokenDevice heartbeat
GET/api/devices/latestSession/BearerLatest device metrics
GET/api/alerts-feedSessionAlert feed for dashboard
GET/api/incidents-feedSessionIncident feed
POST/api/alert-actionSessionAcknowledge/resolve alert
POST/api/incident-actionSessionIncident actions
POST/api/mobile/loginNoneMobile login, returns token
GET/api/mobile/devicesBearerDevices for org
GET/api/mobile/alertsBearerAlerts for org

📡 Response Envelope

// All API responses use this format: { "status": "ok", "data": { ... } } { "status": "error", "message": "...", "code": 401 }

🛠️ Developer Quick Start

1. Register an account and create an organization. 2. Add a device via the dashboard — copy the 64-char device token. 3. Send a POST to /api/telemetry/ingest with the token. 4. Watch the dashboard update in real time. 5. For mobile apps, call /api/mobile/login to get a Bearer token.