Spaces method and path for this operation:
Refer to Spaces for more information.
Get the latest Attack Discovery generations metadata (that are not dismissed) for the current user. This endpoint retrieves generation metadata including execution status and statistics for Attack Discovery generations.
Query parameters
-
End of the time range for filtering generations. Accepts absolute timestamps (ISO 8601) or relative date math (e.g. "now", "now-24h").
-
The maximum number of generations to retrieve
Minimum value is
1. Default value is50. -
Whether to filter by scheduled or ad-hoc attack discovery generations. If omitted, both types are returned. Use
trueto return only scheduled generations orfalseto return only ad-hoc (interactive or action-triggered) generations. -
Start of the time range for filtering generations. Accepts absolute timestamps (ISO 8601) or relative date math (e.g. "now-7d").
curl \
--request GET 'http://localhost:5601/api/attack_discovery/generations?size=50&start=now-24h&end=now' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json"
{
"generations": [
{
"alerts_context_count": 75,
"connector_id": "chatGpt5_0ChatAzure",
"discoveries": 3,
"end": "2025-09-29T06:42:44.810Z",
"execution_uuid": "46b218d5-535d-4329-be56-d0f6af6986b7",
"loading_message": "AI is analyzing up to 100 alerts in the last 24 hours to generate discoveries.",
"start": "2025-09-29T06:42:08.962Z",
"status": "succeeded"
}
]
}
{
"error": "Bad Request",
"message": "Invalid size parameter. Must be a positive number.",
"status_code": 400
}