---
title: "Query Applications"
method: POST
path: "/applications/query"
tags: ["Applications"]
---

# Query Applications

`POST /applications/query`

Query application artifacts.

Returns only artifact-level fields; the variant, revision, and `data`
payload are not included. For one row per application with those
merged in, use `POST /simple/applications/query`.
See [Query Pattern](/reference/api-guide/query-pattern).

## Request body

- ApplicationQueryRequest — Request body for `POST /applications/query`. Returns artifact rows only. For rows that include the currently resolved variant, revision, and `data` payload merged in, use `POST /simple/applications/query`. See [Query Pattern](/reference/api-guide/query-pattern).
  - `application` ApplicationQuery
    - `folder_id` string, uuid, nullable
    - `flags` ApplicationArtifactQueryFlags — Application query flags - filter for is_application=True.
      - `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` string[], nullable
  - `application_refs` Reference[], nullable — Restrict the query to specific applications by `id` or `slug`. Combined with the `application` filter with AND semantics.
    - `version` string, nullable
    - `slug` string, nullable
    - `id` string, uuid, nullable
  - `include_archived` boolean, nullable — When `true`, include soft-deleted applications. Defaults to `false`.
  - `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

- ApplicationsResponse — Paginated list of application artifacts.
  - `count` integer — Number of applications in this page.
  - `applications` Application[] — Application artifacts matching the query.
    - `folder_id` string, uuid, nullable
    - `flags` ApplicationArtifactFlags — Application flags - is_application=True; other booleans use their normal defaults unless explicitly set.
      - `is_application` boolean
      - `is_evaluator` boolean
      - `is_snippet` 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
    - `slug` string, nullable
    - `id` string, uuid, 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/ea6421d829f1/schema)
