# Query Evaluators

Source: https://agenta.ai/docs/reference/api/query-evaluators

`POST /evaluators/query`

Base URL: `https://us.cloud.agenta.ai/api` (US cloud), `https://eu.cloud.agenta.ai/api` (EU cloud) or `$AGENTA_HOST/api` (self-hosted). Authentication: `Authorization: ApiKey YOUR_API_KEY`.

Query evaluator artifacts with filters and pagination.

Returns artifact-level records only. The request body follows
the shared query pattern (filter + refs + windowing). Send `{}`
to list all evaluators in the project. See the Query Pattern
guide.

## Request body schema

Content type: `application/json` (required)

- `evaluator` (object, nullable): Filter on evaluator attributes (flags, tags, meta).
  - `folder_id` (string (uuid), nullable)
  - `flags` (object, nullable)
    - `is_application` (boolean, nullable)
    - `is_evaluator` (boolean, nullable)
    - `is_snippet` (boolean, nullable)
  - `tags` (object, nullable)
  - `meta` (object, nullable)
  - `name` (string, nullable)
  - `description` (string, nullable)
  - `slug` (string, nullable)
  - `slugs` (array of string, nullable)
- `evaluator_refs` (array of object, nullable): Restrict the query to these evaluators. Accepts `id` or `slug` per reference.
  - `version` (string, nullable)
  - `slug` (string, nullable)
  - `id` (string (uuid), nullable)
- `include_archived` (boolean, nullable): When true, include soft-deleted evaluators in the response.
- `windowing` (object, nullable): Cursor-based pagination controls (limit, order, next, newest, oldest).
  - `newest` (string (date-time), nullable)
  - `oldest` (string (date-time), nullable)
  - `next` (string (uuid), nullable)
  - `limit` (integer, nullable)
  - `order` (string, one of: "ascending", "descending", nullable)
  - `interval` (integer, nullable)
  - `rate` (number, nullable)

## Response schemas

### 200: Successful Response

- `count` (integer): Number of evaluators in `evaluators`. Default: `0`.
- `evaluators` (array of object): Matching evaluator artifacts.
  - `folder_id` (string (uuid), nullable)
  - `flags` (object, nullable)
    - `is_application` (boolean) Default: `false`.
    - `is_evaluator` (boolean) Default: `false`.
    - `is_snippet` (boolean) Default: `false`.
  - `tags` (object, nullable)
  - `meta` (object, nullable)
  - `name` (string, nullable)
  - `description` (string, nullable)
  - `created_at` (string (date-time), nullable)
  - `updated_at` (string (date-time), nullable)
  - `deleted_at` (string (date-time), nullable)
  - `created_by_id` (string (uuid), nullable)
  - `updated_by_id` (string (uuid), nullable)
  - `deleted_by_id` (string (uuid), nullable)
  - `slug` (string, nullable)
  - `id` (string (uuid), nullable)
  - `access` (object, nullable)
    - `visibility` (string, one of: "private", "project", required)
    - `owner_user_id` (string (uuid), nullable)

### 422: Validation Error

- `detail` (array of object)
  - `loc` (array of string | integer, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (Context)
