---
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/4493/api/doc/kibana/v9/operation/operation-readprebuiltrulesandtimelinesstatus
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-readprebuiltrulesandtimelinesstatus
products:
  - Kibana
---

# Retrieve the status of prebuilt detection rules and Timelines

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

## Paths

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

## Description

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

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.

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

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

```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
}
```

