AuthThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityExperimental since 9.5This functionality is experimental and is not ready for production usage. Experimental features may change or be removed at any time. Elastic will work to fix any issues, but experimental features are not subject to the support SLA of official GA features. Specific Support terms apply.Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Get a paginated list of action policies with optional filtering and sorting.
Whether this policy was created by a user (vs system-generated).
ownerstringrequired
The owner of the action policy.
created_atstringrequired
The ISO datetime when the action policy was created.
created_bystringrequirednullable
The user ID who created the action policy.
descriptionstringrequired
A description of the action policy.
destinationsuniononeOf[]required
The list of destinations.
One of:
{}type: workflow
idstring · min length: 1 · max length: 150required
The workflow connector identifier.
typeenumrequired
The destination type.
Values:workflow
enabledbooleanrequired
Whether the action policy is enabled.
group_bystring[]requirednullable
The fields used to group alerts, or null for no grouping.
grouping_modeunionanyOfrequired
The grouping mode for alert notifications.
Values:per_episodeallper_field
idstringrequired
The unique identifier for the action policy.
matcherobjectrequirednullable
Selects the alerts this policy applies to. Set tags to match alerts from rules with those tags. Set expression to a KQL query, which will be evaluated against each alert.
If you set both tags and expression, an alert must match the tags and the expression for the policy to apply. When matcher is null, or when both tags and expression are empty, the policy applies to all alerts.
expressionstring · max length: 4096nullable
A KQL query that's evaluated against each alert. Supported fields are: episode_id, episode_status, group_hash, last_event_timestamp, severity, and your rule's query output columns under data.* (for example, data.host.name). Referencing other fields won't work. Omit matcher.expression or set it to null to match on tags alone.
tagsstring[] · max items: 50nullable
Rule tags this policy should match. The policy applies to alerts from any rule that has at least one of these tags. Omit matcher.tags or set it to null to match on matcher.expression alone.
namestringrequired
The name of the action policy.
snoozed_untilstringrequirednullable
The ISO datetime until which the policy is snoozed, or null if not snoozed.
throttleobjectrequirednullable
The throttle configuration for notifications.
intervalstring · max length: 32requirednullable
The throttle interval duration (e.g. 5m, 1h), or null when the strategy is intervalless.
The ISO datetime when the action policy was last updated.
updated_bystringrequirednullable
The user ID who last updated the action policy.
versionstring
The version, used for optimistic concurrency control.
pagenumberrequired
The current page number.
per_pagenumberrequired
The number of action policies per page.
totalnumberrequired
The total number of action policies matching the query.
Indicates an invalid schema or parameters.
application/json
codestringrequired
Stable error code you can branch on, for example INVALID_SCHEDULE or RULE_ALREADY_EXISTS.
detailsmapstring to object
Optional extra information about the error, for example field validation issues or the rule_id when that ID already exists.
errorstringrequired
A short human-readable summary of the error category (e.g., "Not Found", "Bad Request"). Subject to change without notice. Do not parse or rely on its content.
messagestringrequired
A readable explanation of the error. The wording can change without notice. Do not parse this field.
Indicates the request was not authenticated.
application/json
codestringrequired
Stable error code you can branch on, for example INVALID_SCHEDULE or RULE_ALREADY_EXISTS.
detailsmapstring to object
Optional extra information about the error, for example field validation issues or the rule_id when that ID already exists.
errorstringrequired
A short human-readable summary of the error category (e.g., "Not Found", "Bad Request"). Subject to change without notice. Do not parse or rely on its content.
messagestringrequired
A readable explanation of the error. The wording can change without notice. Do not parse this field.
Indicates the user does not have the required privileges to perform the request.
application/json
codestringrequired
Stable error code you can branch on, for example INVALID_SCHEDULE or RULE_ALREADY_EXISTS.
detailsmapstring to object
Optional extra information about the error, for example field validation issues or the rule_id when that ID already exists.
errorstringrequired
A short human-readable summary of the error category (e.g., "Not Found", "Bad Request"). Subject to change without notice. Do not parse or rely on its content.
messagestringrequired
A readable explanation of the error. The wording can change without notice. Do not parse this field.
Indicates an unexpected server-side error.
application/json
codestringrequired
Stable error code you can branch on, for example INVALID_SCHEDULE or RULE_ALREADY_EXISTS.
detailsmapstring to object
Optional extra information about the error, for example field validation issues or the rule_id when that ID already exists.
errorstringrequired
A short human-readable summary of the error category (e.g., "Not Found", "Bad Request"). Subject to change without notice. Do not parse or rely on its content.
messagestringrequired
A readable explanation of the error. The wording can change without notice. Do not parse this field.
Indicates the alerting engine is disabled by the alerting:v2:enabled advanced setting.
application/json
codestringrequired
Stable error code you can branch on, for example INVALID_SCHEDULE or RULE_ALREADY_EXISTS.
detailsmapstring to object
Optional extra information about the error, for example field validation issues or the rule_id when that ID already exists.
errorstringrequired
A short human-readable summary of the error category (e.g., "Not Found", "Bad Request"). Subject to change without notice. Do not parse or rely on its content.
messagestringrequired
A readable explanation of the error. The wording can change without notice. Do not parse this field.