---
title: "Query Runs"
method: POST
path: "/evaluations/runs/query"
tags: ["Evaluations"]
---

# Query Runs

`POST /evaluations/runs/query`

## Request body

- EvaluationRunQueryRequest
  - `run` EvaluationRunQuery
    - `flags` EvaluationRunQueryFlags
      - `is_live` boolean, nullable
      - `is_active` boolean, nullable
      - `is_closed` boolean, nullable
      - `is_queue` boolean, nullable
      - `is_cached` boolean, nullable
      - `is_split` boolean, nullable
      - `has_queries` boolean, nullable
      - `has_testsets` boolean, nullable
      - `has_traces` boolean, nullable
      - `has_testcases` 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
    - `status` 'pending' | 'queued' | 'running' | 'success' | 'failure' | 'errors' | 'cancelled'
    - `statuses` EvaluationStatus[], nullable
    - `references` object[], 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

## Response `200`

Successful Response

- EvaluationRunsResponse
  - `count` integer
  - `runs` EvaluationRun[]
    - `flags` EvaluationRunFlags
      - `is_live` boolean
      - `is_active` boolean
      - `is_closed` boolean
      - `is_queue` boolean
      - `is_cached` boolean
      - `is_split` boolean
      - `has_queries` boolean
      - `has_testsets` boolean
      - `has_traces` boolean
      - `has_testcases` 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
    - `status` 'pending' | 'queued' | 'running' | 'success' | 'failure' | 'errors' | 'cancelled'
    - `data` EvaluationRunDataOutput
      - `steps` EvaluationRunDataStepOutput[], nullable
        - `key` string, required
        - `type` 'input' | 'invocation' | 'annotation', required
        - `origin` 'custom' | 'human' | 'auto', required
        - `references` object, required
        - `inputs` EvaluationRunDataStepInputKey[], nullable
          - `key` string, required
        - `schemas` JsonSchemasOutput
          - `parameters` object, nullable
          - `inputs` object, nullable
          - `outputs` object, nullable
      - `repeats` integer, nullable
      - `concurrency` EvaluationRunDataConcurrency
        - `batch_size` integer, nullable
        - `max_retries` integer, nullable
        - `retry_delay` number, nullable
      - `mappings` EvaluationRunDataMapping[], nullable
        - `column` EvaluationRunDataMappingColumn, required
          - `kind` string, required
          - `name` string, required
        - `step` EvaluationRunDataMappingStep, required
          - `key` string, required
          - `path` string, required
  - `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

## Other responses

- `422` — Validation Error

---

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