π Overview
π Base URL
https://api.iotbackbone.com/v1
π Rate Limiting
1000 requests per minute per API key. Burst up to 100 requests.
π Security
All API requests must be authenticated using JWT tokens or API keys. HTTPS is required for all endpoints.
π Authentication
IoT Backbone uses JWT (JSON Web Tokens) for authentication. Include your token in the Authorization header.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
email |
string | Required | User email address |
password |
string | Required | User password |
Response
β οΈ Token Usage
Include the token in the Authorization header: Authorization: Bearer {token}. Tokens expire after 24 hours by default.
π‘ Devices API
Manage IoT devices, register new sensors, and monitor device status.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
status |
string | Optional | Filter by status (online, offline, error) |
type |
string | Optional | Filter by device type |
limit |
integer | Optional | Number of results (default: 50, max: 100) |
offset |
integer | Optional | Pagination offset (default: 0) |
Response
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId |
string | Required | Device ID |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | Required | Device name |
type |
string | Required | Device type (temperature, humidity, etc.) |
manufacturer |
string | Optional | Device manufacturer |
model |
string | Optional | Device model |
location |
string | Optional | Device location |
π Data API
Access and query sensor data from your devices.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from |
string | Optional | Start timestamp (ISO 8601) |
to |
string | Optional | End timestamp (ISO 8601) |
limit |
integer | Optional | Number of records (default: 100, max: 1000) |
aggregation |
string | Optional | Aggregation type (avg, min, max, sum) |
Response
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
timestamp |
string | Required | Data timestamp (ISO 8601) |
value |
number | Required | Sensor value |
unit |
string | Optional | Unit of measurement |
π° Products API
Purchase and manage data products for monetization.
Response
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId |
string | Required | Device ID for data access |
quantity |
integer | Optional | Quantity for per-read pricing |
Response
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId |
string | Required | Device ID |
quantity |
integer | Optional | Quantity for calculation |
π₯ Health API
Monitor system health and status.
Response
π Webhooks
Configure webhooks to receive real-time notifications.
π‘ Webhook Events
Available events: device.online, device.offline, data.received, alert.triggered, aggregation.completed
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
string | Required | Webhook URL |
events |
array | Required | List of events to subscribe |
secret |
string | Optional | Webhook secret for signature verification |
β Error Codes
Standard HTTP status codes and error responses.
| Code | Description |
|---|---|
200 |
Success |
201 |
Created |
400 |
Bad Request - Invalid parameters |
401 |
Unauthorized - Invalid or missing token |
403 |
Forbidden - Insufficient permissions |
404 |
Not Found - Resource doesn't exist |
429 |
Too Many Requests - Rate limit exceeded |
500 |
Internal Server Error |
503 |
Service Unavailable |