Elastic Enrich API

The enrich APIs enable you to manage enrich policies. An enrich policy is a set of configuration options used to add the right enrich data to the right incoming documents.

GitHub OpenAPI

Operations 6

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

GET /_enrich/policy/{name} Get an enrich policy by name · Get an enrich policy #
Ask an LLM
“What source indices and match field does my enrich policy use?”
“Can I look up one enrich policy by name?”
Tell an agent
Show enrich policy {name}.
Get the definition of enrich policy {name}.
PUT /_enrich/policy/{name} Create an enrich policy · Create an enrich policy #
Ask an LLM
“How do I set up an enrich policy to add customer data to incoming documents?”
“Can an enrich policy match on geo shapes or ranges instead of exact values?”
Tell an agent
Create enrich policy {name} with match settings {match}.
Create geo_match enrich policy {name} using {geo_match}.
DELETE /_enrich/policy/{name} Delete an enrich policy · Delete an enrich policy #
Ask an LLM
“How do I delete an enrich policy and its enrich index?”
“Can I remove an enrich policy that I no longer use?”
Tell an agent destructive · confirm first
Delete enrich policy {name}.
Remove the enrich policy called {name}.
PUT /_enrich/policy/{name}/_execute Build the enrich index for a policy · Run an enrich policy #
Ask an LLM
“How do I refresh an enrich index after the source data changes?”
“Can I run an enrich policy without waiting for it to finish?”
Tell an agent
Execute enrich policy {name}.
Run enrich policy {name} with wait_for_completion set to {wait}.
GET /_enrich/policy List all enrich policies · Get an enrich policy #
Ask an LLM
“Which enrich policies are defined in my cluster?”
“Do I have any enrich policies set up at all?”
Tell an agent
List all enrich policies.
Show every enrich policy in the cluster.
GET /_enrich/_stats Show enrich coordinator and execution stats · Get enrich stats #
Ask an LLM
“Are any enrich policies currently executing?”
“How is the enrich coordinator cache performing?”
Tell an agent
Show enrich statistics.
Report running enrich policy executions and cache stats.

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-enrich-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-enrich-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elasticsearch Enrich API
  description: 'Elasticsearch provides REST APIs that are used by the UI components and can be called directly to configure and access Elasticsearch features.

    ## Documentation source and versions

    This documentation is derived from the main branch of the elasticsearch-specification repository. It is provided under license Attribution-NonCommercial-NoDerivatives 4.0 International.

    This documentation contains work-in-progress information for future Elastic Stack releases.'
  license:
    name: Apache 2.0
    url: https://github.com/elastic/elasticsearch-specification/blob/main/LICENSE
  version: ''
security:
- apiKeyAuth: []
- basicAuth: []
- bearerAuth: []
tags:


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