---
title: "Run a query and obtain the result"
method: POST
path: "/query"
---

# Run a query and obtain the result

`POST /query`

## Query parameters

- `api-version` string, required

## Request body

- QueryRequest — The query request payload definition.
  - `query` string, required — Query to be executed.

## Response `200`

Success

- QueryResponse — The query response payload definition.
  - `results` object[], required

## Other responses

- `default` — An error response received from the IoT Central Service.

## Changes

- **2026-07-13** (1.0) `565d8813cbd3` — 1 info
  - endpoint added
- **2026-07-13** (1.0) `50c39d38d85a` — 1 breaking
  - api path removed without deprecation
- **2026-07-13** (1.0) `fc9ee2be8dc0` — 1 breaking
  - api path removed without deprecation
- **2026-07-13** (1.0) `bcae1054dfc8` — 1 info
  - endpoint added
- **2026-07-13** (1.0) `91b0e78f975b` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/azure/apis/iotcentral-iotcentral/changes/query/post.md)

---

[API](https://skmtc.dev/azure/apis/iotcentral-iotcentral.md) · [All operations](https://skmtc.dev/azure/apis/iotcentral-iotcentral/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/iotcentral-iotcentral/revisions/565d8813cbd3/schema)
