---
title: "Query Workflows"
method: POST
path: "/preview/workflows/query"
tags: ["Workflows"]
---

# Query Workflows

`POST /preview/workflows/query`

## Query parameters

- `workflow_id` string, uuid, nullable
- `workflow_ids` string[], nullable
- `workflow_slug` string, nullable
- `workflow_slugs` string[], nullable
- `name` string, nullable
- `description` string, nullable
- `flags` string, nullable
- `tags` string, nullable
- `meta` string, nullable
- `include_archived` boolean, nullable
- `next` string, uuid, nullable
- `newest` string, date-time, nullable
- `oldest` string, date-time, nullable
- `limit` integer, nullable
- `order` 'ascending' | 'descending', nullable

## Response `200`

Successful Response

- WorkflowsResponse
  - `count` integer
  - `workflows` Workflow[]
    - `folder_id` string, uuid, nullable
    - `flags` WorkflowFlags
      - `is_custom` boolean
      - `is_evaluator` boolean
      - `is_human` boolean
      - `is_chat` 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

## Changes

- **2026-02-13** `72fe88316d15` — 4 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
  - added the optional property `workflows/items/flags/anyOf[subschema #1: WorkflowFlags]/is_chat` to the response with the `200` status
  - added the optional property `workflows/items/folder_id` to the response with the `200` status
- **2026-01-14** `53da4c9de2b7` — 7 info
  - the `is_custom` response's property default value `false` was added for the status `200`
  - the `is_evaluator` response's property default value `false` was added for the status `200`
  - the `is_human` response's property default value `false` was added for the status `200`
  - response property `workflows/items/flags/anyOf[subschema #1: WorkflowFlags]/is_custom` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - …3 more
- **2025-11-05** `e62506c24377` — 1 info
  - endpoint added

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