Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/api/auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ The endpoints that require a user authentication token are specific to your user

For third-party applications that need to access Sentry on behalf of users, Sentry supports OAuth2 with the authorization code grant type. This allows users to authorize your application without sharing their credentials.

Before implementing OAuth, Sentry must register your application. Please follow the steps on [this page](/product/partnership-platform/oauth-integration/#partner-registration) to complete your registration.

### Authorization Request

Direct users to the authorization endpoint:
Expand All @@ -45,7 +47,7 @@ https://sentry.io/oauth/authorize/?client_id={CLIENT_ID}&response_type=code&scop
| `client_id` | Yes | Your registered client ID |
| `response_type` | Yes | Must be `code` |
| `scope` | Yes | Space-separated list of [permissions](/api/permissions/) |
| `redirect_uri` | No | Your callback URI (must match registered URI) |
| `redirect_uri` | Yes | Your callback URI (must match registered URI) |
| `state` | No | Random string to prevent CSRF attacks |
| `code_challenge` | Recommended | PKCE challenge (see below) |
| `code_challenge_method` | Recommended | Must be `S256` |
Expand Down
Loading