Elastic Watcher API

You can use Watcher to watch for changes or anomalies in your data and perform the necessary actions in response.

GitHub OpenAPI

Operations 24

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 /_watcher/watch/{watch_id}/_ack Acknowledge all actions of a watch · Acknowledge a watch #
Ask an LLM
“How do I stop a watch from re-sending alerts until its condition resets?”
“What does acknowledging a watch do to its throttling?”
Tell an agent
Acknowledge every action of watch {watch}.
Ack watch {watch} so it stops notifying.
POST /_watcher/watch/{watch_id}/_ack Acknowledge a watch via POST · Acknowledge a watch #
Ask an LLM
“Is there a POST form for acknowledging all of a watch's actions?”
“Can I ack a whole watch with a POST call?”
Tell an agent
Acknowledge watch {watch} using the POST form.
Post an acknowledgement for all actions on watch {watch}.
PUT /_watcher/watch/{watch_id}/_ack/{action_id} Acknowledge one action of a watch · Acknowledge a watch #
Ask an LLM
“Can I silence only one action of a watch and keep the others firing?”
“How do I acknowledge a specific watch action?”
Tell an agent
Acknowledge action {action} of watch {watch}.
Ack only the {action} action on watch {watch}.
POST /_watcher/watch/{watch_id}/_ack/{action_id} Acknowledge one watch action via POST · Acknowledge a watch #
Ask an LLM
“Is there a POST variant to acknowledge a single action?”
“Can I ack one action with a POST request?”
Tell an agent
Post an acknowledgement for action {action} of watch {watch}.
Use POST to silence only action {action} on watch {watch}.
PUT /_watcher/watch/{watch_id}/_activate Activate a watch · Activate a watch #
Ask an LLM
“How do I turn a deactivated watch back on?”
“Can I re-enable a watch so it runs on its trigger again?”
Tell an agent
Activate watch {watch}.
Turn watch {watch} back on.
POST /_watcher/watch/{watch_id}/_activate Activate a watch via POST · Activate a watch #
Ask an LLM
“Is there a POST form to activate a watch?”
“Can I re-enable a watch with a POST call?”
Tell an agent
Activate watch {watch} using the POST form.
Post an activation for watch {watch}.
PUT /_watcher/watch/{watch_id}/_deactivate Deactivate a watch · Deactivate a watch #
Ask an LLM
“How do I pause a watch without deleting it?”
“Can I stop a watch from triggering temporarily?”
Tell an agent
Deactivate watch {watch}.
Pause watch {watch}.
POST /_watcher/watch/{watch_id}/_deactivate Deactivate a watch via POST · Deactivate a watch #
Ask an LLM
“Is there a POST form to deactivate a watch?”
“Can I pause a watch with a POST call?”
Tell an agent
Deactivate watch {watch} using the POST form.
Post a deactivation for watch {watch}.
GET /_watcher/watch/{id} Get a watch · Get a watch #
Ask an LLM
“What trigger, condition and actions does a specific watch have?”
“Can I see a watch's current status?”
Tell an agent
Show watch {watch}.
Get the definition and status of watch {watch}.
PUT /_watcher/watch/{id} Create or update a watch · Create or update a watch #
Ask an LLM
“How do I set up an alert that runs on a schedule in Elasticsearch?”
“Can I create a watch in an inactive state?”
Tell an agent
Create watch {watch} with trigger {trigger} and actions {actions}.
Save watch {watch} as inactive.
POST /_watcher/watch/{id} Create or update a watch via POST · Create or update a watch #
Ask an LLM
“Is there a POST form for saving a watch definition?”
“Can I update a watch's condition with a POST call?”
Tell an agent
Post watch {watch} with condition {condition}.
Save watch {watch} with input {input} using the POST form.
DELETE /_watcher/watch/{id} Delete a watch · Delete a watch #
Ask an LLM
“How do I permanently remove a watch?”
“Does deleting a watch remove its execution history?”
Tell an agent destructive · confirm first
Delete watch {watch}.
Remove watch {watch} permanently.
PUT /_watcher/watch/{id}/_execute Run a stored watch now · Run a watch #
Ask an LLM
“Can I trigger a stored watch immediately to test it?”
“How do I run a watch while simulating its actions?”
Tell an agent
Run watch {watch} now.
Run watch {watch} ignoring its condition.
POST /_watcher/watch/{id}/_execute Run a stored watch via POST · Run a watch #
Ask an LLM
“Is there a POST form to execute a stored watch?”
“Can I run a stored watch with debug output?”
Tell an agent
Execute stored watch {watch} using the POST form.
Run watch {watch} with simulated actions {actions}.
PUT /_watcher/watch/_execute Run an inline watch definition · Run a watch #
Ask an LLM
“Can I test a watch definition without saving it?”
“How do I run an inline watch to debug it?”
Tell an agent
Run inline watch {definition}.
Execute unsaved watch {definition} and record the execution.
POST /_watcher/watch/_execute Run an inline watch via POST · Run a watch #
Ask an LLM
“Is there a POST form for running a watch definition I haven't stored?”
“Can I post an inline watch with alternative input?”
Tell an agent
Post inline watch {definition} for execution.
Run unsaved watch {definition} with input {input} using the POST form.
GET /_watcher/settings Get Watcher index settings · Get Watcher index settings #
Ask an LLM
“What replica settings does the Watcher index use?”
“Where can I see the .watches index settings?”
Tell an agent
Show Watcher index settings.
Get the settings of the watches index.
PUT /_watcher/settings Update Watcher index settings · Update Watcher index settings #
Ask an LLM
“Can I change the number of replicas for the Watcher index?”
“How do I set auto-expand replicas on the watches index?”
Tell an agent
Set Watcher index replicas to {replicas}.
Set Watcher auto-expand replicas to {range}.
GET /_watcher/_query/watches Search stored watches · Query watches #
Ask an LLM
“Which watches match a given query?”
“Can I page through my watches sorted by a field?”
Tell an agent
Find watches matching {query}.
List watches, {size} per page.
POST /_watcher/_query/watches Search stored watches via POST · Query watches #
Ask an LLM
“Is there a POST form for querying watches?”
“Can I use search_after to page watch query results?”
Tell an agent
Post a watch search with query {query}.
Query watches after {after} using the POST form.
POST /_watcher/_start Start the Watcher service · Start the watch service #
Ask an LLM
“How do I start Watcher if it isn't running?”
“Can I restart the watch service after stopping it?”
Tell an agent
Start the Watcher service.
Start Watcher with master timeout {timeout}.
GET /_watcher/stats Get Watcher statistics · Get Watcher statistics #
Ask an LLM
“Is Watcher running, and how many watches are executing?”
“Can I include stack traces in Watcher stats?”
Tell an agent
Get Watcher stats.
Show Watcher stats with stack traces.
GET /_watcher/stats/{metric} Get a specific Watcher metric · Get Watcher statistics #
Ask an LLM
“Can I fetch only the current or queued watches metric?”
“Which Watcher metrics can I request by name?”
Tell an agent
Get Watcher metric {metric}.
Show the {metric} Watcher statistic.
POST /_watcher/_stop Stop the Watcher service · Stop the watch service #
Ask an LLM
“How do I stop all watches from running?”
“Can I shut down Watcher temporarily?”
Tell an agent
Stop the Watcher service.
Stop Watcher with master timeout {timeout}.

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