Skip to main content
Display information about your current authentication status, including whether you’re logged in and your default organization/project settings.

Usage

sentry auth status [options]

Description

Display comprehensive information about your current authentication status:
  • Authentication source (OAuth, API token, or environment variable)
  • User identity
  • Token information (masked by default)
  • Token expiration and auto-refresh status
  • Default organization and project settings
  • Credential verification via live API call
The command verifies your credentials by fetching the list of organizations you have access to.
Unlike sentry auth whoami, this command shows detailed token information, expiration status, and default settings in addition to user identity.

Options

--show-token
boolean
default:"false"
Show the stored token in full instead of masking it. Use with caution as this exposes your authentication token.

Examples

View authentication status

sentry auth status
Expected output:
Config: ~/.sentry/config.db
Status: Authenticated ✓
User: [email protected] (username)

Token: sntrys_eyJ*********************Xjw (masked)
Expires: in 6 days
Auto-refresh: enabled

Defaults:
  Organization: my-org
  Project: my-project

Verifying credentials...

✓ Access verified. You have access to 3 organization(s):
  - My Organization (my-org)
  - Another Org (another-org)
  - Test Org (test-org)

Show full token

sentry auth status --show-token
Expected output:
Config: ~/.sentry/config.db
Status: Authenticated ✓
User: [email protected] (username)

Token: sntrys_eyJpYXQiOjE3MzUwNjQ2MjMsInVybCI6Imh0dHBzOi8vc2VudHJ5LmlvIiwidXNlcl9pZCI6NzM0NTY3LCJyZWdpb24iOiJ1cyJ9Xjw
Expires: in 6 days
Auto-refresh: enabled

Defaults:
  Organization: my-org
  Project: my-project

Verifying credentials...

✓ Access verified. You have access to 3 organization(s):
  - My Organization (my-org)
  - Another Org (another-org)
  - Test Org (test-org)

Status with environment variable authentication

SENTRY_AUTH_TOKEN=sntrys_xxx sentry auth status
Expected output:
Status: Authenticated via SENTRY_AUTH_TOKEN environment variable ✓
User: [email protected] (username)

Token: sntrys_xxx

Defaults:
  Organization: my-org

Verifying credentials...

✓ Access verified. You have access to 2 organization(s):
  - My Organization (my-org)
  - Test Org (test-org)
The status command shows up to 5 organizations. If you have access to more, the list will be truncated with a count of additional organizations.
Environment variable tokens (SENTRY_AUTH_TOKEN, SENTRY_TOKEN) do not have expiration or auto-refresh capabilities. The status output will omit these fields when authenticated via environment variables.

Build docs developers (and LLMs) love