Elastic · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Elasticsearch Sql API
9 actions
9 updates
phrasing
extends
openapi/elastic-sql-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 9
$.info
$.paths['/_sql/close'].post
$.paths['/_sql/async/delete/{id}'].delete
$.paths['/_sql/async/{id}'].get
$.paths['/_sql/async/status/{id}'].get
$.paths['/_sql'].get
$.paths['/_sql'].post
$.paths['/_sql/translate'].get
$.paths['/_sql/translate'].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 Sql API
version: 1.0.0
extends: openapi/elastic-sql-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: 8
- target: $.paths['/_sql/close'].post
update:
x-apievangelist-phrasing:
intent: Close an open SQL pagination cursor
effect: write
questions:
- How do I release a SQL cursor I'm done paging through?
- Can I free server resources held by an unfinished SQL result set?
instructions:
- text: Close SQL cursor {cursor}.
slots:
cursor: requestBody.cursor
- text: Release the SQL pagination cursor {cursor} now.
slots:
cursor: requestBody.cursor
method: generated
generated: '2026-11-17'
- target: $.paths['/_sql/async/delete/{id}'].delete
update:
x-apievangelist-phrasing:
intent: Delete an async SQL search
effect: destructive
questions:
- How do I cancel and remove an async SQL search and its results?
- Can I delete stored results of a long-running SQL query?
instructions:
- text: Delete async SQL search {id}.
slots:
id: path.id
- text: Cancel and discard async SQL query {id}.
slots:
id: path.id
method: generated
generated: '2026-11-17'
- target: $.paths['/_sql/async/{id}'].get
update:
x-apievangelist-phrasing:
intent: Get results of an async SQL search
effect: read
questions:
- How do I fetch the results of an async SQL query once it's done?
- Can I get async SQL results as CSV?
instructions:
- text: Get results of async SQL search {id}.
slots:
id: path.id
- text: Return async SQL results {id} in format {format}.
slots:
id: path.id
format: query.format
method: generated
generated: '2026-11-17'
- target: $.paths['/_sql/async/status/{id}'].get
update:
x-apievangelist-phrasing:
intent: Check status of an async SQL search
effect: read
questions:
- Is my async SQL query still running?
- Can I check an async SQL search's progress without pulling the results?
instructions:
- text: Check the status of async SQL search {id}.
slots:
id: path.id
- text: Tell me whether async SQL query {id} has finished.
slots:
id: path.id
method: generated
generated: '2026-11-17'
- target: $.paths['/_sql'].get
update:
x-apievangelist-phrasing:
intent: Run a SQL query using GET
effect: read
questions:
- Can I send a SQL query to Elasticsearch with a GET request?
- Is the GET form of the SQL endpoint able to return results as a table?
instructions:
- text: Use GET to run SQL query {query}.
slots:
query: requestBody.query
- text: Run SQL {query} via GET and return format {format}.
slots:
query: requestBody.query
format: query.format
method: generated
generated: '2026-11-17'
- target: $.paths['/_sql'].post
update:
x-apievangelist-phrasing:
intent: Run a SQL query against Elasticsearch
effect: read
questions:
- How do I query my indices with SQL?
- Can I page through SQL results with a cursor?
- Can I get SQL query results back as CSV or plain text?
instructions:
- text: Run SQL query {query}.
slots:
query: requestBody.query
- text: Run {query} and return results in format {format}.
slots:
query: requestBody.query
format: query.format
- text: Fetch the next page of SQL results with cursor {cursor}.
slots:
cursor: requestBody.cursor
method: generated
generated: '2026-11-17'
- target: $.paths['/_sql/translate'].get
update:
x-apievangelist-phrasing:
intent: Translate SQL into Query DSL using GET
effect: read
questions:
- Is there a GET version of the SQL translate endpoint?
- Can I translate SQL to Query DSL with a GET call?
instructions:
- text: Use GET to translate SQL {query} into Query DSL.
slots:
query: requestBody.query
- text: Translate {query} via GET with fetch size {fetch_size}.
slots:
query: requestBody.query
fetch_size: requestBody.fetch_size
method: generated
generated: '2026-11-17'
- target: $.paths['/_sql/translate'].post
update:
x-apievangelist-phrasing:
intent: Translate SQL into Query DSL
effect: read
questions:
- What Elasticsearch query DSL does my SQL statement turn into?
- Can I convert a SQL statement into a search request I can reuse?
instructions:
- text: Translate SQL {query} into Query DSL.
slots:
query: requestBody.query
- text: Show the search request generated for SQL {query} in time zone {time_zone}.
slots:
query: requestBody.query
time_zone: requestBody.time_zone
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-sql-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.