Elastic · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Elasticsearch Script API
11 actions
11 updates
phrasing
extends
openapi/elastic-script-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for Elastic's API. It is a proposal applied on top of the contract, not a document Elastic publishes.
What the actions change
x-apievangelist-phrasing
Targets 11
$.info
$.paths['/_scripts/{id}'].get
$.paths['/_scripts/{id}'].put
$.paths['/_scripts/{id}'].post
$.paths['/_scripts/{id}'].delete
$.paths['/_script_context'].get
$.paths['/_script_language'].get
$.paths['/_scripts/{id}/{context}'].put
$.paths['/_scripts/{id}/{context}'].post
$.paths['/_scripts/painless/_execute'].get
$.paths['/_scripts/painless/_execute'].post
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Elasticsearch Script API
version: 1.0.0
extends: openapi/elastic-script-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-17'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 10
- target: $.paths['/_scripts/{id}'].get
update:
x-apievangelist-phrasing:
intent: Get a stored script or search template
effect: read
questions:
- What's the source of a stored script?
- Can I view a saved search template by ID?
instructions:
- text: Show stored script {id}.
slots:
id: path.id
- text: Get search template {id}.
slots:
id: path.id
method: generated
generated: '2026-11-17'
- target: $.paths['/_scripts/{id}'].put
update:
x-apievangelist-phrasing:
intent: Store a script or search template
effect: write
questions:
- How do I save a Painless script for reuse?
- Can I store a search template in the cluster?
instructions:
- text: Store script {id} with source {script}.
slots:
id: path.id
script: requestBody.script
- text: Save search template {id} as {script}.
slots:
id: path.id
script: requestBody.script
method: generated
generated: '2026-11-17'
- target: $.paths['/_scripts/{id}'].post
update:
x-apievangelist-phrasing:
intent: Store a script via POST
effect: write
questions:
- Is there a POST form for saving a stored script?
- Can I update a stored script with a POST call?
instructions:
- text: Post stored script {id} with source {script}.
slots:
id: path.id
script: requestBody.script
- text: Update script {id} to {script} using the POST form.
slots:
id: path.id
script: requestBody.script
method: generated
generated: '2026-11-17'
- target: $.paths['/_scripts/{id}'].delete
update:
x-apievangelist-phrasing:
intent: Delete a stored script or search template
effect: destructive
questions:
- How do I remove a stored script?
- Can I delete a search template I no longer use?
instructions:
- text: Delete stored script {id}.
slots:
id: path.id
- text: Remove search template {id}.
slots:
id: path.id
method: generated
generated: '2026-11-17'
- target: $.paths['/_script_context'].get
update:
x-apievangelist-phrasing:
intent: List script contexts
effect: read
questions:
- Which contexts can scripts run in?
- What script contexts does this cluster support?
instructions:
- text: List all script contexts.
- text: Show available script contexts.
method: generated
generated: '2026-11-17'
- target: $.paths['/_script_language'].get
update:
x-apievangelist-phrasing:
intent: List script languages
effect: read
questions:
- Which scripting languages are available?
- What languages work in each script context?
instructions:
- text: List supported script languages.
- text: Show script languages and their contexts.
method: generated
generated: '2026-11-17'
- target: $.paths['/_scripts/{id}/{context}'].put
update:
x-apievangelist-phrasing:
intent: Store a script compiled for a context
effect: write
questions:
- Can I compile a stored script against a specific context when saving it?
- How do I save a script for the score context?
instructions:
- text: Store script {id} in context {context} with source {script}.
slots:
id: path.id
context: path.context
script: requestBody.script
- text: Save script {id} compiled for {context}.
slots:
id: path.id
context: path.context
method: generated
generated: '2026-11-17'
- target: $.paths['/_scripts/{id}/{context}'].post
update:
x-apievangelist-phrasing:
intent: Store a context script via POST
effect: write
questions:
- Is there a POST form for saving a script in a specific context?
- Can I post a script with its context in the path?
instructions:
- text: Post script {id} for context {context} with source {script}.
slots:
id: path.id
context: path.context
script: requestBody.script
- text: Update context {context} script {id} using the POST form.
slots:
id: path.id
context: path.context
method: generated
generated: '2026-11-17'
- target: $.paths['/_scripts/painless/_execute'].get
update:
x-apievangelist-phrasing:
intent: Test a Painless script
effect: read
questions:
- Can I try a Painless script and see the result without indexing?
- How do I test a script against a sample document?
instructions:
- text: Run Painless script {script}.
slots:
script: requestBody.script
- text: Test script {script} in context {context}.
slots:
script: requestBody.script
context: requestBody.context
method: generated
generated: '2026-11-17'
- target: $.paths['/_scripts/painless/_execute'].post
update:
x-apievangelist-phrasing:
intent: Test a Painless script via POST
effect: read
questions:
- Is there a POST form of the Painless execute API?
- Can I post a script with context setup to debug it?
instructions:
- text: Post Painless script {script} for execution.
slots:
script: requestBody.script
- text: Test script {script} with setup {setup} using the POST form.
slots:
script: requestBody.script
setup: requestBody.context_setup
method: generated
generated: '2026-11-17'
Work with this as data
Every overlay 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 openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.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.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/elastic-script-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.