Sentry API: what you can do and how to use it with AI agents
The Sentry API gives access to issues, error events, releases, projects and teams, and lets you update the state of problems. Engineering teams that monitor application errors and performance use it. Access is through an auth token or an internal integration, with defined scopes.
What the Sentry API offers
Issues
Listing, details, assigning, resolving and ignoring grouped problems.
Events
Individual occurrences with stack trace, tags and context.
Releases
Versions, associated commits and deploys.
Projects and teams
The organization structure and the people responsible.
Alerts
Alert rules and when they fire.
Webhooks
Notices of issues created and resolved, and alerts, for integrations.
How to access the Sentry API
- Public APIA user auth token, or one from an internal integration of the organization, with scopes such as reading events and writing issues, sent as a bearer token.
- Events can hold personal data, so configure data scrubbing in Sentry under your data-protection law.
- Respect the API request limits.
- Use minimal scopes on the integration.
Official documentation: docs.sentry.io/api
What an iTeam agent does with the Sentry API
New error with an owner
When a new issue appears, the agent reads the stack trace, identifies the module and assigns it to the responsible team with a summary.
Regression after a deploy
The agent compares errors before and after the release and says if something has come back.
Customer ticket linked to the error
Support describes the problem, and the agent finds the matching Sentry issue by user and time.
Issue turned into a ticket
High-impact errors become tasks in Jira or GitHub, with a link and context.
From the credential to the agent at work, with approval
Create an internal integration
In the Sentry organization, set minimal scopes, such as reading events and writing issues.
Store it in the iTeam vault
The token stays in the vault, and each agent only assigns or comments, without deleting projects.
Test with approval
Resolving or ignoring issues in bulk goes through human approval.
Ready-made AI teams for this work
Questions about the Sentry API
Is the Sentry API free?
In general, the API is available on Sentry plans, including the entry plan. The volume of events follows the plan.
Do I need to code to use the Sentry API with iTeam?
Not necessarily. Sentry is in the iTeam app catalog, and the deployment team sets up the workflows.
Does it work with self-hosted Sentry?
Yes, by pointing to the URL of your instance, as long as iTeam can reach it.