---
title: "Retrieve all category groups for a user"
method: GET
path: "/category-groups"
tags: ["categories"]
---

# Retrieve all category groups for a user

`GET /category-groups`

## Request

- Base URL: `https://api.moneyhub.co.uk/v3`
- URL: `https://api.moneyhub.co.uk/v3/category-groups`
- Auth: API key in header `Authorization`

Requires **categories:read** scope.

## Query parameters

- `type` 'personal' | 'business'

## Response `200`

Successful Category Groups Response

- object
  - `data` CategoryGroup[]
    - `id` string, required: The id of the category group.
    - `key` string, required: A text key for the category group
  - `links` Links
    - `next` string, uri: The url to retrieve the next page of results from
    - `prev` string, uri: The url to retrieve the previous page of results from
    - `self` string, uri, required: The url of the current resource(s)
  - `meta` object

## Other responses

- `401`: Unsuccessful Response - Not authorised - Missing authorization header - Invalid access Token
- `403`: Unsuccessful Response - Forbidden - Invalid scopes

---

[API](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3.md) - [All operations](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/revisions/2e08b5dbee56?raw)
