API Documentation
RESTful API for device management, telemetry data, analytics, and real-time communication. All endpoints support JSON format with comprehensive error handling and authentication.
🔑 Authentication
All API endpoints require authentication using Bearer tokens. Include the token in the
Authorization header: Authorization: Bearer YOUR_API_KEY
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.valtronics.com/v1/devices
Overview
The Valtronics API provides comprehensive access to device management, telemetry data, analytics, and real-time communication capabilities. The API follows RESTful principles and uses standard HTTP status codes.
Base URL
All API endpoints are relative to this base URL. The API version is v1.
Devices
Manage IoT devices, register new devices, and monitor device status and configuration.
Device Management
Retrieve a list of all registered devices with their current status and configuration.
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Page number (default: 1) |
| limit | integer | No | Items per page (default: 50, max: 100) |
| status | string | No | Filter by device status (online, offline, error) |
Register a new device with the platform and receive a unique device ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Device name |
| type | string | Yes | Device type (temperature_sensor, humidity_sensor, etc.) |
| platform | string | Yes | Hardware platform (esp32, arduino, stm32) |
| location | string | No | Device location |
Get detailed information about a specific device.
Update device configuration and settings.
Remove a device from the platform. This action cannot be undone.
Telemetry
Access real-time and historical sensor data from devices with flexible query parameters.
Data Access
Get the latest telemetry data from a specific device.
| Parameter | Type | Required | Description |
|---|---|---|---|
| sensors | string | No | Comma-separated list of sensor types |
| limit | integer | No | Number of records to return (default: 100) |
Get historical telemetry data for a specific device.
| Parameter | Type | Required | Description |
|---|---|---|---|
| from | string | No | Start date (ISO 8601 format) |
| to | string | No | End date (ISO 8601 format) |
| interval | string | No | Aggregation interval (1m, 5m, 1h, 1d) |
Submit telemetry data from a device (used by devices to send data).
Analytics
Retrieve AI-powered insights, predictive maintenance recommendations, and data analytics.
Analytics Endpoints
Get AI-powered insights and analysis for a specific device.
Get predictive maintenance recommendations and failure predictions.
Alerts
Manage device alerts, configure alert rules, and receive notifications.
Alert Management
Get all active alerts across all devices.
| Parameter | Type | Required | Description |
|---|---|---|---|
| severity | string | No | Filter by severity (low, medium, high, critical) |
| device_id | string | No | Filter by specific device |
Acknowledge an alert to mark it as seen.
⏱️ Rate Limits
API requests are rate-limited to ensure fair usage and system stability. Current limits are 1000 requests per hour per API key.
| Header | Description |
|---|---|
| X-RateLimit-Limit | Maximum requests per hour |
| X-RateLimit-Remaining | Remaining requests in current window |
| X-RateLimit-Reset | Unix timestamp when rate limit resets |