---
title: "Query Evaluations"
method: POST
path: "/preview/simple/evaluations/query"
tags: ["Evaluations"]
---

# Query Evaluations

`POST /preview/simple/evaluations/query`

## Request body

- SimpleEvaluationQueryRequest
  - `evaluation` SimpleEvaluationQuery
    - `flags` EvaluationRunQueryFlags
      - `is_live` boolean, nullable
      - `is_active` boolean, nullable
      - `is_closed` boolean, nullable
      - `has_queries` boolean, nullable
      - `has_testsets` boolean, nullable
      - `has_evaluators` boolean, nullable
      - `has_custom` boolean, nullable
      - `has_human` boolean, nullable
      - `has_auto` boolean, nullable
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `ids` string[], nullable
  - `windowing` Windowing
    - `newest` string, date-time, nullable
    - `oldest` string, date-time, nullable
    - `next` string, uuid, nullable
    - `limit` integer, nullable
    - `order` 'ascending' | 'descending', nullable
    - `interval` integer, nullable
    - `rate` number, nullable
  - `jit` union
    - boolean
    - object

## Response `200`

Successful Response

- SimpleEvaluationsResponse
  - `count` integer
  - `evaluations` SimpleEvaluation[]
    - `flags` EvaluationRunFlags
      - `is_live` boolean
      - `is_active` boolean
      - `is_closed` boolean
      - `has_queries` boolean
      - `has_testsets` boolean
      - `has_evaluators` boolean
      - `has_custom` boolean
      - `has_human` boolean
      - `has_auto` boolean
    - `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
    - `id` string, uuid, nullable
    - `version` string, nullable
    - `data` SimpleEvaluationData
      - `status` 'pending' | 'queued' | 'running' | 'success' | 'failure' | 'errors' | 'cancelled'
      - `query_steps` union
        - string[]
        - object
      - `testset_steps` union
        - string[]
        - object
      - `application_steps` union
        - string[]
        - object
      - `evaluator_steps` union
        - string[]
        - object
      - `repeats` integer, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-13** `72fe88316d15` — 3 info
  - added the new optional request property `jit`
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-01-14** `53da4c9de2b7` — 2 breaking, 14 info
  - removed `#/components/schemas/EvaluationRunFlags` from the `evaluation/anyOf[subschema #1: SimpleEvaluationQuery]/flags` request property `anyOf` list
  - request property `evaluation/anyOf[subschema #1: SimpleEvaluationQuery]/tags/anyOf[subschema #1]/additionalProperties/` list-of-types was narrowed by removing types `integer, null and number` from media type `application/json`
  - added `#/components/schemas/EvaluationRunQueryFlags` to the `evaluation/anyOf[subschema #1: SimpleEvaluationQuery]/flags` request property `anyOf` list
  - added the optional property `evaluations/items/flags/anyOf[subschema #1: EvaluationRunFlags]/has_auto` to the response with the `200` status
  - …12 more
- **2025-11-05** `e62506c24377` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/preview/simple/evaluations/query/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/42bb75a1c2e6/schema)
