---
title: "GET /orgs/fetch-agent-groups"
method: GET
path: "/orgs/fetch-agent-groups"
tags: ["orgs"]
---

# GET /orgs/fetch-agent-groups

`GET /orgs/fetch-agent-groups`

Gets the agent groups and order of the current user's organization.

## Headers

- `X-Phantombuster-Org` string

## Response `200`

OK

- union[]
  - union
    - string
    - object
      - `id` string, required
      - `name` string, required
      - `agents` string[], required

---

[API](https://skmtc.net/phantombuster/apis/phantombuster-api-v2.md) · [All operations](https://skmtc.net/phantombuster/apis/phantombuster-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phantombuster/phantombuster-api-v2/versions/acf0049d7c7f/schema)
