Elastic Synonyms API

The synonyms management API provides a convenient way to define and manage synonyms in an internal system index. Related synonyms can be grouped in a "synonyms set". Create as many synonym sets as you need.

Operations 7

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 /_synonyms/{id} Get a synonym set · Get a synonym set #
Ask an LLM
“What synonym rules are in a particular synonym set?”
“Can I page through the rules of a large synonym set?”
Tell an agent
Show synonym set {id}.
Get {size} rules from synonym set {id} starting at {from}.
PUT /_synonyms/{id} Create or replace a synonym set · Create or update a synonym set #
Ask an LLM
“How many synonym rules can one set hold?”
“Does updating a synonym set reload the analyzers using it?”
Tell an agent
Create synonym set {id} with rules {synonyms_set}.
Replace all rules in synonym set {id} with {synonyms_set}.
DELETE /_synonyms/{id} Delete a synonym set · Delete a synonym set #
Ask an LLM
“Can I delete a synonym set that an index analyzer still uses?”
“How do I remove an unused synonym set?”
Tell an agent destructive · confirm first
Delete synonym set {id}.
Remove the unused synonym set {id}.
GET /_synonyms/{set_id}/{rule_id} Get a synonym rule · Get a synonym rule #
Ask an LLM
“What does a single synonym rule in a set say?”
“Can I look up one synonym rule by its ID?”
Tell an agent
Show synonym rule {rule_id} in set {set_id}.
Get rule {rule_id} from synonyms {set_id}.
PUT /_synonyms/{set_id}/{rule_id} Create or update a synonym rule · Create or update a synonym rule #
Ask an LLM
“How do I add one synonym rule without rewriting the whole set?”
“Is a synonym rule rejected if it's invalid?”
Tell an agent
Set rule {rule_id} in synonym set {set_id} to {synonyms}.
Add synonyms {synonyms} as rule {rule_id} of {set_id}.
DELETE /_synonyms/{set_id}/{rule_id} Delete a synonym rule · Delete a synonym rule #
Ask an LLM
“How do I remove one rule from a synonym set?”
“Do analyzers reload after a synonym rule is deleted?”
Tell an agent destructive · confirm first
Delete rule {rule_id} from synonym set {set_id}.
Remove synonym rule {rule_id} in {set_id} without refreshing.
GET /_synonyms List all synonym sets · Get all synonym sets #
Ask an LLM
“Which synonym sets exist and how many rules does each have?”
“Can I page through my synonym sets?”
Tell an agent
List my synonym sets.
Show {size} synonym sets from offset {from}.

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-synonyms-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-synonyms-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elasticsearch Synonyms 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 (33 KB total) ---
# Full source: https://artifacts.apis.io/elastic/openapi/elastic-synonyms-api-openapi.yml