---
title: "Configs Query"
method: POST
path: "/variants/configs/query"
tags: ["Variants"]
---

# Configs Query

`POST /variants/configs/query`

## Request body

- ConfigsQueryRequestModel
  - `variant_refs` ReferenceRequestModel[], nullable
    - `slug` string, nullable
    - `version` integer, nullable
    - `commit_message` string, nullable
    - `id` string, uuid, nullable
  - `application_ref` ReferenceRequestModel
    - `slug` string, nullable
    - `version` integer, nullable
    - `commit_message` string, nullable
    - `id` string, uuid, nullable

## Response `200`

Successful Response

- ConfigsResponseModel
  - `count` integer
  - `configs` ConfigDTO[]
    - `params` object, required
    - `url` string, nullable
    - `application_ref` ReferenceDTO
      - `slug` string, nullable
      - `version` integer, nullable
      - `commit_message` string, nullable
      - `id` string, uuid, nullable, required
    - `service_ref` ReferenceDTO
      - `slug` string, nullable
      - `version` integer, nullable
      - `commit_message` string, nullable
      - `id` string, uuid, nullable, required
    - `variant_ref` ReferenceDTO
      - `slug` string, nullable
      - `version` integer, nullable
      - `commit_message` string, nullable
      - `id` string, uuid, nullable, required
    - `environment_ref` ReferenceDTO
      - `slug` string, nullable
      - `version` integer, nullable
      - `commit_message` string, nullable
      - `id` string, uuid, nullable, required
    - `application_lifecycle` LegacyLifecycleDTO
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `updated_by_id` string, nullable
      - `updated_by` string, nullable
    - `service_lifecycle` LegacyLifecycleDTO
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `updated_by_id` string, nullable
      - `updated_by` string, nullable
    - `variant_lifecycle` LegacyLifecycleDTO
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `updated_by_id` string, nullable
      - `updated_by` string, nullable
    - `environment_lifecycle` LegacyLifecycleDTO
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `updated_by_id` string, nullable
      - `updated_by` string, 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

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