Configure Sentry issue alert rules via the API

domain: docs.sentry.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate with a Sentry auth token having 'project:write' scope and identify the organization slug and project slug
  2. POST to 'https://sentry.io/api/0/projects/{org_slug}/{project_slug}/rules/' with Content-Type: application/json
  3. Construct the request body with 'name', 'actionMatch' ('all' or 'any'), 'conditions' array (e.g. '{"id": "sentry.rules.conditions.first_seen_event.FirstSeenEventCondition"}'), 'filters' array, and 'actions' array
  4. Specify an action such as email notification with '{"id": "sentry.mail.actions.NotifyEmailAction", "targetType": "Team", "targetIdentifier": "<team_id>"}' or a webhook action for external integrations
  5. List existing rules with GET to the same endpoint and update with PUT to '/api/0/projects/{org_slug}/{project_slug}/rules/{rule_id}/'

Known gotchas

Related routes

Set up Sentry error tracking with release health and source maps
sentry.io · 4 steps · unrated
Configure Sentry performance monitoring to track web vitals and transaction latency
sentry.io · 6 steps · unrated
Create Kibana alerting rules programmatically via the Alerting API
www.elastic.co · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans