Device management & telemetry
IoT APIs for device registration, telemetry collection, and remote device management.
Register and manage IoT devices. Provision credentials, manage device metadata, and handle device lifecycle.
POST /api/v1/iot/devices/register
{ "device_id": "sensor-001",
"type": "temperature_sensor",
"metadata": { "location": "warehouse-a" } }
// Response
{ "device_id": "sensor-001",
"status": "registered",
"credentials": { "api_key": "iot_..." },
"created_at": "2025-01-15T10:30:00Z" }
Collect sensor data at scale. High-throughput data ingestion with automatic aggregation and storage.
POST /api/v1/iot/telemetry
{ "device_id": "sensor-001",
"readings": [
{ "metric": "temperature", "value": 23.5,
"unit": "celsius", "timestamp": "..." },
{ "metric": "humidity", "value": 45.2,
"unit": "percent", "timestamp": "..." }
] }
// Response
{ "ingested": 2, "status": "success" }
Send commands to devices remotely. Execute actions, update configurations, and trigger device operations.
POST /api/v1/iot/devices/sensor-001/command
{ "command": "set_interval",
"parameters": { "interval_seconds": 30 },
"timeout": 60 }
// Response
{ "command_id": "cmd_abc123",
"status": "delivered",
"device_ack": true,
"executed_at": "2025-01-15T10:35:00Z" }
Track and query device state. Real-time device status, shadow state, and historical state tracking.
GET /api/v1/iot/devices/sensor-001/state
// Response
{ "device_id": "sensor-001",
"online": true,
"last_seen": "2025-01-15T10:34:55Z",
"reported_state": {
"temperature": 23.5, "battery": 87 },
"desired_state": {
"interval_seconds": 30 } }
Configure alerts based on telemetry data. Set thresholds, conditions, and notification channels for real-time alerts.
POST /api/v1/iot/alerts/rules
{ "name": "High Temperature Alert",
"condition": {
"metric": "temperature", "operator": ">",
"threshold": 35 },
"actions": [
{ "type": "webhook", "url": "https://..." },
{ "type": "email", "to": "ops@..." }
] }
// Response
{ "rule_id": "rule_xyz789",
"status": "active" }
Get your API key and start using IoT APIs in minutes.