---
title: "List Custom Queries"
method: GET
path: "/core/custom-data/tables/{name}/queries"
tags: ["custom_data"]
---

# List Custom Queries

`GET /core/custom-data/tables/{name}/queries`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/custom-data/tables/{name}/queries`
- Auth: HTTP bearer

Stored queries on a table, with their status and derived staleness.

## Path parameters

- `name` string, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Response `200`

Successful Response

- SavedQuerySchema[]
  - `id` integer, required
  - `organization_id` string, required
  - `table_id` integer, required
  - `name` string, required
  - `sql_source` string, required
  - `params` QueryParamSpec[]
    - `name` string, required
    - `type` 'string' | 'number' | 'integer' | 'boolean' | 'date' | 'date-time' | 'embedding'
  - `referenced_columns` string[], nullable
  - `row_limit` integer, required
  - `status` 'draft' | 'validated' | 'stale' | 'broken', required
  - `validation_error` string, nullable
  - `enabled` boolean, required
  - `cache_enabled` boolean
  - `is_stale` boolean, nullable
  - `created_at` string, nullable
  - `updated_at` string, nullable
  - `created_by` string, nullable
  - `modified_by` string, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
