Context Engine
Use the Context Engine APIs to manage AI Indices, query them with ES|QL, and describe them for an agent. An AI Index attaches a name, sources, traces, and automations to a single data stream or index.
In each space, these APIs return a 404 until the contextEngine:enabled advanced setting is turned on for that space.
Endpoints
7 endpoints
-
GET
List AI Indices
/api /context_engine /ai_index -
POST
Create an AI Index
/api /context_engine /ai_index -
POST
Query AI Indices
/api /context_engine /ai_index /_query -
GET
Get an AI Index
/api /context_engine /ai_index /{aiIndexId} -
PUT
Create or update an AI Index
/api /context_engine /ai_index /{aiIndexId} -
DELETE
Delete an AI Index
/api /context_engine /ai_index /{aiIndexId} -
GET
Describe an AI Index
/api /context_engine /ai_index /{aiIndexId} /_describe