Tutorial: Create a Sentry Authentication Token
To use Sentry's APIs, you must have an authentication
See our documentation on authentication to learn more about the different types of authentication tokens available.
- A Sentry account with an organization-level role of Manager or Admin.
Internal integrations are used to create custom Sentry integrations for your organization. They can also be used to create and manage your organization auth tokens.
Click "Settings" in the left menu to open the Organization Settings page.
Click "Custom Integrations" in the left side panel to create a new internal integration and org-level authtokenIn search, a key-value pair or raw search term. Also, a value used for authorization..
Press the "Create New Integration" button.
Make sure "Internal Integration" is selected in the modal and press "Next".
Enter a name for your integration.
Under "Permissions" select the permissions required for the APIs you wish to call.
Each API endpoint docs page lists the required permissions, in the "Scopes" section. For example, the Create a New Project endpoint requiresprojectRepresents your service in Sentry and allows you to scope events to a distinct application.:write permissions or higher.
Click "Save Changes".
Scroll down to the bottom of the page and copy the generatedtokenIn search, a key-value pair or raw search term. Also, a value used for authorization.under "Tokens".
Keep your auth token around on your clipboard or in an environment variable to use in API calls.