Keys / Sentry

SENTRY_AUTH_TOKEN

The token sentry-cli and your CI use to create releases and upload source maps to Sentry. Sentry recommends an organization token for this.

Starts with
sntrys_
Expires
the docs don't say
API
create and revoke organization tokens, with an OAuth app token

Get it

Create one on sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens. The steps aren't recorded yet.

Set it

SENTRY_AUTH_TOKEN=sntrys_...

Sentry CLI and the Sentry bundler plugins read it from this variable when you don't pass a token. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. Under Settings > Developer Settings > Organization Tokens, create a new token. Sentry shows it once.
  2. Deploy it everywhere that reads SENTRY_AUTH_TOKEN. Both tokens work in the meantime.
  3. Check that nothing still uses the old token, then revoke it. Only organization owners and managers can.

Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.

Sources, checked 2026-11-16