Elastic Stack Doc API

The Doc API from Elastic Stack — 1 operation(s) for doc.

Operations 3

GET /{index}/_doc/{id} Get document by ID #
PUT /{index}/_doc/{id} Index document with explicit ID #
DELETE /{index}/_doc/{id} Delete document by ID #

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-stack-doc-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

elastic-stack-doc-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elasticsearch Bulk Doc API
  description: Distributed search and analytics engine REST API for indexing, searching, and analyzing data at scale. Endpoints are derived from the public Elasticsearch REST APIs reference and represent the most commonly used operations.
  version: 1.0.0
  x-generated-from: https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html
  x-generated-by: claude-crawl-2026-05-08
servers:
- url: https://localhost:9200
  description: Default local Elasticsearch endpoint
tags:
- name: Doc
paths:
  /{index}/_doc/{id}:
    parameters:
    - name: index
      in: path
      required: true
      schema:
        type: string
    - name: id
      in: path
      required: true
      schema:
        type: string
    get:
      summary: Get document by ID
      operationId: getDocument
      responses:
        '200':
          description: Document response
          content:
            application/json:
              schema:
                type: object
      tags:
      - Doc
    put:
      summary: Index document with explicit ID
      operationId: putDocument
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Index response
          content:
            application/json:
              schema:
                type: object
      tags:
      - Doc
    delete:
      summary: Delete document by ID
      operationId: deleteDocument
      responses:
        '200':
          description: Delete response
          content:
            application/json:
              schema:
                type: object
      tags:
      - Doc