Spaces method and path for this operation:
Refer to Spaces for more information.
Get a paginated list of action policies with optional filtering and sorting.
[Required authorization] Route required privileges: read_alerting-v2-action-policies.
Query parameters
-
The page number to return. Defaults to 1.
Minimum value is
1. -
The number of action policies to return per page. Defaults to 20.
Minimum value is
1, maximum value is100. -
A text string to search across action policy fields.
Minimum length is
1, maximum length is256. -
Filter by enabled status. Accepts the strings true or false.
Values are
trueorfalse. -
The field to sort action policies by.
Values are
name,created_at, orupdated_at. -
The sort direction.
Values are
ascordesc.
Responses
-
Returns a paginated list of action policies.
-
Indicates an invalid schema or parameters.
-
Indicates the request was not authenticated.
-
Indicates the user does not have the required privileges to perform the request.
-
Indicates an unexpected server-side error.
-
Indicates the alerting engine is disabled by the
alerting:v2:enabledadvanced setting.
curl \
--request GET 'https://localhost:5601/api/alerting/v2/action_policies' \
--header "Authorization: $API_KEY"
{
"items": [
{
"auth": {
"created_by_user": true,
"owner": "elastic"
},
"created_at": "2026-01-15T12:00:00.000Z",
"created_by": "elastic",
"description": "Sends a workflow notification when matching host alerts fire.",
"destinations": [
{
"id": "workflow-1",
"type": "workflow"
}
],
"enabled": true,
"group_by": null,
"grouping_mode": "per_episode",
"id": "action-policy-1",
"matcher": "host.name: \"web-*\"",
"name": "Notify on host alerts",
"snoozed_until": null,
"tags": [
"production"
],
"throttle": {
"interval": null,
"strategy": "on_status_change"
},
"updated_at": "2026-01-15T12:00:00.000Z",
"updated_by": "elastic",
"version": "WzAsMV0="
}
],
"page": 1,
"per_page": 20,
"total": 1
}
{
"code": "BAD_REQUEST",
"details": {
"errors": {
"errors": [],
"properties": {
"page": {
"errors": [
"Too small: expected number to be >=1"
]
}
}
}
},
"error": "Bad Request",
"message": "page: Too small: expected number to be >=1"
}
{
"code": "UNAUTHORIZED",
"error": "Unauthorized",
"message": "Authentication required to access this API."
}
{
"code": "FORBIDDEN",
"error": "Forbidden",
"message": "The current user does not have the required privileges for this request."
}
{
"code": "INTERNAL_SERVER_ERROR",
"error": "Internal Server Error",
"message": "An unexpected error occurred."
}
{
"code": "ALERTING_DISABLED",
"error": "Service Unavailable",
"message": "Alerting is disabled."
}