Sentry provides several types of authentication credentials. Use the right type for your use case to follow the principle of least privilege and make token rotation easier.Documentation Index
Fetch the complete documentation index at: https://sentrydocs.dev/llms.txt
Use this file to discover all available pages before exploring further.
Token types
Auth token
A personal token tied to your user account. Use for scripts, local tooling, or CI pipelines where you want actions attributed to you.
Organization auth token
A token tied to the organization, not an individual user. Use for CI/CD pipelines, automated tooling, and integrations where a specific person shouldn’t own the credential.
DSNs (Client Keys) are used only for SDK initialization — they allow your application to send events to Sentry. They are not API tokens and cannot be used to call the Sentry REST API.
Auth tokens (user tokens)
Auth tokens are scoped to your user account. Any API action performed with this token is attributed to you.Creating an auth token
Organization auth tokens
Organization auth tokens are not tied to any individual user, which means they keep working when team members leave. They can optionally be scoped to a single organization.Creating an organization auth token
Create a new token
Click Create New Token and give it a descriptive name (for example,
ci-release-upload).Select scopes
Choose the scopes required for your use case. Organization auth tokens use the same scope list as user auth tokens.
Scope reference
Assign the minimum set of scopes your integration needs.Project scopes
Project scopes
| Scope | Access |
|---|---|
project:read | Read project settings, list projects |
project:write | Modify project settings |
project:admin | Delete projects, manage project keys |
project:releases | Upload release artifacts and source maps |
project:distribution | Manage release distributions |
Team scopes
Team scopes
| Scope | Access |
|---|---|
team:read | List teams and team members |
team:write | Create and modify teams |
team:admin | Delete teams |
Event scopes
Event scopes
| Scope | Access |
|---|---|
event:read | Read issues and events |
event:write | Update issue status, add comments |
event:admin | Delete events and issues |
Organization scopes
Organization scopes
| Scope | Access |
|---|---|
org:read | Read organization settings and member list |
org:write | Modify organization settings |
org:admin | Transfer or delete the organization |
org:integrations | Install and configure integrations |
Member scopes
Member scopes
| Scope | Access |
|---|---|
member:read | List organization members |
member:write | Modify member settings |
member:admin | Add and remove members |
member:invite | Send invitations to new members |
Alert scopes
Alert scopes
| Scope | Access |
|---|---|
alerts:read | Read alert rules |
alerts:write | Create and modify alert rules |
Using a token in API requests
Pass your token in theAuthorization header as a Bearer token on every request.
- curl
- Python
- Node.js
Revoking tokens
Auth tokens — Go to User Settings > API Tokens, find the token, and click Revoke. Organization auth tokens — Go to Settings > Auth Tokens, find the token, and click Revoke. Revocation takes effect immediately. Any requests using a revoked token will receive a401 Unauthorized response.