---
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.

---

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