Prerequisites
- Sentry account with at least one organization
- Auth token with
event:readscope
Setup
Option 1: Interactive CLI
Option 2: Environment variables
Add to your.env:
Option 3: Persistent store
Creating an auth token
Recommended: Organization Token- In Sentry, go to Settings → Developer Settings → Organization Tokens
- Click Create New Token
- Enable the
event:readscope - Copy the token
The organization slug appears in your Sentry URL:
https://sentry.io/organizations/<slug>/Verify
Troubleshooting
Security best practices
- Use an Organization Token with only
event:read— do not use admin tokens. - Store the token in
.env, not in source code. - Rotate tokens periodically.
Tracer