---
title: "List agent groups"
method: GET
path: "/agentgroups"
tags: ["Agent Groups"]
---

# List agent groups

`GET /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/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a paginated list of agent groups in your organization.

## Query parameters

- `fields` string[]
- `filter` string[]
- `limit` integer
- `skip` integer
- `sort` string[]

## 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.

## Other responses

- `default`: Unexpected error

---

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