APIs & Integrations

Endpoints

Full reference for every available resource, HTTP method, and parameter in the Optra API.

All endpoints follow REST conventions. Resources are nouns, HTTP methods express intent, and responses use standard status codes.

Devices

Method Path Description
GET/devicesList all devices
GET/devices/{id}Get a single device
POST/devicesRegister a new device
PATCH/devices/{id}Update device metadata
DELETE/devices/{id}Deregister a device

Telemetry

Method Path Description
GET/devices/{id}/telemetryQuery telemetry for a device
GET/devices/{id}/telemetry/latestGet the most recent telemetry snapshot

Rules & Alerts

Method Path Description
GET/rulesList all rules
POST/rulesCreate a new rule
DELETE/rules/{id}Delete a rule