---
id: "sentry_auth_token"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["secrets"]
langs: ["common"]
quality: 70
url: "http://registry.apicrafter.io/datatype/sentry_auth_token"
---

# Sentry auth token (`sentry_auth_token`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Auth token of Sentry, the error monitoring service. Personal (user) tokens are sntryu_ followed by 64 hexadecimal digits. Organization tokens start with sntrys_, carry a Base64 payload that includes the organization slug, and end with an underscore and 43 characters, about 180 to 250 characters in all. Older tokens without a prefix are plain 64-digit hexadecimal strings and are not covered.

- Parent datatype: `access_token`
- Personal data (PII): no
- Categories: Secrets and credentials (passwords, keys, tokens) (secrets)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:sntryu_[a-f0-9]{64}|sntrys_[A-Za-z0-9+/=]+_[A-Za-z0-9+/]{43})$
```

## Examples

- `sntryu_ExampleTokenNotReal` (invalid example) — Too short

## Supported by tools

- `gitleaks`
- `trufflehog`

## Sources

- doc: <https://docs.sentry.io/security-legal-pii/security/token-formats/>
- other: <https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml>
- other: <https://github.com/trufflesecurity/trufflehog/blob/main/pkg/detectors/sentryorgtoken/sentryorgtoken.go>
- other: <https://github.com/trufflesecurity/trufflehog/blob/main/pkg/detectors/sentrytoken/v2/sentrytoken.go>

## Quality

Score 70/100. Missing: examples, mapping (Wikidata, Schema.org, ...), translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/sentry_auth_token.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/sentry_auth_token.yaml>
