# Query Results

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

`POST /evaluations/results/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 Results

## Request body schema

Content type: `application/json` (required)

- `result` (object, nullable)
  - `flags` (object, nullable)
  - `tags` (object, nullable)
  - `meta` (object, nullable)
  - `status` (string, one of: "pending", "queued", "running", "success", "failure", "errors", "cancelled", nullable)
  - `statuses` (array of string, one of: "pending", "queued", "running", "success", "failure", "errors", "cancelled", nullable)
  - `interval` (integer, nullable)
  - `intervals` (array of integer, nullable)
  - `timestamp` (string (date-time), nullable)
  - `timestamps` (array of string (date-time), nullable)
  - `repeat_idx` (integer, nullable)
  - `repeat_idxs` (array of integer, nullable)
  - `step_key` (string, nullable)
  - `step_keys` (array of string, nullable)
  - `scenario_id` (string (uuid), nullable)
  - `scenario_ids` (array of string (uuid), nullable)
  - `run_id` (string (uuid), nullable)
  - `run_ids` (array of string (uuid), nullable)
  - `ids` (array of string (uuid), nullable)
- `windowing` (object, nullable)
  - `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) Default: `0`.
- `results` (array of object) Default: `[]`.
  - `flags` (object, nullable)
  - `tags` (object, nullable)
  - `meta` (object, 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)
  - `hash_id` (string (uuid), nullable)
  - `trace_id` (string, nullable)
  - `testcase_id` (string (uuid), nullable)
  - `error` (object, nullable)
  - `status` (string, one of: "pending", "queued", "running", "success", "failure", "errors", "cancelled", nullable) Default: `"pending"`.
  - `interval` (integer, nullable)
  - `timestamp` (string (date-time), nullable)
  - `repeat_idx` (integer, nullable) Default: `0`.
  - `step_key` (string, required)
  - `scenario_id` (string (uuid), required)
  - `run_id` (string (uuid), required)

### 422: Validation Error

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