Skip to main content
Fetch and display the identity of the currently authenticated user.

Usage

sentry auth whoami [options]

Description

Display the currently authenticated user’s identity by fetching live from the Sentry API. Unlike sentry auth status, this command only shows who you are — no token details, no defaults, no org verification. This calls the Sentry API live (not cached) so the result always reflects the current token. Works with all token types: OAuth, API tokens, and OAuth App tokens.
This is a top-level alias for convenience. You can also run sentry whoami without the auth subcommand.

Options

--json
boolean
default:"false"
Output as JSON. The JSON format includes id, name, username, and email fields.

Examples

Show current user

sentry auth whoami
Expected output:
[email protected] (username)

JSON output

sentry auth whoami --json
Expected output:
{
  "id": "734567",
  "name": "John Doe",
  "username": "johndoe",
  "email": "[email protected]"
}

Using top-level alias

sentry whoami
Expected output:
[email protected] (username)
Use whoami for a quick identity check. For comprehensive authentication details including token status and defaults, use sentry auth status instead.

Build docs developers (and LLMs) love