Discord bot token
ID discord_bot_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).
Token that authenticates a Discord bot to the Discord API, sent in the header Authorization: Bot <token>. It has three Base64url parts separated by dots; the first part encodes the bot's user ID. Discord documents the format only by example; the regexp follows the structure of the documented sample and the part lengths that secret scanners expect.
- 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
- 70/100 · missing: examples, mapping (Wikidata, Schema.org, ...), translation
- Metacrafter rules
- no detection rule yet
- Supported by tools
- Datadog Sensitive Data Scanner, GitGuardian, GitHub secret scanning, pyWhat
Regular expression
^[A-Za-z0-9_-]{23,28}\.[A-Za-z0-9_-]{6}\.[A-Za-z0-9_-]{27,}$
Python re syntax.
Examples
| Value | Description |
|---|---|
| CZhtkLDpNYXgPH9Ml6shqh2OwykChw invalid | Sample OAuth2 bearer token from the Discord API reference |
Sources
- doc: https://docs.discord.com/developers/reference#authentication
- other: https://github.com/bee-san/pyWhat/blob/main/pywhat/Data/regex.json
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/discord_bot_token - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/secrets/discord_bot_token.yamlon GitHub