Skip to content

OAuth providers

Sentry

Set up Sentry OAuth for error monitoring and project management

Connect your users to Sentry for error monitoring, performance tracking, and project management.

PropertyValue
Provider IDsentry
PKCESupported
Token refreshAutomatic (refresh token reused)
Access token lifetime30 days
Redirect URIShown in Developer Portal

Go to Sentry API Applications

Navigate to sentry.io and go to Settings > Account > API > Applications, or go directly to sentry.io/settings/account/api/applications/.

Create a new application

Click Create New Application and select Confidential as the application type.

Fill in:

  • Name: The application name (e.g., “My App”)
  • Redirect URIs: Copy the Redirect URI from the Developer Portal

Configure scopes

Select the required scopes for the application. See Available Scopes below.

Get credentials

After saving:

  • Client ID: Displayed on the application page
  • Client Secret: Displayed on the application page

Copy both values.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Sentry provider

Go to OAuth Providers > Add Provider > Sentry.

Enter credentials

  • Client ID: Paste your Sentry Client ID
  • Client Secret: Paste your Sentry Client Secret

Select scopes

Choose the scopes the application needs.

Save

Click Save. The provider is now active.

After a user connects via Alter Connect, use the returned grant_id to make API calls:

from alter_sdk import App, HttpMethod
async with App(
api_key="alter_key_...",
caller="my-agent",
) as alter_app:
response = await alter_app.request(
HttpMethod.GET,
"https://sentry.io/api/0/organizations/",
grant_id=grant_id,
)
orgs = response.json()
for org in orgs:
print(f"{org['name']} ({org['slug']})")

Sentry scopes follow a hierarchy: admin > write > read. Requesting a higher level automatically includes lower levels.

ScopeDescription
org:readRead organization data
org:writeModify organization information
org:adminFull organization control including deletion
ScopeDescription
project:readView project details
project:writeCreate or modify projects
project:adminFull project management including deletion
project:releasesManage project and organization releases
ScopeDescription
team:readView team information
team:writeCreate or modify teams
team:adminFull team management including deletion
ScopeDescription
member:readView member details
member:writeAdd or modify members
member:adminFull member management including deletion
ScopeDescription
event:readView issues and events
event:writeModify issues
event:adminDelete issues
Use CaseMethodURL
List organizationsGEThttps://sentry.io/api/0/organizations/
List projectsGEThttps://sentry.io/api/0/organizations/{org_slug}/projects/
List issuesGEThttps://sentry.io/api/0/projects/{org_slug}/{project_slug}/issues/
Get issue detailsGEThttps://sentry.io/api/0/issues/{issue_id}/
List releasesGEThttps://sentry.io/api/0/organizations/{org_slug}/releases/
Resolve an issuePUThttps://sentry.io/api/0/issues/{issue_id}/
  • Access tokens expire after 30 days. Alter Vault automatically refreshes them using the refresh token.
  • Sentry’s refresh token is reused (same token persists across refreshes), similar to Google’s pattern.
  • Sentry scope permissions in the application settings must match the scopes requested. If a scope that the application doesn’t have permission for is requested, the authorization will fail.
  • The default scopes (org:read, project:read, team:read, event:read) provide read-only access, which is sufficient for most monitoring use cases.