---
title: "Query Folders"
method: POST
path: "/folders/query"
tags: ["Folders"]
---

# Query Folders

`POST /folders/query`

## Request body

- FolderQueryRequest
  - `folder` FolderQuery, required
    - `flags` object, nullable
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `id` string, uuid, nullable
    - `ids` string[], nullable
    - `slug` string, nullable
    - `slugs` string[], nullable
    - `kind` 'applications'
    - `kinds` union
      - boolean
      - FolderKind[]
    - `parent_id` string, uuid, nullable
    - `parent_ids` string[], nullable
    - `path` string, nullable
    - `paths` string[], nullable
    - `prefix` string, nullable
    - `prefixes` string[], nullable

## Response `200`

Successful Response

- FoldersResponse
  - `count` integer
  - `folders` Folder[]
    - `flags` object, nullable
    - `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
    - `kind` 'applications'
    - `path` string, nullable
    - `parent_id` string, uuid, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-13** `72fe88316d15` — 2 info
  - 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` — 1 info
  - endpoint added
- **2025-06-27** `e3e84db47198` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/folders/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/edbcb02ac8b1/schema)
