Skip to main content

Documentation Index

Fetch the complete documentation index at: https://sentrydocs.dev/llms.txt

Use this file to discover all available pages before exploring further.

All requests to the Sentry REST API must include an auth token. Sentry uses bearer token authentication — pass your token in the Authorization header on every request.

Base URLs

RegionBase URL
UShttps://sentry.io
EUhttps://de.sentry.io
All endpoints are relative to these base URLs. For example, the full path for /api/0/organizations/ on the US region is https://sentry.io/api/0/organizations/.

Auth tokens

Pass your token as a bearer token in the Authorization header:
curl https://sentry.io/api/0/organizations/my-org/issues/ \
  -H "Authorization: Bearer sntrys_TOKEN"
Sentry has two types of auth tokens:

User auth tokens

User auth tokens are personal tokens tied to your Sentry account. You can create and manage them at User Settings > API Tokens. These tokens carry the same permissions as your user account and act on your behalf. Use user auth tokens for personal scripts, local tooling, or any integration that should run as a specific user.

Organization auth tokens

Organization auth tokens are scoped to a single organization and are not tied to any individual user account. Create them at Settings > Auth Tokens within your organization. Use organization auth tokens for CI/CD pipelines, automated tooling, and integrations where you want access tied to the organization rather than a person. Organization auth tokens have the prefix sntrys_.

Token scopes

When you create a token, you select which scopes it has access to. The API returns a 403 Forbidden if you try to call an endpoint your token is not scoped for.
ScopeDescription
project:readRead project data
project:writeCreate and update projects
project:adminDelete projects and manage settings
org:readRead organization data and membership
org:writeUpdate organization settings
org:adminManage organization membership and billing
team:readRead team data
team:writeCreate and update teams
team:adminDelete teams and manage membership
event:readRead issues and events
event:writeUpdate issues (resolve, assign, ignore)
event:adminDelete issues and events
member:readRead organization member data
member:writeInvite and remove members
Grant only the scopes your integration actually needs.

Error responses

StatusMeaning
401 UnauthorizedNo token was provided, or the token is invalid or expired.
403 ForbiddenThe token is valid, but it does not have the required scope for this endpoint.
DSN (Data Source Name) authentication is used exclusively by Sentry SDKs to ingest events. DSNs do not work for the REST API.