---
title: "List Agent Groups"
method: GET
path: "/agents/{id}/groups"
tags: ["agents"]
---

# List Agent Groups

`GET /agents/{id}/groups`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/agents/{id}/groups`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

The groups the agent's service account belongs to.

## Path parameters

- `id` string, required

## Response `200`

OK

- InternalDeliveryHttpHandlerAgentGroupListResponse
  - `data` InternalDeliveryHttpHandlerAgentGroupListData
    - `items` EnforcerV3InternalDomainAgentGroupRef[]
      - `id` string
      - `name` string
      - `slug` string
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/instruxi/apis/enforcer-api.md) · [All operations](https://skmtc.dev/instruxi/apis/enforcer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/instruxi/apis/enforcer-api/revisions/fa82bc1becc0?raw)
