Authentication

Auth Tokens

Authentication tokens are passed using an auth header, and are used to authenticate as a user account with the API.

Copied
curl -H 'Authorization: Bearer {TOKEN}' https://sentry.io/api/0/projects/

You can find or create authentication tokens within Sentry.

DSN Authentication

Some API endpoints may allow DSN-based authentication. This is generally very limited and an endpoint will describe if its supported. This works similar to Bearer token authentication, but uses your DSN (Client Key).

Copied
curl -H 'Authorization: DSN {DSN}' https://sentry.io/api/0/projects/

API Keys

API keys are passed using HTTP Basic auth where the username is your api key, and the password is an empty value.

As an example, to get information about the project which your key is bound to, you might make a request like so:

Copied
curl -u {API_KEY}: https://sentry.io/api/0/projects/
You can edit this page on GitHub.