---
title: "Query Custom Table"
method: POST
path: "/core/custom-data/tables/{name}/query"
tags: ["custom_data"]
---

# Query Custom Table

`POST /core/custom-data/tables/{name}/query`

## 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}/query`
- Auth: HTTP bearer

Filtered, sorted, limited live rows — the same call agent tools make.

## Path parameters

- `name` string, required

## Headers

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

## Request body

- QueryRequest
  - `filters` QueryFilter[]
    - `property` string, required
    - `op` 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'contains' | 'starts_with'
    - `value` unknown
  - `order` QuerySort[]
    - `property` string, required
    - `direction` 'asc' | 'desc'
  - `limit` integer

## Response `200`

Successful Response

- RowsResponse
  - `count` integer, required
  - `records` object[], required

## 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)
