---
type: api
title: Retrieve the status of prebuilt detection rules and Timelines
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v9/operation/operation-readprebuiltrulesandtimelinesstatus
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v9/operation/operation-readprebuiltrulesandtimelinesstatus
products:
  - Kibana
---

# Retrieve the status of prebuilt detection rules and Timelines

Authentication: required

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

## Paths

- `GET` `/api/detection_engine/rules/prepackaged/_status`
- `GET` `/s/{space_id}/api/detection_engine/rules/prepackaged/_status`

#### 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.

## Description

Retrieve the status of all Elastic prebuilt detection rules and Timelines. 

This endpoint provides detailed information about the number of custom rules, installed prebuilt rules, available prebuilt rules that are not installed, outdated prebuilt rules, installed prebuilt timelines, available prebuilt timelines that are not installed, and outdated prebuilt timelines.

## Response

Indicates a successful call

`application/json`

- `rules_custom_installed` (integer · min: 0)
  The total number of custom rules
- `rules_installed` (integer · min: 0)
  The total number of installed prebuilt rules
- `rules_not_installed` (integer · min: 0)
  The total number of available prebuilt rules that are not installed
- `rules_not_updated` (integer · min: 0)
  The total number of outdated prebuilt rules
- `timelines_installed` (integer · min: 0)
  The total number of installed prebuilt timelines
- `timelines_not_installed` (integer · min: 0)
  The total number of available prebuilt timelines that are not installed
- `timelines_not_updated` (integer · min: 0)
  The total number of outdated prebuilt timelines
## Code examples

#### Console

```console
GET kbn:/api/detection_engine/rules/prepackaged/_status
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/detection_engine/rules/prepackaged/_status" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Example1

`application/json`

```json
{
  "rules_custom_installed": 0,
  "rules_installed": 0,
  "rules_not_installed": 112,
  "rules_not_updated": 0,
  "timelines_installed": 0,
  "timelines_not_installed": 0,
  "timelines_not_updated": 0
}
```

