Sensorclouds
API Access

Using Your API Key

Authenticate and call the read-only external REST API

Authentication

Send your key on every request using either header:

X-API-Key: <your-key>
Authorization: Bearer <your-key>

Authorization: ApiKey <your-key> is also accepted.

Responses & Pagination

  • Responses are JSON.
  • List endpoints are paginated with ?page= and ?limit=.
  • Rate limiting applies per key - stay within your plan's request allowance.

Errors

StatusMeaning
401Missing, invalid, or expired key
403Key is missing the required scope, or the requested resource is outside the key's application scope
429Rate limit exceeded

Endpoints

GET/api/v1/devices

List devices the key can see. Scope: devices:read. Query: page, limit.

GET/api/v1/alarms

List alarm rules/instances the key can see. Scope: alarms:read. Query: page, limit.

GET/api/v1/telemetry/devices/{deviceId}/latest

Latest reading for a device. Scope: telemetry:read. App-scoped: if the key is restricted to specific applications, the device must belong to one of them.

GET/api/v1/telemetry/devices/{deviceId}/history

Historical readings for a device. Scope: telemetry:read. Query: field, timeRange (e.g. -7d), from, to. App-scoped, same rule as latest.

Examples

curl https://<your-host>/api/v1/devices \
  -H "X-API-Key: <your-key>"
curl "https://<your-host>/api/v1/telemetry/devices/<id>/history?field=temperature&timeRange=-7d" \
  -H "Authorization: Bearer <your-key>"

The platform includes a "Use your key" reference panel in the UI with a copy-paste quick-test snippet that injects your live host. Open it from the API Keys page to try a request without leaving the platform.

The "Use your key" reference panel on the API Keys page with a copy-paste quick-test snippet

On this page