---
title: "List all history queries"
method: GET
path: "/api/history"
tags: ["History Queries"]
---

# List all history queries

`GET /api/history`

Retrieves a list of all configured history queries

## Response `200`

Array of history query objects

- HistoryQueryLightDTO[]
  - `id` string, required — The unique identifier of the entity.
  - `createdBy` UserInfo, required — Represents the user who performed an action, with a computed display name.
    - `id` string, required — The unique identifier of the user.
    - `friendlyName` string, required — A human-readable display name for the user. "OIAnalytics" for the oianalytics system user, "Admin" for the admin login, or "Firstname Lastname (login)" for regular users.
  - `updatedBy` UserInfo, required — Represents the user who performed an action, with a computed display name.
    - `id` string, required — The unique identifier of the user.
    - `friendlyName` string, required — A human-readable display name for the user. "OIAnalytics" for the oianalytics system user, "Admin" for the admin login, or "Firstname Lastname (login)" for regular users.
  - `createdAt` string, required — Represents an instant in time as an ISO 8601 string.
  - `updatedAt` string, required — Represents an instant in time as an ISO 8601 string.
  - `name` string, required — The name of the history query.
  - `description` string, required — Description of the history query's purpose.
  - `status` 'PENDING' | 'RUNNING' | 'ERRORED' | 'PAUSED' | 'FINISHED', required — Type representing the possible statuses for a history query.
  - `startTime` string, required — Start time for the data to be queried (ISO 8601 format).
  - `endTime` string, required — End time for the data to be queried (ISO 8601 format).
  - `southType` 'opcua' | 'mqtt' | 'modbus' | 'oianalytics' | 'ads' | 'folder-scanner' | 'ftp' | 'influxdb' | 'mssql' | 'mysql' | 'odbc' | 'oledb' | 'opc' | 'oracle' | 'osisoft-pi' | 'postgresql' | 'rest' | 'sftp' | 'sqlite', required — Type representing the possible types for a South connector.
  - `northType` 'opcua' | 'mqtt' | 'modbus' | 'oianalytics' | 'rest' | 'sftp' | 'aws-s3' | 'azure-blob' | 'console' | 'file-writer', required — Type representing the possible types for a North connector.

## Changes

- **2026-07-28** `9a6250881fa7` — 1 warning
  - added the new `influxdb` enum value to the `items/southType` response property for the response status `200`
- **2026-07-26** `ea1c80cb9c69` — 1 info
  - removed the `influxdb` enum value from the `items/southType` response property for the response status `200`
- **2026-07-20** `6a232346b158` — 1 warning
  - added the new `influxdb` enum value to the `items/southType` response property for the response status `200`
- **2026-07-15** `57cbe043ec5a` — 1 info
  - removed the `influxdb` enum value from the `items/southType` response property for the response status `200`
- **2026-07-06** `4c50d4a73f66` — 1 warning
  - added the new `influxdb` enum value to the `items/southType` response property for the response status `200`

[Full history](https://skmtc.dev/optimistiksas/apis/oibus-api/changes/api/history/get.md)

---

[API](https://skmtc.dev/optimistiksas/apis/oibus-api.md) · [All operations](https://skmtc.dev/optimistiksas/apis/oibus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optimistiksas/oibus-api/revisions/fe8fd32c9fdc/schema)
