
Sentry Create Alert
- 357 installs
- 20 repo stars
- Updated March 24, 2026
- getsentry/sentry-agent-skills
This is a copy of sentry-create-alert by getsentry - installs and ranking accrue to the original listing.
sentry-create-alert is a Claude agent skill that creates Sentry workflow engine alerts for developers who need automated notifications on new issues, regressions, and priority spikes via API.
About
sentry-create-alert is an Apache-2.0 Claude agent skill from getsentry/sentry-agent-skills for creating alerts through Sentry's beta workflow engine API. The skill gathers org slug, region, auth token with alerts:write scope, trigger events such as first_seen_event and regression_event, optional filter conditions like issue_priority_greater_or_equal and event_frequency_count, and actions for email, Slack, PagerDuty, Discord, Microsoft Teams, Opsgenie, Jira, and GitHub. Developers resolve member, team, and integration IDs with curl against us.sentry.io or de.sentry.io, POST JSON to /api/0/organizations/{org}/workflows/, and verify HTTP 201 responses with workflow IDs and monitor UI links. Reach for sentry-create-alert when automating on-call notifications, priority de-escalation alerts, or workflow-based issue routing instead of manual Sentry UI configuration, especially for New Monitors and Alerts outside the legacy Alerts UI.
- Creates Sentry alert rules and conditions
- Routes notifications to teams or channels
- Agent-oriented sentry-agent-skills workflow
- Detects spikes, regressions, and new issues
- Closes the loop between errors and response
Sentry Create Alert by the numbers
- 357 all-time installs (skills.sh)
- Data as of Jul 24, 2026 (Skillselion catalog sync)
npx skills add https://github.com/getsentry/sentry-agent-skills --skill sentry-create-alertAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 357 |
|---|---|
| repo stars | ★ 20 |
| Last updated | March 24, 2026 |
| Repository | getsentry/sentry-agent-skills ↗ |
How do you create Sentry alerts with the workflow API?
Configure Sentry alert rules, thresholds, and notification routes so agents or engineers get timely signals on new issues, regressions, and error spikes.
Who is it for?
Backend and platform engineers automating Sentry alert setup who need API-driven notifications to Slack, PagerDuty, email, or Discord for issue events.
Skip if: Teams without Sentry org admin or alerts:write tokens should configure alerts manually in Sentry UI instead of this workflow API skill.
When should I use this skill?
User asks to create a Sentry alert, set up issue notifications, configure priority alerts, or build workflow automations with Slack or PagerDuty.
What you get
Sentry workflow JSON payload, HTTP 201 workflow ID, and monitors/alerts UI link for the configured notification rule.
- Workflow JSON payload
- Created workflow ID
- Sentry monitors/alerts dashboard link
By the numbers
- Supports 8 notification action types including email, Slack, PagerDuty, and Discord
- Documents 8 frequency values from 0 through 1440 minutes between repeated notifications
Files
Create Sentry Alert
Create alerts via Sentry's workflow engine API.
Note: This API is currently in beta and may be subject to change. It is part of New Monitors and Alerts and may not be viewable in the legacy Alerts UI.
Invoke This Skill When
- User asks to "create a Sentry alert" or "set up notifications"
- User wants to be emailed or notified when issues match certain conditions
- User mentions priority alerts, de-escalation alerts, or workflow automations
- User wants to configure Slack, PagerDuty, or email notifications for Sentry issues
Prerequisites
curlavailable in shell- Sentry org auth token with
alerts:writescope (also acceptsorg:adminororg:write)
Phase 1: Gather Configuration
Ask the user for any missing details:
| Detail | Required | Example |
|---|---|---|
| Org slug | Yes | sentry, my-org |
| Auth token | Yes | sntryu_... (needs alerts:write scope) |
| Region | Yes (default: us) | us → us.sentry.io, de → de.sentry.io |
| Alert name | Yes | "High Priority De-escalation Alert" |
| Trigger events | Yes | Which issue events fire the workflow |
| Conditions | Optional | Filter conditions before actions execute |
| Action type | Yes | email, slack, or pagerduty |
| Action target | Yes | User email, team, channel, or service |
Phase 2: Look Up IDs
Use these API calls to resolve names to IDs as needed.
API="https://{region}.sentry.io/api/0/organizations/{org}"
AUTH="Authorization: Bearer {token}"
# Find user ID by email
curl -s "$API/members/" -H "$AUTH" | python3 -c "
import json,sys
for m in json.load(sys.stdin):
if m.get('email')=='USER_EMAIL' or m.get('user',{}).get('email')=='USER_EMAIL':
print(m['user']['id']); break"
# List teams
curl -s "$API/teams/" -H "$AUTH" | python3 -c "
import json,sys
for t in json.load(sys.stdin):
print(t['id'], t['slug'])"
# List integrations (for Slack/PagerDuty)
curl -s "$API/integrations/" -H "$AUTH" | python3 -c "
import json,sys
for i in json.load(sys.stdin):
print(i['id'], i['provider']['key'], i['name'])"Phase 3: Build Payload
Trigger Events
Pick which issue events fire the workflow. Use logicType: "any-short" (triggers must always use this).
| Type | Fires when |
|---|---|
first_seen_event | New issue created |
regression_event | Resolved issue recurs |
reappeared_event | Archived issue reappears |
issue_resolved_trigger | Issue is resolved |
Filter Conditions
Conditions that must pass before actions execute. Use logicType: "all", "any-short", or "none".
The `comparison` field is polymorphic — its shape depends on the condition type:
| Type | comparison format | Description |
|---|---|---|
issue_priority_greater_or_equal | 75 (bare integer) | Priority >= Low(25)/Medium(50)/High(75) |
issue_priority_deescalating | true (bare boolean) | Priority dropped below peak |
event_frequency_count | {"value": 100, "interval": "1hr"} | Event count in time window |
event_unique_user_frequency_count | {"value": 50, "interval": "1hr"} | Affected users in time window |
tagged_event | {"key": "level", "match": "eq", "value": "error"} | Event tag matches |
assigned_to | {"targetType": "Member", "targetIdentifier": 123} | Issue assigned to target |
level | {"level": 40, "match": "gte"} | Event level (fatal=50, error=40, warning=30) |
age_comparison | {"time": "hour", "value": 24, "comparisonType": "older"} | Issue age |
issue_category | {"value": 1} | Category (1=Error, 6=Feedback) |
issue_occurrences | {"value": 100} | Total occurrence count |
Interval options: "1min", "5min", "15min", "1hr", "1d", "1w", "30d"
Tag match types: "co" (contains), "nc" (not contains), "eq", "ne", "sw" (starts with), "ew" (ends with), "is" (set), "ns" (not set)
Set conditionResult to false to invert (fire when condition is NOT met).
Actions
| Type | Key Config |
|---|---|
email | config.targetType: "user" / "team" / "issue_owners", config.targetIdentifier: <id> |
slack | integrationId: <id>, config.targetDisplay: "#channel-name" |
pagerduty | integrationId: <id>, config.targetDisplay: <service_name>, data.priority: "critical" |
discord | integrationId: <id>, data.tags: tag list |
msteams | integrationId: <id>, config.targetDisplay: <channel> |
opsgenie | integrationId: <id>, data.priority: "P1"-"P5" |
jira | integrationId: <id>, data: project/issue config |
github | integrationId: <id>, data: repo/issue config |
Full Payload Structure
{
"name": "<Alert Name>",
"enabled": true,
"environment": null,
"config": { "frequency": 30 },
"triggers": {
"logicType": "any-short",
"conditions": [
{ "type": "first_seen_event", "comparison": true, "conditionResult": true }
],
"actions": []
},
"actionFilters": [{
"logicType": "all",
"conditions": [
{ "type": "issue_priority_greater_or_equal", "comparison": 75, "conditionResult": true },
{ "type": "event_frequency_count", "comparison": {"value": 50, "interval": "1hr"}, "conditionResult": true }
],
"actions": [{
"type": "email",
"integrationId": null,
"data": {},
"config": {
"targetType": "user",
"targetIdentifier": "<user_id>",
"targetDisplay": null
},
"status": "active"
}]
}]
}frequency: minutes between repeated notifications. Allowed values: 0, 5, 10, 30, 60, 180, 720, 1440.
Structure note: triggers.actions is always [] — actions live inside actionFilters[].actions.
Phase 4: Create the Alert
curl -s -w "\n%{http_code}" -X POST \
"https://{region}.sentry.io/api/0/organizations/{org}/workflows/" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{payload}'Expect HTTP 201. The response contains the workflow id.
Phase 5: Verify
Confirm the alert was created and provide the UI link:
https://{org_slug}.sentry.io/monitors/alerts/{workflow_id}/If the org lacks the workflow-engine-ui feature flag, the alert appears at:
https://{org_slug}.sentry.io/alerts/rules/Managing Alerts
# List all workflows
curl -s "$API/workflows/" -H "$AUTH"
# Get one workflow
curl -s "$API/workflows/{id}/" -H "$AUTH"
# Update a workflow
curl -s -X PUT "$API/workflows/{id}/" -H "$AUTH" -H "Content-Type: application/json" -d '{payload}'
# Delete a workflow
curl -s -X DELETE "$API/workflows/{id}/" -H "$AUTH"
# Expect 204Troubleshooting
| Issue | Solution |
|---|---|
| 401 Unauthorized | Token needs alerts:write scope |
| 403 Forbidden | Token must belong to the target org |
| 404 Not Found | Check org slug and region (us vs de) |
| 400 Bad Request | Validate payload JSON structure, check required fields |
| User ID not found | Verify email matches a member of the org |
Related skills
How it compares
Use sentry-create-alert for programmatic workflow-engine rules; use Sentry UI setup when you lack API tokens or need legacy alert rule screens only.
FAQ
What auth scope does sentry-create-alert require?
sentry-create-alert requires a Sentry org auth token with alerts:write scope, also accepting org:admin or org:write. Missing scope returns 401 Unauthorized from the workflow engine POST endpoint.
Which notification channels does sentry-create-alert support?
sentry-create-alert supports email, Slack, PagerDuty, Discord, Microsoft Teams, Opsgenie, Jira, and GitHub action types inside actionFilters, each with integrationId and targetDisplay configuration fields.
Is the Sentry workflow API stable in sentry-create-alert?
sentry-create-alert notes the workflow engine API is currently in beta and part of New Monitors and Alerts, so created workflows may not appear in the legacy Alerts UI without the workflow-engine-ui feature flag.