---
title: "Get All Groups in Card Hierarchy"
method: GET
path: "/v1/card-hierarchies/{cardHierarchyId}/groups"
tags: ["Card Hierarchy Group Management"]
---

# Get All Groups in Card Hierarchy

`GET /v1/card-hierarchies/{cardHierarchyId}/groups`

## Request

- Base URL: `https://integration-api-cat2.{{environment}}.ext.{{realm}}.cia.enfuce.com/transfer`
- URL: `https://integration-api-cat2.{{environment}}.ext.{{realm}}.cia.enfuce.com/transfer/v1/card-hierarchies/{cardHierarchyId}/groups`
- Auth: none required
- TypeScript: <https://skmtc.dev/enfuce/apis/transfer-api/docs/v1/card-hierarchies/:cardHierarchyId/groups/get.ts> (a function with typed inputs; its response is checked against the schema)

This operation retrieves all groups within a specified card hierarchy, optionally filtering by card ID.

## Path parameters

- `cardHierarchyId` string, biginteger, required

## Query parameters

- `cardId` string, biginteger
- `auditUser` string, required

## Response `200`

Successful retrieval of the card hierarchy groups

- CardHierarchyGroupV1[]
  - `id` string, biginteger, required: Generated id of the group
  - `name` string, required: Name of the group
  - `parentId` string, biginteger: Id of the parent group
  - `type` 'ROOT' | 'INTERMEDIATE' | 'CARD', required: Type of the group

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal server error

---

[API](https://skmtc.dev/enfuce/apis/transfer-api.md) - [All operations](https://skmtc.dev/enfuce/apis/transfer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/enfuce/apis/transfer-api/revisions/dc4a41118f80?raw)
