---
title: "Get information about rules"
method: GET
path: "/api/alerting/rules/_find"
tags: ["alerting"]
---

# Get information about rules

`GET /api/alerting/rules/_find`

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/alerting/rules/_find</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Query parameters

- `per_page` number
- `page` number
- `search` string
- `default_search_operator` 'OR' | 'AND'
- `search_fields` string[]
- `sort_field` string
- `sort_order` 'asc' | 'desc'
- `has_reference` object, nullable
  - `id` string, required
  - `type` string, required
- `fields` string[]
- `filter` string
- `filter_consumers` string[]

## Response `200`

Indicates a successful call.

- object
  - `data` KibanaHTTPAPIsRuleResponse[], required
    - `actions` object[], required
      - `alerts_filter` object — Defines a period that limits whether the action runs.
        - `query` KibanaHTTPAPIsAlertsFilterQuery
          - `dsl` string — A filter written in Elasticsearch Query Domain Specific Language (DSL).
          - `filters` object[], required — A filter written in Elasticsearch Query Domain Specific Language (DSL) as defined in the `kbn-es-query` package.
            - `$state` object
              - …
            - `meta` object, required
            - `query` object
          - `kql` string, required — A filter written in Kibana Query Language (KQL).
        - `timeframe` object
          - `days` integer[], required — Defines the days of the week that the action can run, represented as an array of numbers. For example, `1` represents Monday. An empty array is equivalent to specifying all the days of the week.
          - `hours` object, required
            - `end` string, required — The end of the time frame, in 24-hour notation (`hh:mm`).
            - `start` string, required — The start of the time frame, in 24-hour notation (`hh:mm`).
          - `timezone` string, required — The ISO time zone for the `hours` values. Values such as `UTC` and `UTC+1` also work but lack built-in support for daylight savings time and are not recommended.
      - `connector_type_id` string, required — The type of connector. This property appears in responses but cannot be set in requests.
      - `frequency` object
        - `notify_when` 'onActionGroupChange' | 'onActiveAlert' | 'onThrottleInterval', required — Indicates how frequently rule actions are triggered. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. You cannot specify `notify_when` at both the rule and action level. The recommended approach is to set it for each action individually. If you set `notify_when` at the rule level and then edit the rule, it will automatically be converted to action-specific values.
        - `summary` boolean, required — Indicates whether the action is a summary.
        - `throttle` string, nullable — The throttle interval defines how frequently rule actions are triggered. It is specified in seconds, minutes, hours, or days and only applies when 'notify_when' is set to 'onThrottleInterval'. You cannot set the throttle interval at both the rule and action level. The recommended approach is to set it for each action individually. If you set the throttle interval at the rule level and then edit the rule, it will automatically be converted to action-specific values.
      - `group` string — The group name, which affects when the action runs (for example, when the threshold is met or when the alert is recovered). Each rule type has a list of valid action group names. If you don't need to group actions, set to `default`.
      - `id` string, required — The identifier for the connector saved object.
      - `params` object, required — The parameters for the action, which are sent to the connector. The `params` are handled as Mustache templates and passed a default set of context.
      - `use_alert_data_for_template` boolean — Indicates whether to use alert data as a template.
      - `uuid` string — A universally unique identifier (UUID) for the action.
    - `alert_delay` object — Indicates that an alert occurs only when the specified number of consecutive runs met the rule conditions.
      - `active` number, required — The number of consecutive runs that must meet the rule conditions.
    - `api_key_created_by_user` boolean, nullable — Indicates whether the API key that is associated with the rule was created by the user.
    - `api_key_owner` string, nullable — The owner of the API key that is associated with the rule and used to run background tasks.
    - `artifacts` object
      - `dashboards` object[]
        - `id` string, required
      - `investigation_guide` object
        - `blob` string, required — User-created content that describes alert causes and remediation.
    - `consumer` string, required — The name of the application or feature that owns the rule. For example: `alerts`, `apm`, `discover`, `infrastructure`, `logs`, `metrics`, `ml`, `monitoring`, `securitySolution`, `siem`, `stackAlerts`, or `uptime`.
    - `created_at` string, required — The date and time that the rule was created.
    - `created_by` string, nullable — The identifier for the user that created the rule.
    - `enabled` boolean, required — Indicates whether you want the rule to run on an interval basis after it is created.
    - `execution_status` object, required
      - `error` object
        - `message` string, required — Error message.
        - `reason` 'read' | 'decrypt' | 'execute' | 'unknown' | 'license' | 'timeout' | 'disabled' | 'validate', required — Reason for error.
      - `last_duration` number — Duration of last rule execution.
      - `last_execution_date` string, required — The date and time of the last rule execution.
      - `status` 'ok' | 'active' | 'error' | 'warning' | 'pending' | 'unknown', required — Status of rule execution.
      - `warning` object
        - `message` string, required — Warning message.
        - `reason` 'maxExecutableActions' | 'maxAlerts' | 'maxQueuedActions' | 'ruleExecution', required — Reason for warning.
    - `flapping` KibanaHTTPAPIsRuleFlapping — When flapping detection is turned on, alerts that switch quickly between active and recovered states are identified as “flapping” and notifications are reduced.
      - `enabled` boolean — Determines whether the rule can enter the flapping state. By default, rules can enter the flapping state.
      - `look_back_window` number, required — The minimum number of runs in which the threshold must be met.
      - `status_change_threshold` number, required — The minimum number of times an alert must switch states within the defined look back window time.
    - `id` string, required — The identifier for the rule.
    - `last_run` object, nullable
      - `alerts_count` object, required
        - `active` number, nullable — Number of active alerts during last run.
        - `ignored` number, nullable — Number of ignored alerts during last run.
        - `new` number, nullable — Number of new alerts during last run.
        - `recovered` number, nullable — Number of recovered alerts during last run.
      - `outcome` 'succeeded' | 'warning' | 'failed', required — Outcome of the last rule run. Value can be succeeded, warning, or failed.
      - `outcome_msg` string[], nullable
      - `outcome_order` number — Order of the outcome.
      - `warning` 'read' | 'decrypt' | 'execute' | 'unknown' | 'license' | 'timeout' | 'disabled' | 'validate' | 'maxExecutableActions' | 'maxAlerts' | 'maxQueuedActions' | 'ruleExecution' | 'null', nullable — Warning of last rule execution.
    - `mapped_params` object
    - `mute_all` boolean, required — Indicates whether all alerts are muted.
    - `muted_alert_ids` string[], required
    - `name` string, required — The name of the rule.
    - `next_run` string, nullable — Date and time of the next rule run.
    - `notify_when` 'onActionGroupChange' | 'onActiveAlert' | 'onThrottleInterval' | 'null', nullable — Indicates how frequently rule actions are triggered. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. You cannot specify `notify_when` at both the rule and action level. The recommended approach is to set it for each action individually. If you set `notify_when` at the rule level and then edit the rule, it will automatically be converted to action-specific values.
    - `params` object, required — The parameters for the rule.
    - `revision` number, required — The rule revision number.
    - `rule_type_id` string, required — The rule type identifier.
    - `running` boolean, nullable — Indicates whether the rule is running.
    - `schedule` object, required
      - `interval` string, required — The interval is specified in seconds, minutes, hours, or days.
    - `scheduled_task_id` string — Identifier of the scheduled task.
    - `tags` string[], required
    - `throttle` string, nullable — Deprecated in 8.13.0. Use the `throttle` property in the action `frequency` object instead. The throttle interval, which defines how frequently rule actions are triggered. You cannot specify the throttle interval at both the rule and action level. If you set the throttle interval at the rule level and then edit the rule, it will automatically be converted to action-specific values.
    - `updated_at` string, required — The date and time of the latest updates to the rule.
    - `updated_by` string, nullable — The identifier for the user who was the last to update the rule.
  - `page` number, required
  - `per_page` number, required
  - `total` number, required

## Other responses

- `400` — Indicates an invalid schema or parameters.
- `403` — Indicates that this call is forbidden.

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
