Sentry
Query and resolve application error/exception issues and events via the Sentry REST API.
Operations
| Operation | Description |
|---|---|
list-issues |
List issues for an organization (optionally filtered by project, query, time window) |
get-issue |
Retrieve full details for a single issue by ID |
update-issue |
Resolve, ignore, unresolve, or reassign an issue |
list-events |
List individual error events that belong to a specific issue |
API Key Setup
- In Sentry, go to Settings > Auth Tokens (or Settings > Developer Settings > Auth Tokens).
- Create a new token with at least the following scopes:
-
event:read— for list-issues, get-issue, list-events -event:write— for update-issue - Copy the token and supply it as
apiKey.
Auth header used: Authorization: Bearer <token>
Base URL: https://sentry.io/api/0
Inputs
| Field | Required | Description |
|---|---|---|
apiKey |
Yes | Sentry auth token |
operation |
Yes | One of: list-issues, get-issue, update-issue, list-events |
organizationSlug |
Yes (all ops) | Your org slug from the Sentry URL |
issueId |
Yes (get/update/list-events) | Sentry numeric issue ID |
projectSlug |
No | Filter list-issues to a project |
query |
No | Search query for list-issues (default: is:unresolved) |
limit |
No | Max results, up to 100 (default: 25) |
statsPeriod |
No | Time window: 24h, 7d, 14d (default: Sentry default) |
status |
No | For update-issue: resolved, unresolved, ignored |
assignedTo |
No | For update-issue: username, email, or team:<team_id> |
Outputs
| Field | Description |
|---|---|
result |
JSON string containing the Sentry API response |
status |
ok on success |
Examples
List the 10 most recent unresolved errors:
operation: list-issues
organizationSlug: my-org
query: is:unresolved
limit: 10
statsPeriod: 24h
Get details for a specific issue:
operation: get-issue
organizationSlug: my-org
issueId: 1234567890
Resolve an issue:
operation: update-issue
organizationSlug: my-org
issueId: 1234567890
status: resolved
Assign an issue to a team member:
operation: update-issue
organizationSlug: my-org
issueId: 1234567890
assignedTo: [email protected]
List events for an issue:
operation: list-events
organizationSlug: my-org
issueId: 1234567890
limit: 25
statsPeriod: 7d