---
title: "Query Tables"
method: POST
path: "/v1/tables/query"
tags: ["V1 - Tables"]
---

# Query Tables

`POST /v1/tables/query`

## Request

- Base URL: `https://api.app.noxus.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.app.noxus.ai/v1/tables/query`
- Auth: API key in header `X-API-Key`

Run a read-only SQL query across this workspace's tables.

## Request body

- QueryRequest
  - `sql` string, required
  - `limit` integer, nullable
  - `offset` integer
  - `include_total` boolean

## Response `200`

Successful Response

- QueryResponse
  - `columns` string[], required
  - `rows` object[], required
  - `total` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/noxus/apis/noxus-backend.md) - [All operations](https://skmtc.dev/noxus/apis/noxus-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/noxus/apis/noxus-backend/revisions/0e37810b7ad5?raw)
