---
title: "Get all severity modifier rules"
method: GET
path: "/api/v2/security/findings/automation/severity_modifier_rules"
tags: ["Security Monitoring"]
---

# Get all severity modifier rules

`GET /api/v2/security/findings/automation/severity_modifier_rules`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/security/findings/automation/severity_modifier_rules`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/security/findings/automation/severity_modifier_rules/get.ts> (a function with typed inputs; its response is checked against the schema)

Get all severity modifier rules for the current organization.

## Query parameters

- `page[size]` integer
- `page[number]` integer

## Response `200`

Successfully retrieved the list of severity modifier rules

- SeverityModifierRulesResponse: A list of severity modifier rules with pagination metadata.
  - `data` SeverityModifierRuleDataResponse[], required: A list of severity modifier rule data objects.
    - `attributes` SeverityModifierRuleAttributesResponse, required: Attributes of a severity modifier rule as returned by the API.
      - `action` union, required: The action to take when a severity modifier rule matches a finding. This is a discriminated union on `type`: `set` assigns a fixed severity, while `shift` moves the severity up or down by one rank. A severity modifier rule's `rule.query` must not filter on `@severity` or on the `@severity_details.user_adjusted.*` namespace. Use `@severity_details.adjusted.value` instead, which reflects the severity before user-defined adjustments.
        - SeverityModifierRuleSetAction: Sets matched findings to a fixed severity.
          - `description` string: An optional free-form explanation for the severity change.
          - `severity` 'info_none' | 'low' | 'medium' | 'high' | 'critical', required: The severity to assign to matched findings. `info_none` is not supported for the `iac_misconfiguration`, `runtime_code_vulnerability`, `secret`, or `static_code_vulnerability` finding types.
          - `type` 'set', required: The type of a severity modifier rule action that sets a fixed severity.
        - SeverityModifierRuleShiftAction: Shifts matched findings up or down by one severity rank.
          - `description` string: An optional free-form explanation for the severity change.
          - `severity_delta` 'up_one' | 'down_one', required: The direction in which to shift the severity of matched findings by one rank.
          - `type` 'shift', required: The type of a severity modifier rule action that shifts the severity by one rank.
      - `created_at` integer, required: The Unix timestamp in milliseconds when the rule was created.
      - `created_by` AutomationRuleCreatedBy, required: The user or Datadog system who created the rule.
        - `id` string, required: The actor's identifier (a user UUID or a system identifier).
        - `name` string, required: The name of the actor.
        - `type` 'user' | 'system', required: Whether the actor is a user or the Datadog system.
      - `enabled` boolean, required: Whether the severity modifier rule is enabled.
      - `modified_at` integer, required: The Unix timestamp in milliseconds when the rule was last modified.
      - `modified_by` AutomationRuleModifiedBy, required: The user or Datadog system who last modified the rule.
        - `id` string, required: The actor's identifier (a user UUID or a system identifier).
        - `name` string, required: The name of the actor.
        - `type` 'user' | 'system', required: Whether the actor is a user or the Datadog system.
      - `name` string, required: The name of the severity modifier rule.
      - `rule` AutomationRuleScope, required: Defines the scope of findings to which the automation rule applies.
        - `finding_types` SecurityFindingType[], required: The list of security finding types that the automation rule applies to.
        - `query` string: A search query to further filter the findings matched by this rule. The `@workflow.*` namespace and `@status` fields are not permitted. For a reference of available fields, see the [Security Findings schema documentation](https://docs.datadoghq.com/security/guide/findings-schema/).
    - `id` string, uuid, required: The ID of the severity modifier rule.
    - `type` 'severity_modifier_rules', required: The JSON:API type for severity modifier rules.
  - `links` SecurityAutomationRulesLinks, required: Pagination links for the list of automation rules.
    - `first` string, required: Link to the first page of results.
    - `last` string, required: Link to the last page of results.
    - `next` string: Link to the next page of results.
    - `prev` string: Link to the previous page of results.
  - `meta` SecurityAutomationRulesMeta, required: Metadata for the list of automation rules.
    - `page` SecurityAutomationRulesPageInfo, required: Pagination information for the list of automation rules.
      - `total_filtered_count` integer, required: The total number of rules matching the current filter.

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
