---
title: "Create an alerts index"
method: POST
path: "/api/detection_engine/index"
tags: ["Security Detections API"]
---

# Create an alerts index

`POST /api/detection_engine/index`

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/detection_engine/index</span></div>

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

Creates an index for Elastic Security alerts. Calling this API is not
required for the detection engine to function properly. You can create
rules and alerts without calling this API.

## Response `200`

Successful response

- object
  - `acknowledged` boolean, required

## Other responses

- `401` — Unsuccessful authentication response
- `403` — Not enough permissions response
- `404` — Not found
- `500` — Internal server error response

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
