---
title: "Query Workflow Variants"
method: POST
path: "/workflows/variants/query"
tags: ["Workflows"]
---

# Query Workflow Variants

`POST /workflows/variants/query`

## Query parameters

- `workflow_id` string, uuid, nullable
- `workflow_ids` string[], nullable
- `workflow_slug` string, nullable
- `workflow_slugs` string[], nullable
- `workflow_variant_id` string, uuid, nullable
- `workflow_variant_ids` string[], nullable
- `workflow_variant_slug` string, nullable
- `workflow_variant_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

- WorkflowVariantsResponse
  - `count` integer
  - `workflow_variants` WorkflowVariant[]
    - `workflow_id` string, uuid, nullable
    - `artifact_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-27** `8fcd55a5a656` — 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/workflows/variants/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/8fcd55a5a656/schema)
