Kilo IoT Telemetry API
The Telemetry API from Kilo IoT — 3 operation(s) for telemetry.
The Telemetry API from Kilo IoT — 3 operation(s) for telemetry.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/kiloiot-io:kiloiot-io-telemetry-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: KiloIoT Public Telemetry API
version: 1.0.0
description: 'Public API for the KiloIoT IoT platform.
## Authentication
All endpoints require API key authentication:
| Header | Description |
|--------|-------------|
| `X-API-Key` | Your API key (format: `kilo_`) |
| `X-Organization-Id` | Your organization UUID |
## Protocols
This API exposes two types of endpoints:
- **REST** — standard HTTP methods (GET, POST, PUT, DELETE). Use REST for cloud and SaaS integrations.
- **gRPC** — available via gRPC clients; intended for on-premises deployments. Documented here as POST endpoints at their gRPC path for reference.
If you are unsure which protocol to use, **choose REST** unless you are running an on-premises installation.
## Scopes
API keys are scoped. Each endpoint lists its required scope (e.g. `devices:read`). Requests with insufficient scopes receive a `403 Forbidden` response.'
servers:
- url: https://api.kiloiot.io
description: KiloIoT API
security:
- ApiKeyAuth: []
OrgId: []
tags:
- name: Telemetry
paths:
/api/v2/sensors/history:
get:
operationId: getSensorHistory
summary: Get telemetry history
description: 'Retrieve OHLC telemetry history for sensors with configurable granularity.
**Required scope:** `telemetry:read`'
tags:
- Telemetry
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
candle:
type: object
sensorId:
type: string
ts:
type: string
type:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
parameters:
- name: sensorIds
in: query
required: true
description: Comma-separated sensor IDs
schema:
type: string
- name: organizationId
in: query
required: true
description: Organization ID
schema:
type: string
- name: from
in: query
required: true
description: Start time (ISO8601, e.g. 2024-01-01T00:00:00Z)
schema:
type: string
- name: to
in: query
required: true
description: End time (ISO8601, e.g. 2024-01-02T00:00:00Z)
schema:
type: string
- name: granularity
in: query
required: true
description: Aggregation granularity
schema:
type: string
enum:
- 1m
- 5m
- 15m
- 30m
- 1h
- 4h
- 1d
- 1w
- name: sort
in: query
description: 'Sort order: ASC or DESC'
schema:
type: string
default: ASC
/api/v2/sensors/history/raw:
get:
operationId: getSensorHistoryRaw
summary: Get raw telemetry history
description: 'Retrieve raw (unaggregated) telemetry data points for sensors.
**Required scope:** `telemetry:read`'
tags:
- Telemetry
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
sensorId:
type: string
ts:
type: string
type:
type: string
value:
type: object
hasMore:
type: boolean
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
parameters:
- name: sensorIds
in: query
required: true
description: Comma-separated sensor IDs
schema:
type: string
- name: organizationId
in: query
required: true
description: Organization ID
schema:
type: string
- name: from
in: query
required: true
description: Start time (ISO8601, e.g. 2024-01-01T00:00:00Z)
schema:
type: string
- name: to
in: query
required: true
description: End time (ISO8601, e.g. 2024-01-02T00:00:00Z)
schema:
type: string
- name: sort
in: query
description: 'Sort order: ASC or DESC'
schema:
type: string
default: DESC
- name: limit
in: query
description: Page size
schema:
type: integer
default: 50
- name: offset
in: query
description: Number of records to skip
schema:
type: integer
default: 0
/api/v2/sensors/last-seen:
get:
operationId: getSensorLastSeen
summary: Get last seen timestamps
description: 'Retrieve the last-seen timestamps for device sensors.
**Required scope:** `telemetry:read`'
tags:
- Telemetry
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
lastSeen:
type: string
sensorId:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
parameters:
- name: sensorIds
in: query
required: true
description: Comma-separated sensor IDs
schema:
type: string
- name: organizationId
in: query
required: true
description: Organization ID
schema:
type: string
components:
responses:
Forbidden:
description: Insufficient permissions (missing required scope)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: permission_denied
message: 'API key lacks required scope: devices:write'
Unauthorized:
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: unauthenticated
message: missing X-API-Key header
schemas:
Error:
type: object
required:
- error
- message
properties:
error:
type: string
message:
type: string
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: 'API key for authentication (format: `kilo_<key>`)'
OrgId:
type: apiKey
in: header
name: X-Organization-Id
description: Organization UUID that the API key belongs to
x-tagGroups:
- name: REST API
tags:
- Users
- Devices
- Commands
- Sensors
- Telemetry
- Connections
- Connectors
- Dashboards
- Orgs
- Subscriptions
- Api-Keys
- Rules
- name: On-Prem / Advanced (gRPC)
tags:
- User Profile (gRPC)
- Digital Device (gRPC)
- Sensor Template (gRPC)
- Connector (gRPC)
- Connection (gRPC)
- Dashboard (gRPC)
- Widget (gRPC)
- Organizations (gRPC)