Elastic Stack Index API

The Index API from Elastic Stack — 3 operation(s) for index.

Operations 4

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 index #
Ask an LLM
“How do I create a new Elasticsearch index?”
“Can I create an index before sending any documents to it?”
Tell an agent
Create the index {index}.
Make a new empty index named {index}.
DELETE /{index} Delete an index · Delete index #
Ask an LLM
“What removes an index along with all its documents?”
“Is deleting an index permanent?”
Tell an agent destructive · confirm first
Delete the index {index}.
Permanently drop index {index} and its data.
GET /{index}/_mapping Get an index's field mappings · Get index mappings #
Ask an LLM
“What fields and types are mapped in an index?”
“Can I see how a particular index maps its documents?”
Tell an agent
Get the mappings for index {index}.
Show the field types defined on {index}.
PUT /{index}/_settings Update an index's settings · Update index settings #
Ask an LLM
“Can I change settings like the replica count on an existing index?”
“Can index settings be updated without recreating the index?”
Tell an agent
Update the settings of index {index}.
Apply new dynamic settings to {index}.

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-index-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-index-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elasticsearch REST Index API
  description: The Elasticsearch REST API exposes the core operations of the distributed search and analytics engine at the heart of the Elastic Stack. It allows clients to manage indices, ingest and retrieve documents, run search and aggregation queries, inspect cluster and node health, and operate snapshots and ingest pipelines.
  version: 1.0.0
  contact:
    name: Elastic
    url: https://www.elastic.co
servers:
- url: http://localhost:9200
  description: Default local Elasticsearch endpoint
- url: https://{host}:{port}
  description: Self-hosted or Elastic Cloud cluster endpoint
  variables:
    host:
      default: localhost
    port:
      default: '9200'
security:
- basicAuth: []
- apiKeyAuth: []
tags:
- name: Index
paths:
  /{index}:
    put:
      summary: Create index
      operationId: createIndex
      tags:
      - Index
      parameters:
      - $ref: '#/components/parameters/IndexName'
      responses:
        '200':
          description: Index created
    delete:
      summary: Delete index
      operationId: deleteIndex
      tags:
      - Index
      parameters:
      - $ref: '#/components/parameters/IndexName'
      responses:
        '200':
          description: Index deleted
  /{index}/_mapping:
    get:
      summary: Get index mappings
      operationId: getIndexMapping
      tags:
      - Index
      parameters:
      - $ref: '#/components/parameters/IndexName'
      responses:
        '200':
          description: Index mappings
  /{index}/_settings:
    put:
      summary: Update index settings
      operationId: updateIndexSettings
      tags:
      - Index
      parameters:
      - $ref: '#/components/parameters/IndexName'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Settings updated
components:
  parameters:
    IndexName:
      name: index
      in: path
      required: true
      schema:
        type: string
      description: Index name
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: ApiKey <base64-encoded-id:api_key>