---
title: "Get notification rules"
method: GET
path: "/api/v2/cases/projects/{project_id}/notification_rules"
tags: ["Case Management"]
---

# Get notification rules

`GET /api/v2/cases/projects/{project_id}/notification_rules`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/cases/projects/{project_id}/notification_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` scopes: `cases_read`

Get all notification rules for a project.

## Path parameters

- `project_id` string, required

## Response `200`

OK

- CaseNotificationRulesResponse: Response with notification rules
  - `data` CaseNotificationRule[]: Notification rules data
    - `attributes` CaseNotificationRuleAttributes, required: Notification rule attributes
      - `is_enabled` boolean: Whether the notification rule is enabled
      - `query` string: Query to filter cases for this notification rule
      - `recipients` CaseNotificationRuleRecipient[]: List of notification recipients
        - `data` CaseNotificationRuleRecipientData: Recipient data
          - `channel` string: Slack channel name
          - `channel_id` string: Slack channel ID
          - `channel_name` string: Microsoft Teams channel name
          - `connector_name` string: Microsoft Teams connector name
          - `email` string: Email address
          - `name` string: HTTP webhook name
          - `service_name` string: PagerDuty service name
          - `team_id` string: Microsoft Teams team ID
          - `team_name` string: Microsoft Teams team name
          - `tenant_id` string: Microsoft Teams tenant ID
          - `tenant_name` string: Microsoft Teams tenant name
          - `workspace` string: Slack workspace name
          - `workspace_id` string: Slack workspace ID
        - `type` string: Type of recipient (SLACK_CHANNEL, EMAIL, HTTP, PAGERDUTY_SERVICE, MS_TEAMS_CHANNEL)
      - `triggers` CaseNotificationRuleTrigger[]: List of triggers for this notification rule
        - `data` CaseNotificationRuleTriggerData: Trigger data
          - `change_type` string: Change type (added, removed, changed)
          - `field` string: Field name for attribute value changed trigger
          - `from_status` string: Status ID to transition from
          - `from_status_name` string: Status name to transition from
          - `to_status` string: Status ID to transition to
          - `to_status_name` string: Status name to transition to
        - `type` string: Type of trigger (CASE_CREATED, STATUS_TRANSITIONED, ATTRIBUTE_VALUE_CHANGED, EVENT_CORRELATION_SIGNAL_CORRELATED)
    - `id` string, required: The notification rule's identifier
    - `type` 'notification_rule', required: Notification rule resource type

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `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/da68bf029e4c?raw)
