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.
7 endpoints
-
List AI Indices
- GET /api/context_engine/ai_index
-
Create an AI Index
- POST /api/context_engine/ai_index
-
Query AI Indices
- POST /api/context_engine/ai_index/_query
-
Delete an AI Index
- DELETE /api/context_engine/ai_index/{aiIndexId}
-
Get an AI Index
- GET /api/context_engine/ai_index/{aiIndexId}
-
Create or update an AI Index
- PUT /api/context_engine/ai_index/{aiIndexId}
-
Describe an AI Index
- GET /api/context_engine/ai_index/{aiIndexId}/_describe