---
title: "Create an agent group"
method: POST
path: "/agentgroups"
tags: ["Agent Groups"]
---

# Create an agent group

`POST /agentgroups`

## Request

- Base URL: `https://console.jumpcloud.com/api/v2`
- URL: `https://console.jumpcloud.com/api/v2/agentgroups`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/docs/agentgroups/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new agent group in your organization.

## Headers

- `x-org-id` string

## Request body

- AgentGroupData
  - `attributes` GraphAttributes, nullable: The graph attributes.
  - `description` string: Description of the agent group.
  - `name` string, required: Display name of the agent group.

## Response `201`

Created

- AgentGroup
  - `attributes` GraphAttributes, nullable: The graph attributes.
  - `description` string: Description of the agent group.
  - `id` string: Agent group ID (24-character hexadecimal string).
  - `name` string: Display name of the agent group. Can be used in the `filter` query parameter when listing agent groups.
  - `organizationObjectId` string, nullable: ID of the organization that owns the agent group (24-character hexadecimal string).
  - `type` 'agent_group': The type of the group; always `agent_group` for an agent group.

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/revisions/3f09fe63caaa?raw)
