Sentry · Capability
Sentry Alerts API
The Alerts API provides endpoints for managing alert rules in Sentry, including creating, retrieving, updating, and deleting metric alert rules and issue alert rules, as well as managing spike protection notification actions.
What You Can Do
GET
Listmetricalertrules
— Sentry List an organization's metric alert rules
/organizations/{organization_id_or_slug}/alert-rules/
POST
Createmetricalertrule
— Sentry Create a metric alert rule for an organization
/organizations/{organization_id_or_slug}/alert-rules/
GET
Retrievemetricalertrule
— Sentry Retrieve a metric alert rule for an organization
/organizations/{organization_id_or_slug}/alert-rules/{alert_rule_id}/
PUT
Updatemetricalertrule
— Sentry Update a metric alert rule
/organizations/{organization_id_or_slug}/alert-rules/{alert_rule_id}/
DELETE
Deletemetricalertrule
— Sentry Delete a metric alert rule
/organizations/{organization_id_or_slug}/alert-rules/{alert_rule_id}/
GET
Listissuealertrules
— Sentry List a project's issue alert rules
/projects/{organization_id_or_slug}/{project_id_or_slug}/rules/
POST
Createissuealertrule
— Sentry Create an issue alert rule for a project
/projects/{organization_id_or_slug}/{project_id_or_slug}/rules/
GET
Retrieveissuealertrule
— Sentry Retrieve an issue alert rule for a project
/projects/{organization_id_or_slug}/{project_id_or_slug}/rules/{rule_id}/
PUT
Updateissuealertrule
— Sentry Update an issue alert rule
/projects/{organization_id_or_slug}/{project_id_or_slug}/rules/{rule_id}/
DELETE
Deleteissuealertrule
— Sentry Delete an issue alert rule
/projects/{organization_id_or_slug}/{project_id_or_slug}/rules/{rule_id}/
GET
Listspikeprotectionnotifications
— Sentry List spike protection notifications
/organizations/{organization_id_or_slug}/spike-protections/
POST
Createspikeprotectionnotification
— Sentry Create a spike protection notification action
/organizations/{organization_id_or_slug}/spike-protections/
MCP Tools
listmetricalertrules
Sentry List an organization's metric alert rules
read-only
idempotent
createmetricalertrule
Sentry Create a metric alert rule for an organization
retrievemetricalertrule
Sentry Retrieve a metric alert rule for an organization
read-only
idempotent
updatemetricalertrule
Sentry Update a metric alert rule
idempotent
deletemetricalertrule
Sentry Delete a metric alert rule
idempotent
listissuealertrules
Sentry List a project's issue alert rules
read-only
idempotent
createissuealertrule
Sentry Create an issue alert rule for a project
retrieveissuealertrule
Sentry Retrieve an issue alert rule for a project
read-only
idempotent
updateissuealertrule
Sentry Update an issue alert rule
idempotent
deleteissuealertrule
Sentry Delete an issue alert rule
idempotent
listspikeprotectionnotifications
Sentry List spike protection notifications
read-only
idempotent
createspikeprotectionnotification
Sentry Create a spike protection notification action