List AI Indices
https://{kibana_url}
- GET /api/context_engine/ai_index
- GET /s/{space_id}/api/context_engine/ai_index
Refer to Spaces for more information.
Lists up to 100 AI Indices in the current space that the caller can read. The response omits an AI Index when the caller cannot read its backing index. Empty AI Indices are still included. A caller with no read privilege on any index gets a 403 response.
The space comes from the request URL (/s/{spaceId}/…) or defaults to the default space. It cannot be specified in any other way.
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.
Responses
The AI Indices available to the caller in the current space.
-
ai_indicesobjectrequired -
The AI Indices available to the caller in the current space.
-
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.
The caller has no read privilege on any index, so Elasticsearch rejected the request.
-
errorstring -
The HTTP status text.
-
messagestringrequired -
A human-readable error message.
-
statusCodenumber -
The HTTP status code.
Context Engine is turned off in this space.
-
errorstring -
The HTTP status text.
-
messagestringrequired -
A human-readable error message.
-
statusCodenumber -
The HTTP status code.