---
title: "Get all due date rules"
method: GET
path: "/api/v2/security/findings/automation/due_date_rules"
tags: ["Security Monitoring"]
---

# Get all due date rules

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

Get all due date rules for the current organization.

## Query parameters

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

## Response `200`

Successfully retrieved the list of due date rules

- DueDateRulesResponse — A list of due date rules with pagination metadata.
  - `data` DueDateRuleDataResponse[], required — A list of due date rule data objects.
    - `attributes` DueDateRuleAttributesResponse, required — Attributes of a due date rule returned by the API.
      - `action` DueDateRuleAction, required — The action to take when the due date rule matches a finding.
        - `due_days_per_severity` DueDatePerSeverityItem[], required — A list of severity-to-due-date mappings. Each severity may appear at most once.
          - `due_in_days` integer, required — The number of days from the reference point until the finding is due.
          - `severity` 'critical' | 'high' | 'medium' | 'low' | 'info' | 'none' | 'unknown', required — A severity level used to configure due date thresholds.
        - `due_from` 'first_seen' | 'fix_available', required — The reference point from which the due date is calculated. When `fix_available` is selected but not applicable to the finding type, `first_seen` is used instead.
        - `reason_description` string — An optional description providing more context for the due date assignment.
      - `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 due date 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 due date 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 due date rule.
    - `type` 'due_date_rules', required — The JSON:API type for due date 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
- `429` — Too many requests

---

[API](https://skmtc.dev/datadog/apis/api-v2.md) · [All operations](https://skmtc.dev/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
