Datatypes

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

ValueDescription
CZhtkLDpNYXgPH9Ml6shqh2OwykChw invalidSample OAuth2 bearer token from the Discord API reference

Sources

Use this record