---
title: "Get document queries"
method: GET
path: "/v1/documents/{documentId}/queries"
tags: ["Documents"]
deprecated: true
---

# Get document queries

`GET /v1/documents/{documentId}/queries`

> **Deprecated.**

<Warning>
  **Deprecated** — Removal scheduled for **July 31, 2026**. Use the [Documents v2 API](/api/documents-v2/create-document) instead.
</Warning>

Retrieve queries associated with a document by its identifier.

## Path parameters

- `documentId` string, required

## Response `200`

Queries retrieved successfully

- object
  - `queries` object[] — An array of queries used in the document
    - `id` string, uuid — The UUID of the query
    - `name` string — The name of the query
    - `url` string — URL to view this specific query/sheet in the workbook
    - `query` object — The query JSON structure that can be used with the Query API

## Other responses

- `403` — Forbidden Possible error messages: - `User cannot view document`
- `404` — Not Found Possible error messages: - `Document with id <identifier> does not exist`
- `429` — Too Many Requests - Rate limit exceeded (60 requests/minute)

---

[API](https://skmtc.net/omni/apis/omni-api.md) · [All operations](https://skmtc.net/omni/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omni/omni-api/revisions/6b02f7349d0e/schema)
