---
type: api
title: List package categories
description: List package categories
url: https://www.elastic.co/docs/api/doc/kibana/v8/operation/operation-get-package-categories
resource: https://www.elastic.co/docs/api/doc/kibana/v8/operation/operation-get-package-categories
products:
  - Kibana
---

# List package categories

Authentication: required

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

## Paths

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

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Query string parameters

- `prerelease` (boolean · default: false) — optional
  Whether to include prerelease packages in categories count (e.g. beta, rc, preview)
- `experimental` (boolean · default: false) — optional — deprecated
- `include_policy_templates` (boolean · default: false) — optional

## Responses

#### `200`

OK

`application/json`

- `items` (object[])
  - `count` (number)
  - `id` (string)
  - `title` (string)
- `response` (object[])
  - `count` (number)
  - `id` (string)
  - `title` (string)
#### `400`

Generic Error

`application/json`

- `error` (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

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "items": [
    {
      "count": 0,
      "id": "string",
      "title": "string"
    }
  ],
  "response": [
    {
      "count": 0,
      "id": "string",
      "title": "string"
    }
  ]
}
```

#### 400

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "string",
  "message": "string",
  "statusCode": 0
}
```

