---
title: "Get all company account groups"
method: GET
path: "/account-groups"
tags: ["Accounts"]
deprecated: true
---

# Get all company account groups

`GET /account-groups`

> **Deprecated.**

## Query parameters

- `pageOffset` number
- `pageSize` number

## Response `200`

Account groups has been returned

- AccountGroupsResponse
  - `accountGroups` object[]
    - `id` string, required — The unique UUID identifier of the account group
    - `name` string, required — Description of the account group
    - `typeKey` 'entertainment' | 'equipment_and_hardware' | 'marketing_and_advertising' | 'meals_and_drinks' | 'office_expenses' | 'phone_and_internet' | 'services_and_consultancy' | 'software' | 'supplies' | 'travel' | 'other' | 'no_suitable_category', required — Type key of the account group
    - `hidden` boolean, required — Is the account hidden/archived for the user
  - `metadata` object, required — Additional metadata including pagination information
    - `pageInfo` object — Pagination information.
      - `nextPageOffset` number — The row number that should be used in the next fetch for the next page offset
      - `pageSize` number, required — The number of items returned in this page
      - `totalCount` number, required — The total number of items mapped to the filter criteria supplied

## Other responses

- `401` — request unauthorized
- `403` — Request forbidden; user has insufficient rights to a resource.
- `404` — route not found
- `500` — Something went wrong. Please contact the administrator if problems persist.

---

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