---
title: "Get categories for a company"
method: GET
path: "/companies/{company-id}/categories"
tags: ["Companies"]
---

# Get categories for a company

`GET /companies/{company-id}/categories`

## Request

- Base URL: `https://categories-api.home.mendix.com/v1`
- URL: `https://categories-api.home.mendix.com/v1/companies/{company-id}/categories`
- Auth: API key in header `Authorization`

Returns the list of categories for the company.
The user PAT needs to have the scope `mx:app:categories:read`.

## Path parameters

- `company-id` string, required

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

List of categories

- object
  - `links` PaginationLinks
    - `self` string: URL to the current page of results
    - `next` string: URL to the next page of results
    - `prev` string: URL to the previous page of results
    - `first` string: URL to the first page of results
    - `last` string: URL to the last page of results
  - `meta` PaginationMeta
    - `page` object
      - `totalElements` integer: Total number of elements available
      - `offset` integer: Number of items skipped before starting to collect the result set
      - `elements` integer: Number of elements returned on this page
  - `items` Category[]
    - `categoryId` string: Unique identifier for the category
    - `name` string: Name of the category

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/mendix/apis/categories-api.md) - [All operations](https://skmtc.dev/mendix/apis/categories-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mendix/apis/categories-api/revisions/22dd53db4f78?raw)
