---
title: "POST /v1/sql/query"
method: POST
path: "/v1/sql/query"
tags: ["api::sql"]
---

# POST /v1/sql/query

`POST /v1/sql/query`

## Request body

- SqlQueryRequest
  - `query` string, required — The SQL query to execute.

## Response `200`

SQL query executed successfully

- SqlQueryResponse
  - `data` unknown[], required — The data returned from the SQL query.
    - unknown

## Other responses

- `400` — Bad request. Cannot parse the JSON payload into a valid request.
- `401` — Unauthorized. Project API key is invalid.

---

[API](https://skmtc.dev/lmnr/apis/laminar.md) · [All operations](https://skmtc.dev/lmnr/apis/laminar/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lmnr/laminar/revisions/b2f51f098ba2/schema)
