Skip to Content
IntegrationAPI ReferenceOverview

API Reference

Complete reference for ModularIoT’s HTTP APIs.

Base URL

https://iot.streamhub.cl

Authentication

All API requests require a Bearer token in the Authorization header:

Authorization: Bearer <access_token>

→ See Authentication > API Login to obtain a token.

Common Headers

HeaderRequiredDescription
AuthorizationYesBearer <access_token>
Content-TypeYesapplication/json
AcceptRecommendedapplication/json
X-Request-IdYesUnique request identifier for tracing
X-Request-TimestampYesRequest timestamp (Unix epoch seconds)

Response Formats

All endpoints return JSON responses with consistent structure.

Success Response

{ "status": "success", "message": "Operation completed successfully" }

Error Response

{ "status": "error", "message": "Error description", "detail": "Additional error details" }

Validation Error Response

{ "status": "validation_error", "message": "Request validation failed", "errors": { "field_name": "Error message for this field" } }

HTTP Status Codes

CodeMeaning
200Success
400Bad Request - Validation error or malformed request
401Unauthorized - Invalid or expired token
403Forbidden - Valid token but insufficient permissions
429Too Many Requests - Rate limit exceeded
500Internal Server Error

Available Endpoints

MethodEndpointDescription
POST/v1/asset/trackSend asset tracking data with telemetry

→ See Asset Track for detailed endpoint documentation.

Last updated on