---
title: "Create Agent Group"
method: POST
path: "/api/v1/agent-groups"
---

# Create Agent Group

`POST /api/v1/agent-groups`

## Request

- Base URL: `https://api.skyfire.xyz`
- URL: `https://api.skyfire.xyz/api/v1/agent-groups`
- Auth: API key in header `skyfire-api-key`

As an Organization Admin, create an agent group in your organization.

## Request body

- object
  - `name` string, required: Name of the group. Printable ASCII with at least one non-space character, 1 to 100 characters. Unique in your organization after case and whitespace folding, and may not match an active ungrouped agent's name. Member agents take this name. e.g. `"ShoppingBot"`
  - `description` string: Free-form description of what this agent does. At most 1000 characters.

## Response `200`

Ok

- object
  - `id` string, required: Unique identifier of the agent group. Use it on the by-id, enrollment, and member routes.
  - `name` string, required: The group's name, as stored.
  - `description` string, nullable, required: The description provided at creation, or `null`.
  - `active` boolean, required: Whether the group is active. Always `true` on creation.
  - `createdAt` string, required: When the group was created. e.g. `"2026-10-01T15:21:07.000Z"`.
  - `updatedAt` string, required: When the group was last changed.

## Other responses

- `401`: Unauthorized
- `409`: Conflict
- `422`: Unprocessable Entity

## Changes

- **2026-11-03** `22cbec9d7630`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/changes/api/v1/agent-groups/post.md)

---

[API](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis.md) - [All operations](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/revisions/22cbec9d7630?raw)
