---
title: "Get telemetry history"
method: GET
path: "/api/v2/sensors/history"
tags: ["Telemetry"]
---

# Get telemetry history

`GET /api/v2/sensors/history`

## Request

- Base URL: `https://api.kiloiot.io`
- URL: `https://api.kiloiot.io/api/v2/sensors/history`
- Auth: API key in header `X-API-Key` and API key in header `X-Organization-Id`

Retrieve OHLC telemetry history for sensors with configurable granularity.

**Required scope:** `telemetry:read`

## Query parameters

- `sensorIds` string, required
- `organizationId` string, required
- `from` string, required
- `to` string, required
- `granularity` '1m' | '5m' | '15m' | '30m' | '1h' | '4h' | '1d' | '1w', required
- `sort` string

## Response `200`

OK

- object
  - `data` object[]
    - `candle` object
    - `sensorId` string
    - `ts` string
    - `type` string

## Other responses

- `401`: Missing or invalid API key
- `403`: Insufficient permissions (missing required scope)

---

[API](https://skmtc.dev/kiloiot/apis/kiloiot-public-api.md) · [All operations](https://skmtc.dev/kiloiot/apis/kiloiot-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kiloiot/apis/kiloiot-public-api/revisions/faf39bde186c?raw)
