Elastic Stack (ELK Stack) Indices API

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

Operations 104

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 #
PUT /{index}/_mapping Update field mappings #
POST /{index}/_mapping Update field mappings #
GET /_settings Get index settings #
PUT /_settings Update index settings #
GET /{index}/_settings Get index settings #
PUT /{index}/_settings Update index settings #
GET /{index}/_settings/{name} Get index settings #
GET /_settings/{name} Get index settings #
GET /_template Get legacy index templates #
POST /{index}/_open Open a closed index #
GET /_recovery Get index recovery information #
GET /{index}/_recovery Get index recovery information #
GET /_refresh Refresh an index #
POST /_refresh Refresh an index #
GET /{index}/_refresh Refresh an index #
POST /{index}/_refresh Refresh an index #
GET /{index}/_reload_search_analyzers Reload search analyzers #
POST /{index}/_reload_search_analyzers Reload search analyzers #
GET /_resolve/cluster Resolve the cluster #
GET /_resolve/cluster/{name} Resolve the cluster #
GET /_resolve/index/{name} Resolve indices #
POST /_resolve/index/{name} Resolve indices #
POST /{alias}/_rollover Roll over to a new index #
POST /{alias}/_rollover/{new_index} Roll over to a new index #
GET /_segments Get index segments #
GET /{index}/_segments Get index segments #
GET /_shard_stores Get index shard stores #
GET /{index}/_shard_stores Get index shard stores #
PUT /{index}/_shrink/{target} Shrink an index #
POST /{index}/_shrink/{target} Shrink an index #
POST /_index_template/_simulate_index/{name} Simulate an index #
POST /_index_template/_simulate Simulate an index template #
POST /_index_template/_simulate/{name} Simulate an index template #
PUT /{index}/_split/{target} Split an index #
POST /{index}/_split/{target} Split an index #
GET /_stats Get index statistics #
GET /_stats/{metric} Get index statistics #
GET /{index}/_stats Get index statistics #
GET /{index}/_stats/{metric} Get index statistics #
POST /_aliases Create or update an alias #
GET /_validate/query Validate a query #
POST /_validate/query Validate a query #
GET /{index}/_validate/query Validate a query #
POST /{index}/_validate/query Validate a query #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/elk-stack-indices-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

elk-stack-indices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elasticsearch Request & Response Specification Indices API
  license:
    name: Apache 2.0
    url: https://github.com/elastic/elasticsearch-specification/blob/main/LICENSE
  version: ''
tags:


# --- truncated at 32 KB (995 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/openapi/elk-stack-indices-api-openapi.yml