All tools / Commands
Interaction Ed25519 signature verifier
Verify X-Signature-Ed25519 and X-Signature-Timestamp against your app's public key in the browser with WebCrypto.
Result
timestamp + body
Discord signs the timestamp header concatenated with the raw body. Re-serialized JSON, trimmed whitespace, or a body parser that runs first will break verification. Only the public key is needed; never paste your bot token or client secret here. Discord also sends deliberately invalid signatures to check that your endpoint answers 401.
Related: Interaction endpoint URL · Interaction response type picker