Authenticate to the Sentry Web API: choose the right token type (organization/internal-integration vs user token) and pass it correctly

domain: sentry.io · 7 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Choose token type: organization auth tokens (recommended for automation, created via internal integrations), user auth tokens, or OAuth2. Docs: https://docs.sentry.io/api/auth/ and https://docs.sentry.io/api/guides/create-auth-token/
  2. For organization/internal-integration tokens: in sentry.io go to Organization Settings > Custom Integrations > Create New Integration > Internal Integration, set name and the permissions you need. These tokens are not linked to a user account — ideal for service-to-service automation.
  3. For user tokens: generate in user account settings. Scopes cannot be changed after creation — plan them before generating.
  4. Scopes for issue work: event:read (read issues/events), event:write (update status/assign), event:admin (delete). Full matrix: https://docs.sentry.io/api/permissions/
  5. Pass the token on every request: curl -H 'Authorization: Bearer {TOKEN}' https://sentry.io/api/0/...
  6. Base URL is https://sentry.io/api/0/ (self-hosted instances substitute their own domain).
  7. Smoke-test the token: GET https://sentry.io/api/0/organizations/ should return 200 with your org list.

Known gotchas

Give your agent this knowledge — and 16,400+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans