---
title: "Retrieve an agent group"
method: GET
path: "/agentgroups/{group_id}"
tags: ["Agent Groups"]
---

# Retrieve an agent group

`GET /agentgroups/{group_id}`

## Request

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

Retrieves an agent group in your organization.

## Headers

- `x-org-id` string

## Response `200`

OK

- 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)
