---
title: "List Fanout Search Queries"
method: POST
path: "/queries/search"
tags: ["Project"]
---

# List Fanout Search Queries

`POST /queries/search`

List the fanout search queries of a project

## Query parameters

- `project_id` string — Required if using a company api key

## Request body

- object
  - `project_id` string — Required if using a company api key
  - `limit` number
  - `offset` number
  - `start_date` string, date — full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21
  - `end_date` string, date — full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21
  - `filters` union[] — Filter results by specific fields. Multiple filters are AND'd together.
    - union
      - object — Deprecated: use model_channel_id filter instead
        - `field` 'model_id', required
        - `operator` 'in' | 'not_in', required
        - `values` string[], required
      - object
        - `field` 'model_channel_id', required
        - `operator` 'in' | 'not_in', required
        - `values` string[], required
      - object
        - `field` 'tag_id', required
        - `operator` 'in' | 'not_in', required
        - `values` string[], required
      - object
        - `field` 'topic_id', required
        - `operator` 'in' | 'not_in', required
        - `values` string[], required
      - object
        - `field` 'prompt_id', required
        - `operator` 'in' | 'not_in', required
        - `values` string[], required
      - object
        - `field` 'chat_id', required
        - `operator` 'in' | 'not_in', required
        - `values` string[], required

## Response `200`

Success

- object — Success
  - `data` object[], required
    - `prompt` object, required
      - `id` string, required
    - `chat` object, required
      - `id` string, required
    - `model` object, required — Deprecated: use model_channel instead
      - `id` string, required
    - `model_channel` object, required
      - `id` string, required
    - `date` string, required
    - `query` object, required
      - `index` number, required
      - `text` string, required
  - `total_count` number, required — Total number of matching search queries, ignoring pagination
  - `totalCount` number, required — Total number of matching search queries, ignoring pagination

---

[API](https://skmtc.net/peec/apis/peec-ai-customer-api.md) · [All operations](https://skmtc.net/peec/apis/peec-ai-customer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/peec/peec-ai-customer-api/versions/92840a1bffa7/schema)
