- Documentation
- Integrations
- Apps
- Sentry integration
Sentry integration
Triage Sentry issues, manage projects, teams and releases, and react to alerts and error events across your clients' Sentry organizations.
What it does
The Sentry integration lets your agency run a client's error monitoring from inside a workflow. Connect a client's Sentry organization once and your workflows can triage issues (resolve, assign, bookmark, delete), read the events behind them, set up projects, teams and client keys (DSNs) for a new client, and record releases and deploys from your CI. Five webhook triggers start a workflow when an issue alert or metric alert fires, an issue is created or changes state, an error event arrives, or someone comments on an issue.
Organization, team, project and environment fields are dropdowns filled from the connected account, so you pick a project instead of typing its slug. Every dropdown also accepts a mapped value from an earlier step.
Connect a Sentry account
Sentry authenticates with a token. You can use either kind:
- Internal integration token (recommended). It belongs to the organization rather than a person, and you need an internal integration anyway for the triggers. In Sentry, open Settings → Developer Settings → Custom Integrations, click Create New Integration, choose Internal Integration, and grant the permissions your workflows need: Project (Read & Write, or Admin to delete projects), Team (Read & Write, or Admin to delete teams), Release (Admin), Issue & Event (Read & Write, or Admin to delete issues), Organization (Read, or Write to update settings) and Member (Read). Save, then copy the token from the integration page.
- Personal token. Open User Settings → Personal Tokens, create a token with the matching scopes (
org:read,org:write,project:read,project:write,project:admin,project:releases,team:read,team:write,team:admin,member:read,event:read,event:write,event:admin), and copy it. It stops working if that person leaves the organization.
Then:
- Open your workspace in TaskJuice and go to Connections.
- Choose Sentry and click Connect.
- Paste the token and enter the organization slug (the
acme-coinacme-co.sentry.ioorsentry.io/organizations/acme-co/), and save.
The connection reaches Sentry SaaS at sentry.io. Self-hosted Sentry is not supported.
Triggers
Sentry has no API for registering webhooks, so you set the subscription up by hand on the internal integration. One integration delivers every resource to the same URL, and TaskJuice routes each delivery to the right trigger by the Sentry-Hook-Resource header.
sentry-app/issue-alertfires when an issue alert rule runs this integration as an action, with the event that matched and the rule name.sentry-app/metric-alertfires when a metric alert changes state (critical, warning or resolved).sentry-app/issue-changedfires when an issue is created, resolved, assigned, archived or unresolved. Theactionfield says which.sentry-app/error-eventfires for every error event Sentry ingests, not only the first one of an issue. Sentry offers this resource only on its Business and Enterprise plans.sentry-app/issue-commentfires when a comment on an issue is created, updated or deleted.
To set them up:
- Add the trigger to a workflow and copy the webhook URL shown on it.
- In Sentry, open your internal integration (Settings → Developer Settings → Custom Integrations) and paste the URL into Webhook URL.
- Under Webhooks, tick the resources your triggers use:
issuefor Issue Created or Updated,errorfor Error Event Created,commentfor Issue Comment. These need the Issue & Event permission. - For Issue Alert and Metric Alert, turn on Alert Rule Action, save, then add the integration as an action on the alert rules that should start the workflow.
- Copy the integration's Client Secret and paste it into the trigger's signing secret field. Sentry signs every delivery with HMAC-SHA256 over the raw body (the
Sentry-Hook-Signatureheader), and TaskJuice rejects a delivery whose signature does not match.
Actions
Issues and events
sentry-app/list-issueslists an organization's issues, optionally narrowed to one project, an environment, a search query (for exampleis:unresolved) and a stats period.sentry-app/get-issuereturns one issue by ID or short ID (for exampleACME-123), with counts and status.sentry-app/update-issueresolves (now or in the next release), ignores, unresolves, reassigns or bookmarks an issue. Send only the fields you want to change.sentry-app/delete-issuedeletes an issue and all its events. Sentry deletes in the background.sentry-app/list-issue-eventslists the events grouped under an issue.sentry-app/list-project-eventslists the error events a project captured.sentry-app/get-eventreturns one event by its 32-character event ID.sentry-app/list-tag-valueslists the values recorded for a tag key on a project, such asbrowserorrelease.sentry-app/list-project-userslists the end users seen in a project's events.
Projects and client keys
sentry-app/list-projectslists every project the token can reach.sentry-app/get-project,sentry-app/create-project,sentry-app/update-projectandsentry-app/delete-projectmanage projects. A new project is created inside a team you pick.sentry-app/create-project-keycreates a client key and returns its DSN, ready to hand to an SDK.sentry-app/list-project-keyslists a project's client keys with their DSNs.
Releases and deploys
sentry-app/list-releases,sentry-app/get-release,sentry-app/create-release,sentry-app/update-releaseandsentry-app/delete-releasemanage releases. Create Release takes the projects it belongs to from a multi-select.sentry-app/create-deployrecords that a release was deployed to an environment, so Sentry can tie new issues to the deploy that shipped them.
Organizations, teams and members
sentry-app/list-organizations,sentry-app/get-organizationandsentry-app/update-organizationread and change organization settings.sentry-app/list-organization-teams,sentry-app/get-team,sentry-app/create-team,sentry-app/update-teamandsentry-app/delete-teammanage teams, andsentry-app/list-team-projectslists a team's projects.sentry-app/list-organization-memberslists the organization's members.sentry-app/list-organization-repositorieslists the code repositories connected to the organization.
Known limitations
- The webhook subscription is manual (see Triggers). Each client organization needs its own internal integration.
- The
errorwebhook resource is available only on Sentry's Business and Enterprise plans. On Developer and Team plans, use Issue Alert or Issue Created or Updated instead. - Sentry expects a webhook response within one second.
- List actions return one page. To read the next page, pass the
cursorfrom the previous response'sLinkheader. - Dropdowns show the first 100 projects or teams. For a larger organization, map the slug instead.
- Sentry rate-limits per organization and answers
429when you exceed it. TaskJuice retries429responses with backoff.