List a Project's Issue Alert Rules

GET /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/rules/

Return a list of active issue alert rules bound to a project.

An issue alert rule triggers whenever a new event is received for any issue in a project that matches the specified alert conditions. These conditions can include a resolved issue re-appearing or an issue affecting many users. Alert conditions have three parts:

  • Triggers: specify what type of activity you'd like monitored or when an alert should be triggered.
  • Filters: help control noise by triggering an alert only if the issue matches the specified criteria.
  • Actions: specify what should happen when the trigger conditions are met and the filters match.

Path Parameters

organization_id_or_slug (string)
REQUIRED

The id or slug of the organization the resource belongs to.

project_id_or_slug (string)
REQUIRED

The id or slug of the project the resource belongs to.

Scopes

<auth_token> requires one of the following scopes:
  • alerts:read
  • alerts:write
  • project:admin
  • project:read
  • project:write
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/rules/ \
 -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
[
  {
    "id": "3",
    "conditions": [
      {
        "interval": "1h",
        "id": "sentry.rules.conditions.event_frequency.EventFrequencyCondition",
        "value": 1000
      }
    ],
    "filters": [
      {
        "value": "1",
        "id": "sentry.rules.filters.issue_category.IssueCategoryFilter"
      },
      {
        "value": "2",
        "id": "sentry.rules.filters.issue_category.IssueCategoryFilter"
      }
    ],
    "actions": [
      {
        "targetType": "Team",
        "fallthroughType": "ActiveMembers",
        "id": "sentry.mail.actions.NotifyEmailAction",
        "targetIdentifier": 4367234414355
      }
    ],
    "actionMatch": "any",
    "filterMatch": "any",
    "frequency": 60,
    "name": "High Number of Issues with Production",
    "dateCreated": "2023-01-15T06:45:34.353346Z",
    "owner": "team:63562",
    "createdBy": {
      "id": 2435786,
      "name": "John Doe",
      "email": "john.doe@example.com"
    },
    "environment": "prod",
    "projects": [
      "melody"
    ],
    "status": "active",
    "lastTriggered": "2023-07-15T00:00:00.351236Z",
    "snooze": false
  }
]