---
title: "Create Chat Agent Group"
method: POST
path: "/api/v1/chat-ai/agent-groups"
tags: ["chat-ai", "chat_agent_groups"]
---

# Create Chat Agent Group

`POST /api/v1/chat-ai/agent-groups`

Create a group and provision the head's per-specialist dispatch tools.

## Request body

- ChatAgentGroupCreate — Schema for creating a ChatAgentGroup. ``entries`` is required with at least one entry — ``entries[0]`` is the head, so a group can never be created headless.
  - `name` string, required
  - `entries` ChatAgentGroupEntry[], required
    - `label` string, required
    - `description` string, nullable
    - `chat_agent_id` string, uuid, required
    - `dispatch_config` ChatDispatchConfig — Operator-configurable dispatch behavior for a specialist entry. Lives on the TARGET entry — it describes how the head agent should dispatch TO this specialist. Mirrors the text surface's ``DispatchScenarioConfig``.
      - `condition` string, nullable
      - `pre_instruction` string, nullable
      - `post_instruction` string, nullable
  - `enabled` boolean

## Response `200`

Successful Response

- ChatAgentGroupRead — Schema for reading a ChatAgentGroup.
  - `id` string, uuid, required
  - `name` string, required
  - `entries` ChatAgentGroupEntry[]
    - `label` string, required
    - `description` string, nullable
    - `chat_agent_id` string, uuid, required
    - `dispatch_config` ChatDispatchConfig — Operator-configurable dispatch behavior for a specialist entry. Lives on the TARGET entry — it describes how the head agent should dispatch TO this specialist. Mirrors the text surface's ``DispatchScenarioConfig``.
      - `condition` string, nullable
      - `pre_instruction` string, nullable
      - `post_instruction` string, nullable
  - `enabled` boolean
  - `tenant_id` string, uuid, required

## Other responses

- `400` — An entry references a missing or disabled chat agent
- `403` — Not a platform super-admin (or lacks VIEW_CHAT)
- `409` — A group with this name already exists in the tenant
- `422` — Validation Error

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getanana/cleon-api/revisions/fbb95eac3965/schema)
