Spaces method and path for this operation:
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.
GET
/api/context_engine/ai_index
curl
curl \
-X GET "https://${KIBANA_URL}/api/context_engine/ai_index" \
-H "Authorization: ApiKey ${API_KEY}"
GET kbn:/api/context_engine/ai_index
Response examples (200)
Example response listing the AI Indices the caller can read
{
"ai_indices": [
{
"automations": [],
"date_created": "2026-09-22T12:00:00.000Z",
"date_modified": "2026-09-22T12:00:00.000Z",
"description": "Knowledge about customer support cases.",
"dest": {
"type": "data_stream",
"value": "ai-index-ds-customer-support"
},
"id": "customer_support",
"managed": false,
"memory_enabled": true,
"sources": [
{
"type": "esql",
"value": "FROM support-cases | LIMIT 100"
}
],
"traces": []
}
]
}
Response examples (403)
The caller has no read privilege on any index
{
"error": "Forbidden",
"message": "security_exception\n\tRoot causes:\n\t\tsecurity_exception: action [indices:data/read/msearch] is unauthorized for user [jdoe] with effective roles [support_reader], this action is granted by the index privileges [read,all]",
"statusCode": 403
}
Response examples (404)
Context Engine is turned off in this space
{
"error": "Not Found",
"message": "Not Found",
"statusCode": 404
}