---
title: "Execute SQL query (synchronous)"
method: POST
path: "/api/query"
---

# Execute SQL query (synchronous)

`POST /api/query`

Execute a SQL query and return the results immediately

## Request body

- Query
  - `query` string, required — SQL query to execute

## Response `200`

Query executed successfully

- QueryResponse
  - `data` object[] — Query results

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `429` — Too many requests
- `500` — Server error

---

[API](https://skmtc.dev/robotpos/apis/sql-query-api.md) · [All operations](https://skmtc.dev/robotpos/apis/sql-query-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/robotpos/sql-query-api/revisions/0fda49c65b95/schema)
