---
title: "Get matching groups for an existing Agent"
method: GET
path: "/agents/{id}/matching_groups"
tags: ["agents"]
---

# Get matching groups for an existing Agent

`GET /agents/{id}/matching_groups`

## Response `200`

Agent Matching Groups object

- object[]
  - `group_id` string, uuid — group id
  - `name` string — group name

## Other responses

- `400` — Failed due to malformed JSON.
- `404` — A non-existent entity request.
- `500` — Unexpected server-side error occurred.

## Changes

> 15 revisions in range; 1 could not be searched.

- **2022-10-04** `111e8df6206d` — 1 breaking
  - added the new required `header` request parameter `Bearer authorization` to all path's operations
- **2022-09-23** `e14b2803a2a3` — 1 info
  - api operation id `readAgent` removed and replaced with `matchingGroups`
- **2022-05-12** `345d3540822a` — 1 breaking, 1 info
  - removed the success response with the status `201`
  - added the success response with the status `200`
- **2022-04-04** `9ef2d75742aa` — 1 info
  - endpoint added
- **2021-08-25** `c2a7000136b8` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/orb-community/apis/orb-fleet/changes/agents/:id/matching_groups/get.md)

---

[API](https://skmtc.dev/orb-community/apis/orb-fleet.md) · [All operations](https://skmtc.dev/orb-community/apis/orb-fleet/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/orb-community/orb-fleet/revisions/53154347a3c8/schema)
