Skip to content

Managed secret providers

Sentry (API Key)

Connect Sentry to Alter Vault using an auth token for secure API access

Use Sentry credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDsentry
CategoryMonitoring & Observability
Credential TypeBearer Token

Log in to Sentry

Log in to Sentry at sentry.io.

Go to Settings → Account → API → Auth Tokens

Go to Settings → Account → API → Auth Tokens at sentry.io/settings/account/api/auth-tokens/.

Create a new token

Click ‘Create New Token’ and configure scopes.

Copy your auth token

Copy the generated auth token (personal tokens start with sntryu_, organization tokens with sntrys_).

Enter hostname if self-hosted

If using a self-hosted instance, enter the hostname in the Sentry Hostname field.

Open the Developer Portal

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

Add Sentry

Go to Managed Secrets > Add Provider > Sentry.

Enter credentials

Paste your Auth Token into the credential field. If using a self-hosted instance, also enter your Sentry hostname in the Sentry Hostname field.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.GET,
"https://YOUR_SENTRY_HOST/api/0/projects/",
grant_id="YOUR_GRANT_ID", # Use sentry.io for cloud or your self-hosted hostname
)