X (Twitter) API bearer token
ID twitter_bearer_token
DatatypeNot PIIidentifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
App-only bearer token of the X (Twitter) API. X describes the token as a byte array of unspecified format; the regexp follows the gitleaks rule, which expects 22 letters A followed by 80 to 100 letters, digits and percent signs, as in the sample responses in the X documentation.
- Parent datatype
- Access token
access_token - Categories
- Secrets and credentials (passwords, keys, tokens)
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 65/100 · missing: examples, negative example, mapping (Wikidata, Schema.org, ...), translation
- Metacrafter rules
- no detection rule yet
- Supported by tools
- Datadog Sensitive Data Scanner, Gitleaks
Regular expression
^A{22}[A-Za-z0-9%]{80,100}$
Python re syntax.
Sources
- doc: https://docs.x.com/fundamentals/authentication/oauth-2-0/bearer-tokens
- other: https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/twitter_bearer_token - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/secrets/twitter_bearer_token.yamlon GitHub