Elastic Indices API

Manage indices, mappings, and settings.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 104

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /{index} Create an index · Create an index #
Ask an LLM
“How do I create a new Elasticsearch index with custom mappings?”
“Can I set shard and replica settings when creating an index?”
Tell an agent
Create index {index}.
Create index {index} with mappings {mappings} and settings {settings}.
DELETE /{index} Delete an index · Delete an index #
Ask an LLM
“How do I permanently delete an index and all its documents?”
“Is deleting an index reversible?”
Tell an agent destructive · confirm first
Delete index {index}.
Permanently remove the index {index} and its data.
GET /{index} Get information about an index · Get index information #
Ask an LLM
“How do I see the settings, mappings and aliases of an index?”
“Can I get index details for a data stream's backing indices?”
Tell an agent
Get full information about index {index}.
Show the mappings, settings and aliases of {index}.
HEAD /{index} Check whether an index exists · Check indices #
Ask an LLM
“How can I quickly check if an index, alias or data stream exists?”
“Does an index with a given name already exist on my cluster?”
Tell an agent
Check whether index {index} exists.
Confirm that data stream or alias {index} is present.
GET /_component_template/{name} Get a named component template · Get component templates #
Ask an LLM
“How do I view a specific component template's definition?”
“What mappings and settings does a given component template contain?”
Tell an agent
Get component template {name}.
Show the definition of component template {name} including defaults.
PUT /_component_template/{name} Create or update a component template (PUT) · Create or update a component template #
Ask an LLM
“How do I define a reusable component template with PUT?”
“Can I fail instead of overwriting an existing component template when using PUT?”
Tell an agent
Using PUT, save component template {name} with template {template}.
With PUT, create component template {name} only if new, version {version}.
POST /_component_template/{name} Create or update a component template (POST) · Create or update a component template #
Ask an LLM
“Can I create a component template via POST instead of PUT?”
“How do I mark a component template as deprecated via POST?”
Tell an agent
Via POST, save component template {name} with template {template}.
Via POST, update component template {name} and mark it deprecated {deprecated}.
DELETE /_component_template/{name} Delete a component template · Delete component templates #
Ask an LLM
“How do I delete component templates I no longer use?”
“Can I remove a component template that index templates still reference?”
Tell an agent destructive · confirm first
Delete component template {name}.
Remove the component templates matching {name}.
HEAD /_component_template/{name} Check whether a component template exists · Check component templates #
Ask an LLM
“How do I check if a component template with a certain name exists?”
“Is there a component template matching a wildcard name?”
Tell an agent
Check whether component template {name} exists.
Confirm a component template named {name} is defined.
GET /_component_template List all component templates · Get component templates #
Ask an LLM
“Which component templates are defined on my cluster?”
“Can I list every component template with its settings flattened?”
Tell an agent
List all component templates.
Show every component template in flat settings format.
POST /_dangling/{index_uuid} Import a dangling index · Import a dangling index #
Ask an LLM
“How do I recover a dangling index that the cluster no longer knows about?”
“Do I have to accept data loss to import a dangling index?”
Tell an agent
Import dangling index {index_uuid}, accepting possible data loss.
Restore the dangling index with UUID {index_uuid} into the cluster.
DELETE /_dangling/{index_uuid} Delete a dangling index · Delete a dangling index #
Ask an LLM
“How do I get rid of a dangling index I don't want to recover?”
“Can I delete a dangling index by its UUID?”
Tell an agent destructive · confirm first
Delete dangling index {index_uuid}.
Discard the dangling index {index_uuid} for good.
GET /_dangling List dangling indices · Get the dangling indices #
Ask an LLM
“Are there any dangling indices sitting on my nodes?”
“Which index UUIDs exist on disk but aren't part of the cluster?”
Tell an agent
List all dangling indices.
Show any orphaned index data found on cluster nodes.
PUT /{index}/_block/{block} Add a block to an index · Add an index block #
Ask an LLM
“How do I make an index read-only or block writes?”
“Which kinds of blocks can I put on an index, like metadata or write?”
Tell an agent
Add a {block} block to index {index}.
Block writes on {index} by adding block {block}.
DELETE /{index}/_block/{block} Remove a block from an index · Remove an index block #
Ask an LLM
“How do I lift a write or read-only block from an index?”
“Can I remove a metadata block I added earlier?”
Tell an agent destructive · confirm first
Remove the {block} block from index {index}.
Lift block {block} on {index} so it accepts changes again.
GET /_analyze Analyze text with any analyzer (GET) · Get tokens from text analysis #
Ask an LLM
“How do I see the tokens an analyzer produces for some text with a GET request?”
“Can I test a built-in analyzer without targeting an index?”
Tell an agent
Using GET, tokenize {text} with analyzer {analyzer}.
With a GET, run {text} through tokenizer {tokenizer} and explain the steps.
POST /_analyze Analyze text with any analyzer (POST) · Get tokens from text analysis #
Ask an LLM
“Can I POST text to the analyze endpoint to see its tokens without an index?”
“What tokens does a custom char filter and tokenizer chain produce when posted?”
Tell an agent
Via POST, analyze {text} using analyzer {analyzer}.
POST {text} through tokenizer {tokenizer} with filters {filter}.
GET /{index}/_analyze Analyze text using an index's analyzer (GET) · Get tokens from text analysis #
Ask an LLM
“How do I check how a field in my index tokenizes text with a GET request?”
“Can I use an index's custom analyzer to preview tokens via GET?”
Tell an agent
Using GET, analyze {text} as field {field} of index {index} would.
With GET, tokenize {text} with analyzer {analyzer} defined on {index}.
POST /{index}/_analyze Analyze text using an index's analyzer (POST) · Get tokens from text analysis #
Ask an LLM
“Can I POST text to an index's analyze endpoint to test its field mapping?”
“How does a normalizer in my index transform a value when I post it?”
Tell an agent
Via POST, analyze {text} against field {field} in index {index}.
POST {text} to {index} using normalizer {normalizer}.
POST /_cache/clear Clear caches for all indices · Clear the cache #
Ask an LLM
“How do I clear the query and request caches across every index?”
“Can I clear only the fielddata cache cluster-wide?”
Tell an agent
Clear the caches of all indices.
Clear only the fielddata cache on every index.
POST /{index}/_cache/clear Clear caches for a specific index · Clear the cache #
Ask an LLM
“Can I clear caches for just one index or data stream?”
“How do I flush the request cache of a particular index?”
Tell an agent
Clear the caches of index {index}.
Clear only the request cache for {index}.
PUT /{index}/_clone/{target} Clone an index (PUT) · Clone an index #
Ask an LLM
“How do I clone an existing index into a new one using PUT?”
“Does the source index need to be read-only before cloning with PUT?”
Tell an agent
Using PUT, clone index {index} into {target}.
With PUT, clone {index} to {target} with settings {settings}.
POST /{index}/_clone/{target} Clone an index (POST) · Clone an index #
Ask an LLM
“Can I clone an index via POST and add aliases to the copy?”
“How do I make an exact copy of an index with a POST request?”
Tell an agent
Via POST, clone index {index} into {target}.
Via POST, clone {index} to {target} and attach aliases {aliases}.
POST /{index}/_close Close an index · Close an index #
Ask an LLM
“How do I close an index to stop reads and writes while keeping its data?”
“What happens to searches against an index after I close it?”
Tell an agent
Close index {index}.
Close {index} and wait for active shards.
GET /{index}/_alias/{name} Get a named alias on an index · Get aliases #
Ask an LLM
“How do I see the definition of a particular alias on an index?”
“Is a given alias pointing at this index, and with what filter?”
Tell an agent
Get alias {name} on index {index}.
Show the filter and routing of alias {name} for {index}.
PUT /{index}/_alias/{name} Add an alias to an index (PUT /_alias) · Create or update an alias #
Ask an LLM
“How do I add an alias to an index with PUT on the _alias path?”
“Can I make an alias the write index with PUT /_alias?”
Tell an agent
Using PUT /_alias, point alias {name} at index {index}.
PUT /_alias: add alias {name} to {index} as write index {is_write_index}.
POST /{index}/_alias/{name} Add an alias to an index (POST /_alias) · Create or update an alias #
Ask an LLM
“Can I create a filtered alias with POST on the _alias path?”
“How do I set routing for an alias using POST /_alias?”
Tell an agent
Via POST /_alias, add alias {name} to {index} with filter {filter}.
POST /_alias: create alias {name} on {index} routed by {routing}.
DELETE /{index}/_alias/{name} Remove an alias (/_alias path) · Delete an alias #
Ask an LLM
“How do I remove an alias from an index using the _alias path?”
“Does deleting an alias via /_alias touch the underlying index data?”
Tell an agent destructive · confirm first
Delete alias {name} from index {index} via /_alias.
Detach alias {name} from {index} using the _alias endpoint.
HEAD /{index}/_alias/{name} Check an alias exists on an index · Check aliases #
Ask an LLM
“How do I check whether an alias is attached to a particular index?”
“Is a given alias already defined on this index?”
Tell an agent
Verify that index {index} has alias {name} attached.
Confirm {index} carries the alias {name}.
PUT /{index}/_aliases/{name} Add an alias to an index (PUT /_aliases) · Create or update an alias #
Ask an LLM
“Can I add an alias using PUT on the plural _aliases path?”
“How do I set separate search routing for an alias with PUT /_aliases?”
Tell an agent
Using PUT /_aliases, add alias {name} to index {index}.
PUT /_aliases: alias {name} on {index} with search routing {search_routing}.
POST /{index}/_aliases/{name} Add an alias to an index (POST /_aliases) · Create or update an alias #
Ask an LLM
“Can I add an alias to one index by POSTing to the plural _aliases path?”
“How do I set index routing for an alias with POST /_aliases?”
Tell an agent
Via POST /_aliases, add alias {name} to index {index}.
POST /_aliases: alias {name} on {index} with index routing {index_routing}.
DELETE /{index}/_aliases/{name} Remove an alias (/_aliases path) · Delete an alias #
Ask an LLM
“How do I delete an alias using the plural _aliases path on an index?”
“Can I remove several aliases from an index via /_aliases?”
Tell an agent destructive · confirm first
Delete alias {name} from index {index} via /_aliases.
Remove aliases matching {name} from {index} using the _aliases endpoint.
DELETE /_data_stream/{name}/_lifecycle Remove a data stream's lifecycle · Delete data stream lifecycles #
Ask an LLM
“How do I remove the lifecycle (retention) settings from a data stream?”
“Can I stop a data stream from being managed by its data lifecycle?”
Tell an agent destructive · confirm first
Delete the lifecycle of data stream {name}.
Stop lifecycle management for data streams matching {name}.
GET /_index_template/{name} Get a named index template · Get index templates #
Ask an LLM
“How do I view one composable index template's definition?”
“Which patterns and component templates does a given index template use?”
Tell an agent
Get index template {name}.
Show the patterns and composed_of list of index template {name}.
PUT /_index_template/{name} Create or update an index template (PUT) · Create or update an index template #
Ask an LLM
“How do I create a composable index template with PUT?”
“Can I make an index template create data streams, using PUT?”
Tell an agent
Using PUT, create index template {name} for patterns {index_patterns}.
With PUT, save template {name} composed of {composed_of} at priority {priority}.
POST /_index_template/{name} Create or update an index template (POST) · Create or update an index template #
Ask an LLM
“Can I define a composable index template via POST?”
“How do I enable data streams on an index template using POST?”
Tell an agent
Via POST, create index template {name} matching {index_patterns}.
Via POST, save template {name} with data stream config {data_stream}.
DELETE /_index_template/{name} Delete an index template · Delete an index template #
Ask an LLM
“How do I delete a composable index template?”
“Does deleting an index template affect indices already created from it?”
Tell an agent destructive · confirm first
Delete index template {name}.
Remove the composable index templates matching {name}.
HEAD /_index_template/{name} Check whether an index template exists · Check index templates #
Ask an LLM
“How can I check whether a composable index template exists?”
“Is there an index template already defined with this name?”
Tell an agent
Check whether index template {name} exists.
Confirm the composable template {name} is defined.
GET /_template/{name} Get a named legacy index template · Get legacy index templates #
Ask an LLM
“How do I view one of the old-style legacy index templates?”
“What settings does a particular legacy template apply?”
Tell an agent
Get legacy index template {name}.
Show the mappings and settings of legacy template {name}.
PUT /_template/{name} Create or update a legacy template (PUT) · Create or update a legacy index template #
Ask an LLM
“How do I create a legacy index template with PUT?”
“Can I set the order of a legacy template when using PUT?”
Tell an agent
Using PUT, create legacy template {name} for patterns {index_patterns}.
With PUT, save legacy template {name} with order {order} and settings {settings}.
POST /_template/{name} Create or update a legacy template (POST) · Create or update a legacy index template #
Ask an LLM
“Can I create a legacy index template via POST?”
“How do I add aliases to a legacy template using POST?”
Tell an agent
Via POST, create legacy template {name} matching {index_patterns}.
Via POST, save legacy template {name} with mappings {mappings}.
DELETE /_template/{name} Delete a legacy index template · Delete a legacy index template #
Ask an LLM
“How do I delete an old legacy index template?”
“Can I remove a legacy template without touching composable ones?”
Tell an agent destructive · confirm first
Delete legacy index template {name}.
Remove the legacy template {name}.
HEAD /_template/{name} Check whether a legacy template exists · Check existence of index templates #
Ask an LLM
“How do I check if a legacy index template is still defined?”
“Does a legacy template with this name exist on the cluster?”
Tell an agent
Check whether legacy template {name} exists.
Confirm the legacy index template {name} is present.
POST /{index}/_disk_usage Analyze an index's disk usage · Analyze the index disk usage #
Ask an LLM
“How much disk space does each field in my index use?”
“Can I break down an index's storage by field?”
Tell an agent
Analyze disk usage per field for index {index}.
Show the storage breakdown of {index}, running the expensive analysis.
GET /_alias/{name} Find an alias across all indices · Get aliases #
Ask an LLM
“Which indices does a particular alias point to?”
“How do I look up an alias by name without knowing its index?”
Tell an agent
Find which indices alias {name} points to.
Look up alias {name} across every index.
HEAD /_alias/{name} Check whether an alias exists anywhere · Check aliases #
Ask an LLM
“How do I check if an alias exists on any index in the cluster?”
“Is an alias name already taken cluster-wide?”
Tell an agent
Tell me if alias {name} is in use anywhere in the cluster.
Confirm alias {name} is defined somewhere in the cluster.
GET /{index}/_field_usage_stats Get field usage statistics · Get field usage stats #
Ask an LLM
“Which fields in my index are actually being queried or aggregated?”
“Can I find unused fields in an index to slim its mapping?”
Tell an agent
Show field usage stats for index {index}.
Report how often each field in {index} is used.
GET /_flush Flush all indices (GET) · Flush data streams or indices #
Ask an LLM
“Can I trigger a flush of every index with a plain GET request?”
“How do I persist all in-memory operations to disk cluster-wide using GET?”
Tell an agent
Using GET, flush all indices.
Issue a GET flush across every index and wait if one is ongoing.
POST /_flush Flush all indices (POST) · Flush data streams or indices #
Ask an LLM
“How do I flush every index and data stream with a POST request?”
“Can I force a flush cluster-wide even if nothing needs committing?”
Tell an agent
Via POST, flush all indices.
POST a forced flush to every index in the cluster.
GET /{index}/_flush Flush a specific index (GET) · Flush data streams or indices #
Ask an LLM
“Can I flush one index to disk using a GET request?”
“How do I commit a single data stream's transaction log via GET?”
Tell an agent
Using GET, flush index {index}.
Issue a GET flush on {index} and wait if one is already running.
POST /{index}/_flush Flush a specific index (POST) · Flush data streams or indices #
Ask an LLM
“How do I flush a single index with POST before a restart?”
“Can I force a flush on one data stream via POST?”
Tell an agent
Via POST, flush index {index}.
POST a forced flush to {index}.
POST /_forcemerge Force merge all indices · Force a merge #
Ask an LLM
“How do I force merge segments across every index in the cluster?”
“Can I expunge deleted documents from all indices at once?”
Tell an agent
Force merge all indices.
Force merge every index down to {max_num_segments} segments.
POST /{index}/_forcemerge Force merge a specific index · Force a merge #
Ask an LLM
“How do I reduce a read-only index to a single segment?”
“Can I force merge just one index to reclaim space from deletes?”
Tell an agent
Force merge index {index}.
Force merge {index} to {max_num_segments} segments.
GET /_alias List every alias in the cluster · Get aliases #
Ask an LLM
“What aliases are defined across my whole cluster?”
“Can I see all aliases including those on hidden indices?”
Tell an agent
List all aliases in the cluster.
Show every alias and the indices it points to.
GET /{index}/_alias List all aliases on an index · Get aliases #
Ask an LLM
“Which aliases are attached to a specific index?”
“How do I see every alias that points at one data stream?”
Tell an agent
List all aliases on index {index}.
Show the aliases attached to {index}.
GET /_mapping/field/{fields} Get field mappings across all indices · Get mapping definitions #
Ask an LLM
“How is a particular field mapped in every index that has it?”
“Can I look up one field's mapping without naming an index?”
Tell an agent
Get the mapping of field {fields} across all indices.
Show how {fields} is mapped everywhere, including defaults.
GET /{index}/_mapping/field/{fields} Get field mappings in an index · Get mapping definitions #
Ask an LLM
“How do I see the mapping for just one field in a specific index?”
“What type is a given field mapped as in this index?”
Tell an agent
Get the mapping of field {fields} in index {index}.
Show the type of {fields} in {index}.
GET /_index_template List all index templates · Get index templates #
Ask an LLM
“Which composable index templates exist on my cluster?”
“Can I list every index template with default settings included?”
Tell an agent
List all composable index templates.
Show every index template including defaults.
GET /_mapping Get mappings for all indices · Get mapping definitions #
Ask an LLM
“How do I dump the mappings of every index in the cluster?”
“Can I see all field mappings cluster-wide in one call?”
Tell an agent
Get the mappings of all indices.
Show every index's field mappings.
GET /{index}/_mapping Get the mapping of an index · Get mapping definitions #
Ask an LLM
“How do I see the full field mapping of one index?”
“What fields and types does a specific index define?”
Tell an agent
Get the mapping of index {index}.
Show all fields and types in {index}.
PUT /{index}/_mapping Add fields to an index mapping (PUT) · Update field mappings #
Ask an LLM
“How do I add a new field to an existing index mapping with PUT?”
“Can I change dynamic mapping behaviour on an index using PUT?”
Tell an agent
Using PUT, add properties {properties} to the mapping of {index}.
With PUT, set dynamic mapping to {dynamic} on {index}.
POST /{index}/_mapping Add fields to an index mapping (POST) · Update field mappings #
Ask an LLM
“Can I update an index mapping via POST instead of PUT?”
“How do I add runtime fields to a mapping using POST?”
Tell an agent
Via POST, add properties {properties} to index {index}.
Via POST, add runtime fields {runtime} to {index}.
GET /_settings Get settings for all indices · Get index settings #
Ask an LLM
“How do I see the settings of every index in the cluster?”
“Can I list all index settings in flat format?”
Tell an agent
Get the settings of all indices.
Show every index's settings in flat format.
PUT /_settings Update settings on all indices · Update index settings #
Ask an LLM
“How do I change a dynamic setting on every index at once?”
“Can I set the replica count cluster-wide for all indices?”
Tell an agent
Set number of replicas to {number_of_replicas} on all indices.
Change the refresh interval of every index to {refresh_interval}.
GET /{index}/_settings Get the settings of an index · Get index settings #
Ask an LLM
“How do I view all settings of a specific index?”
“What are the current shard and replica settings of this index?”
Tell an agent
Get the settings of index {index}.
Show {index}'s settings including defaults.
PUT /{index}/_settings Update an index's settings · Update index settings #
Ask an LLM
“How do I change the replica count of one index?”
“Can I update the refresh interval of a specific index?”
Tell an agent
Set {index} to {number_of_replicas} replicas.
Change the refresh interval of {index} to {refresh_interval}.
GET /{index}/_settings/{name} Get one setting of an index · Get index settings #
Ask an LLM
“How do I read a single named setting from a specific index?”
“What value does one setting have on a particular index?”
Tell an agent
Get setting {name} of index {index}.
Show the value of {name} on {index}.
GET /_settings/{name} Get one setting across all indices · Get index settings #
Ask an LLM
“Can I read one named setting across every index?”
“Which indices have a particular setting and with what values?”
Tell an agent
Get setting {name} for all indices.
Show the value of {name} on every index.
GET /_template List all legacy index templates · Get legacy index templates #
Ask an LLM
“Which legacy index templates are still defined on my cluster?”
“Can I list every old-style template?”
Tell an agent
List all legacy index templates.
Show every legacy template in flat settings.
POST /{index}/_open Open a closed index · Open a closed index #
Ask an LLM
“How do I reopen an index that was closed?”
“Can I wait for shards to be active after opening an index?”
Tell an agent
Open closed index {index}.
Reopen {index} and wait for active shards.
GET /_recovery Get shard recovery info for all indices · Get index recovery information #
Ask an LLM
“How do I see ongoing shard recoveries across the cluster?”
“Can I list only active recoveries for every index?”
Tell an agent
Show shard recovery info for all indices.
List only the active shard recoveries cluster-wide.
GET /{index}/_recovery Get shard recovery info for an index · Get index recovery information #
Ask an LLM
“How far along is shard recovery for one index?”
“Can I see detailed recovery progress for a particular data stream?”
Tell an agent
Show shard recovery info for index {index}.
Show detailed active recoveries for {index}.
GET /_refresh Refresh all indices (GET) · Refresh an index #
Ask an LLM
“Can I make recent writes searchable on every index with a GET?”
“How do I trigger a cluster-wide refresh via GET?”
Tell an agent
Using GET, refresh all indices.
Issue a GET refresh so all recent writes are searchable.
POST /_refresh Refresh all indices (POST) · Refresh an index #
Ask an LLM
“How do I refresh every index with a POST request?”
“Can I force all pending documents to become searchable at once via POST?”
Tell an agent
Via POST, refresh all indices.
POST a refresh to every index and data stream.
GET /{index}/_refresh Refresh a specific index (GET) · Refresh an index #
Ask an LLM
“Can I refresh one index with a GET request so new docs show up in search?”
“How do I make writes to one data stream visible using GET?”
Tell an agent
Using GET, refresh index {index}.
Issue a GET refresh on {index}.
POST /{index}/_refresh Refresh a specific index (POST) · Refresh an index #
Ask an LLM
“How do I refresh a single index with POST after bulk loading?”
“Can I make one index's latest documents searchable immediately via POST?”
Tell an agent
Via POST, refresh index {index}.
POST a refresh to {index} after my bulk load.
GET /{index}/_reload_search_analyzers Reload search analyzers (GET) · Reload search analyzers #
Ask an LLM
“How do I pick up an updated synonyms file with a GET request?”
“Can I reload search analyzers on an index via GET without closing it?”
Tell an agent
Using GET, reload search analyzers for {index}.
With GET, reload the analyzers of {index} for resource {resource}.
POST /{index}/_reload_search_analyzers Reload search analyzers (POST) · Reload search analyzers #
Ask an LLM
“Can I reload synonym analyzers on an index via POST?”
“How do I apply new synonyms to search without reopening the index, using POST?”
Tell an agent
Via POST, reload search analyzers for {index}.
POST a reload of {index}'s analyzers that use {resource}.
GET /_resolve/cluster Resolve all connected remote clusters · Resolve the cluster #
Ask an LLM
“Which remote clusters can my cluster reach for cross-cluster search?”
“Can I check connectivity to every configured remote cluster?”
Tell an agent
Resolve all connected remote clusters.
Check which configured remote clusters are reachable.
GET /_resolve/cluster/{name} Resolve clusters for an index expression · Resolve the cluster #
Ask an LLM
“Which clusters would a cross-cluster search pattern hit?”
“Do the remote clusters for an index expression have matching indices?”
Tell an agent
Resolve the clusters targeted by {name}.
Check which clusters have indices matching {name}.
GET /_resolve/index/{name} Resolve index names and patterns (GET) · Resolve indices #
Ask an LLM
“How do I see what indices, aliases and data streams a wildcard matches, using GET?”
“Can I expand an index pattern to concrete names with a GET request?”
Tell an agent
Using GET, resolve the names matching {name}.
With GET, list indices, aliases and data streams for pattern {name}.
POST /_resolve/index/{name} Resolve index names and patterns (POST) · Resolve indices #
Ask an LLM
“Can I resolve an index pattern via POST?”
“What concrete indices does a pattern map to, resolved through POST?”
Tell an agent
Via POST, resolve the names matching {name}.
POST a resolve for pattern {name} and list what it matches.
POST /{alias}/_rollover Roll over an alias or data stream · Roll over to a new index #
Ask an LLM
“How do I roll a data stream over to a new backing index?”
“Can I roll over only when the index hits a size or age condition?”
Tell an agent
Roll over {alias} to a new index.
Roll over {alias} when conditions {conditions} are met.
POST /{alias}/_rollover/{new_index} Roll over to a named new index · Roll over to a new index #
Ask an LLM
“Can I choose the name of the new index when rolling over an alias?”
“How do I roll over to a specific target index name?”
Tell an agent
Roll over {alias} to new index {new_index}.
Roll {alias} over to {new_index} if {conditions} are met.
GET /_segments Get segment info for all indices · Get index segments #
Ask an LLM
“How many Lucene segments do my indices have cluster-wide?”
“Can I inspect segment details for every index?”
Tell an agent
Show segment info for all indices.
List Lucene segments across every index.
GET /{index}/_segments Get segment info for an index · Get index segments #
Ask an LLM
“How many segments does a specific index have?”
“Do I need to force merge this index, judging by its segments?”
Tell an agent
Show segment info for index {index}.
List the Lucene segments of {index}.
GET /_shard_stores Get shard store info for all indices · Get index shard stores #
Ask an LLM
“Which nodes hold copies of shards across the cluster?”
“Can I find unassigned or corrupted shard copies cluster-wide?”
Tell an agent
Show shard store info for all indices.
List shard copies with status {status} across all indices.
GET /{index}/_shard_stores Get shard store info for an index · Get index shard stores #
Ask an LLM
“Where are the replica copies of a particular index's shards stored?”
“Are there corrupted shard copies for this index?”
Tell an agent
Show shard store info for index {index}.
List {index}'s shard copies with status {status}.
PUT /{index}/_shrink/{target} Shrink an index (PUT) · Shrink an index #
Ask an LLM
“How do I shrink an index to fewer primary shards using PUT?”
“What must be true of an index before I can shrink it with PUT?”
Tell an agent
Using PUT, shrink index {index} into {target}.
With PUT, shrink {index} to {target} with settings {settings}.
POST /{index}/_shrink/{target} Shrink an index (POST) · Shrink an index #
Ask an LLM
“Can I shrink an index via POST and add aliases to the result?”
“How do I reduce primary shards on an index with a POST request?”
Tell an agent
Via POST, shrink index {index} into {target}.
Via POST, shrink {index} to {target} with aliases {aliases}.
POST /_index_template/_simulate_index/{name} Preview the template applied to an index name · Simulate an index #
Ask an LLM
“Which index template settings would a new index with this name receive?”
“Can I preview the merged mappings for an index before creating it?”
Tell an agent
Simulate which template applies to index name {name} with patterns {index_patterns}.
Preview settings for index {name} composed of {composed_of}.
POST /_index_template/_simulate Simulate an ad-hoc index template · Simulate an index template #
Ask an LLM
“Can I test a template definition before saving it?”
“What final settings would an index template body produce?”
Tell an agent
Simulate an unsaved template for patterns {index_patterns}.
Preview the result of a template composed of {composed_of}.
POST /_index_template/_simulate/{name} Simulate an existing index template · Simulate an index template #
Ask an LLM
“How do I see the resolved settings of a saved index template?”
“What would an existing template produce once component templates are merged?”
Tell an agent
Simulate saved index template {name}.
Show the fully resolved config of template {name}.
PUT /{index}/_split/{target} Split an index (PUT) · Split an index #
Ask an LLM
“How do I split an index into more primary shards with PUT?”
“Can I increase shard count on an existing index using PUT?”
Tell an agent
Using PUT, split index {index} into {target}.
With PUT, split {index} into {target} with settings {settings}.
POST /{index}/_split/{target} Split an index (POST) · Split an index #
Ask an LLM
“Can I split an index via POST and alias the new one?”
“How do I spread an index across more primary shards via POST?”
Tell an agent
Via POST, split index {index} into {target}.
Via POST, split {index} into {target} with aliases {aliases}.
GET /_stats Get statistics for all indices · Get index statistics #
Ask an LLM
“What are the doc counts and store sizes for all my indices?”
“Can I get indexing and search stats cluster-wide?”
Tell an agent
Show statistics for all indices.
Report index stats at shard level for every index.
GET /_stats/{metric} Get one stats metric for all indices · Get index statistics #
Ask an LLM
“Can I get only one stats metric, like docs or store, for every index?”
“How much indexing activity is there across all indices for a single metric?”
Tell an agent
Show the {metric} stats for all indices.
Report only metric {metric} across every index.
GET /{index}/_stats Get statistics for an index · Get index statistics #
Ask an LLM
“How big is a specific index and how many documents does it hold?”
“What are the search and indexing stats for one index?”
Tell an agent
Show statistics for index {index}.
Report doc count and size for {index}.
GET /{index}/_stats/{metric} Get one stats metric for an index · Get index statistics #
Ask an LLM
“Can I get a single stats metric for one index?”
“What is the store size of one particular index alone?”
Tell an agent
Show the {metric} stats for index {index}.
Report only {metric} for {index}.
POST /_aliases Apply multiple alias actions atomically · Create or update an alias #
Ask an LLM
“How do I swap an alias from one index to another atomically?”
“Can I add and remove several aliases in one request?”
Tell an agent
Apply alias actions {actions} atomically.
Run these alias add/remove actions in one step: {actions}.
GET /_validate/query Validate a query against all indices (GET) · Validate a query #
Ask an LLM
“How do I check that a query is valid before running it, using GET?”
“Can I validate a query string across all indices with GET?”
Tell an agent
Using GET, validate query {query} across all indices.
With GET, check whether query string {q} is valid.
POST /_validate/query Validate a query against all indices (POST) · Validate a query #
Ask an LLM
“Can I POST a query body to validate it without executing it?”
“How do I get an explanation of why a query is invalid via POST?”
Tell an agent
Via POST, validate query {query} on all indices.
POST query {query} for validation with an explanation.
GET /{index}/_validate/query Validate a query on an index (GET) · Validate a query #
Ask an LLM
“How do I validate a query against a specific index with GET?”
“Is my query valid for this index's mappings, checked via GET?”
Tell an agent
Using GET, validate query {query} on index {index}.
With GET, check query string {q} against {index}.
POST /{index}/_validate/query Validate a query on an index (POST) · Validate a query #
Ask an LLM
“Can I POST a query to one index to validate and rewrite it?”
“How do I see how a query would be rewritten for a specific index via POST?”
Tell an agent
Via POST, validate query {query} on index {index}.
POST query {query} to {index} and show its rewritten form.

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/elastic:elastic-indices-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

elastic-indices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elastic Indices API
  version: '1.0'
  description: 'Operations tagged Indices across 2 of this provider''s published API definitions: elastic-elasticsearch-openapi.yml, elasticsearch.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{deployment}.es.{region}.cloud.es.io:9243
  description: Elastic Cloud deployment
  variables:
    deployment:
      default: my-deployment
      description: Deployment identifier
    region:
      default: us-east-1
      description: Cloud region
- url: http://localhost:9200
  description: Local Elasticsearch
tags:


# --- truncated at 32 KB (1313 KB total) ---
# Full source: https://artifacts.apis.io/elastic/openapi/elastic-indices-api-openapi.yml