---
type: api
title: Get package categories
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-get-fleet-epm-categories
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-get-fleet-epm-categories
products:
  - Kibana
---

# Get package categories

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/fleet/epm/categories`
- `GET` `/s/{space_id}/api/fleet/epm/categories`

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Get a list of integration categories.

## Required authorization

- Privileges: `integrations-read` or `fleet-setup` or `fleet-all`

## Authentication

- Api key: `Authorization: <value>`
  You must create an API key and use the encoded value in the request header. To learn about creating keys, go to [API keys](https://www.elastic.co/docs/current/serverless/api-keys).

## Query string parameters

- `prerelease` (boolean) — optional
  When true, include prerelease packages in the results
- `include_policy_templates` (boolean) — optional
  When true, include categories that only contain policy templates

## Responses

#### `200`

Successful response

`application/json`

- `items` (object[] · max items: 10000)
  - `count` (number)
  - `id` (string)
  - `parent_id` (string)
  - `parent_title` (string)
  - `title` (string)
#### `400`

Bad Request

`application/json`

- `attributes` (object)
- `error` (string)
- `errorType` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
GET kbn:/api/fleet/epm/categories
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/fleet/epm/categories" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Get categories

List of integration categories

```json
{
  "items": [
    {
      "count": 42,
      "id": "security",
      "title": "Security"
    },
    {
      "count": 38,
      "id": "observability",
      "title": "Observability"
    }
  ]
}
```

#### Generic error response

Example of a generic error response

```json
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}
```

