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 | /devices | List all devices |
| GET | /devices/{id} | Get a single device |
| POST | /devices | Register a new device |
| PATCH | /devices/{id} | Update device metadata |
| DELETE | /devices/{id} | Deregister a device |
Telemetry
| Method | Path | Description |
|---|---|---|
| GET | /devices/{id}/telemetry | Query telemetry for a device |
| GET | /devices/{id}/telemetry/latest | Get the most recent telemetry snapshot |
Rules & Alerts
| Method | Path | Description |
|---|---|---|
| GET | /rules | List all rules |
| POST | /rules | Create a new rule |
| DELETE | /rules/{id} | Delete a rule |