Get an AI Index
https://{kibana_url}
- GET /api/context_engine/ai_index/{aiIndexId}
- GET /s/{space_id}/api/context_engine/ai_index/{aiIndexId}
Refer to Spaces for more information.
Fetches an AI Index by ID from the current space, including the ES|QL query derived from each trace.
Returns a 404 response when Context Engine is turned off in this space (contextEngine:enabled).
For more information, refer to the Context Engine documentation.
[Required authorization] Route required privileges: contextEngine:read.
Path Parameters
-
aiIndexIdstring · min: 1 · max: 256required -
The unique identifier of the AI Index.
Responses
The requested AI Index.
-
automationsobjectrequired -
Automations associated with the AI Index.
-
date_createdstringrequired -
ISO 8601 timestamp of when the AI Index was created.
-
date_modifiedstringrequired -
ISO 8601 timestamp of when the AI Index was last modified.
-
descriptionstring -
Human-readable description of the AI Index.
-
destobjectrequired -
The data stream or index that backs the AI Index.
-
feedback_analysisobject -
The recurring feedback analysis, which reads agent signals and proposes improvement actions for the AI Index.
-
agent_idstring -
Agent Builder agent ID that runs the analysis.
-
allowed_actions -
Improvement actions the analysis may propose.
-
Values:
add_kiedit_kiremove_kiadd_workflowedit_workflowremove_workflowadd_sourceedit_sourceremove_source -
enabledbooleanrequired -
Whether the recurring feedback analysis is desired to run.
-
scheduleobject -
When the analysis runs.
-
intervalstringrequired -
How often to analyze, for example
1h. -
signal_filterstring -
KQL narrowing which signals the analysis reads.
-
signal_time_rangeanyOf -
idstringrequired -
The unique identifier of the AI Index.
-
managedbooleanrequired -
Whether the AI Index is managed by a plugin and therefore immutable.
-
memory_enabledbooleanrequired -
Whether this AI Index accepts memory writes.
-
sourcesobjectrequired -
Additional sources that provide context for the AI Index.
-
tracesobjectrequired -
Trace sources linked to this AI Index, each with its derived ES|QL query.
No AI Index with the given ID exists in the current space, or Context Engine is turned off in this space.
-
errorstring -
The HTTP status text.
-
messagestringrequired -
A human-readable error message.
-
statusCodenumber -
The HTTP status code.