# Elastic Stack (ELK Stack) Indices API

**Canonical:** https://apis.io/apis/elk-stack/elk-stack-indices-api/  
**Provider:** Elastic Stack (ELK Stack) — https://apis.io/providers/elk-stack/  
**Base URL:** https://{elasticsearch_endpoint}  
**Documentation:** https://www.elastic.co/docs/api/doc/elasticsearch/

Elastic Stack (ELK Stack) Indices API is one of 132 APIs that [Elastic Stack (ELK Stack)](https://apis.io/providers/elk-stack/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Indices. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

The indices API from Elastic Stack (ELK Stack) — 63 operation(s) for indices.

## Operations (60 of 104)

| Method | Path | Summary |
|---|---|---|
| GET | `/_component_template/{name}` | Get component templates |
| PUT | `/_component_template/{name}` | Create or update a component template |
| POST | `/_component_template/{name}` | Create or update a component template |
| DELETE | `/_component_template/{name}` | Delete component templates |
| HEAD | `/_component_template/{name}` | Check component templates |
| GET | `/_component_template` | Get component templates |
| POST | `/_dangling/{index_uuid}` | Import a dangling index |
| DELETE | `/_dangling/{index_uuid}` | Delete a dangling index |
| GET | `/_dangling` | Get the dangling indices |
| PUT | `/{index}/_block/{block}` | Add an index block |
| DELETE | `/{index}/_block/{block}` | Remove an index block |
| GET | `/_analyze` | Get tokens from text analysis |
| POST | `/_analyze` | Get tokens from text analysis |
| GET | `/{index}/_analyze` | Get tokens from text analysis |
| POST | `/{index}/_analyze` | Get tokens from text analysis |
| POST | `/_cache/clear` | Clear the cache |
| POST | `/{index}/_cache/clear` | Clear the cache |
| PUT | `/{index}/_clone/{target}` | Clone an index |
| POST | `/{index}/_clone/{target}` | Clone an index |
| POST | `/{index}/_close` | Close an index |
| GET | `/{index}` | Get index information |
| PUT | `/{index}` | Create an index |
| DELETE | `/{index}` | Delete indices |
| HEAD | `/{index}` | Check indices |
| GET | `/{index}/_alias/{name}` | Get aliases |
| PUT | `/{index}/_alias/{name}` | Create or update an alias |
| POST | `/{index}/_alias/{name}` | Create or update an alias |
| DELETE | `/{index}/_alias/{name}` | Delete an alias |
| HEAD | `/{index}/_alias/{name}` | Check aliases |
| PUT | `/{index}/_aliases/{name}` | Create or update an alias |
| POST | `/{index}/_aliases/{name}` | Create or update an alias |
| DELETE | `/{index}/_aliases/{name}` | Delete an alias |
| DELETE | `/_data_stream/{name}/_lifecycle` | Delete data stream lifecycles |
| GET | `/_index_template/{name}` | Get index templates |
| PUT | `/_index_template/{name}` | Create or update an index template |
| POST | `/_index_template/{name}` | Create or update an index template |
| DELETE | `/_index_template/{name}` | Delete an index template |
| HEAD | `/_index_template/{name}` | Check index templates |
| GET | `/_template/{name}` | Get legacy index templates |
| PUT | `/_template/{name}` | Create or update a legacy index template |
| POST | `/_template/{name}` | Create or update a legacy index template |
| DELETE | `/_template/{name}` | Delete a legacy index template |
| HEAD | `/_template/{name}` | Check existence of index templates |
| POST | `/{index}/_disk_usage` | Analyze the index disk usage |
| GET | `/_alias/{name}` | Get aliases |
| HEAD | `/_alias/{name}` | Check aliases |
| GET | `/{index}/_field_usage_stats` | Get field usage stats |
| GET | `/_flush` | Flush data streams or indices |
| POST | `/_flush` | Flush data streams or indices |
| GET | `/{index}/_flush` | Flush data streams or indices |
| POST | `/{index}/_flush` | Flush data streams or indices |
| POST | `/_forcemerge` | Force a merge |
| POST | `/{index}/_forcemerge` | Force a merge |
| GET | `/_alias` | Get aliases |
| GET | `/{index}/_alias` | Get aliases |
| GET | `/_mapping/field/{fields}` | Get mapping definitions |
| GET | `/{index}/_mapping/field/{fields}` | Get mapping definitions |
| GET | `/_index_template` | Get index templates |
| GET | `/_mapping` | Get mapping definitions |
| GET | `/{index}/_mapping` | Get mapping definitions |

…and 44 more operations. They are listed in full on the page.

## Machine-readable artifacts (8)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/openapi/elk-stack-indices-api-openapi.yml
- **Documentation** — https://www.elastic.co/docs/reference/elasticsearch
- **APIReference** — https://www.elastic.co/docs/api/doc/elasticsearch/
- **SourceCode** — https://github.com/elastic/elasticsearch-specification
- **Documentation** — https://www.elastic.co/docs/reference/kibana
- **APIReference** — https://www.elastic.co/docs/api/doc/kibana/
- **SourceCode** — https://github.com/elastic/kibana
- **ToolCrosswalk** — https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/mcp/elk-stack-tool-crosswalk.yml

## Other Elastic Stack (ELK Stack) APIs (12)

- [Elastic Cloud API](https://apis.io/apis/elk-stack/elastic-cloud-api/)
- [Elastic Stack (ELK Stack) Accounts API](https://apis.io/apis/elk-stack/elk-stack-accounts-api/)
- [Elastic Stack (ELK Stack) Actions API](https://apis.io/apis/elk-stack/elk-stack-actions-api/)
- [Elastic Stack (ELK Stack) agent builder API](https://apis.io/apis/elk-stack/elk-stack-agent-builder-api/)
- [Elastic Stack (ELK Stack) Alerting API](https://apis.io/apis/elk-stack/elk-stack-alerting-api/)
- [Elastic Stack (ELK Stack) Alerting V2 API](https://apis.io/apis/elk-stack/elk-stack-alerting-v2-api/)
- [Elastic Stack (ELK Stack) Analytics API](https://apis.io/apis/elk-stack/elk-stack-analytics-api/)
- [Elastic Stack (ELK Stack) APM agent configuration API](https://apis.io/apis/elk-stack/elk-stack-apm-agent-configuration-api/)
- [Elastic Stack (ELK Stack) APM agent keys API](https://apis.io/apis/elk-stack/elk-stack-apm-agent-keys-api/)
- [Elastic Stack (ELK Stack) APM annotations API](https://apis.io/apis/elk-stack/elk-stack-apm-annotations-api/)
- [Elastic Stack (ELK Stack) APM server schema API](https://apis.io/apis/elk-stack/elk-stack-apm-server-schema-api/)
- [Elastic Stack (ELK Stack) APM sourcemaps API](https://apis.io/apis/elk-stack/elk-stack-apm-sourcemaps-api/)

## Tags

Indices

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/elk-stack/elk-stack-indices-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/elk-stack/.
