Delivery behaviour
Read from the vendor's own documentation, last checked 2026-08-06. Where the vendor states no number, this table carries none.
| Response budget | 3s Interaction endpoints must send an initial response within 3 seconds |
|---|---|
| Retry | not published by the vendor |
| Gives up | not published by the vendor |
| Source | https://docs.discord.com/developers/interactions/receiving-and-responding |
Signature
Verified against a working verifier proven by a test suite, not read from documentation. Last verified 2026-08-20.
| Algorithm | Ed25519 |
|---|---|
| Signed payload | {timestamp}{body} |
| Encoding | hex |
| Header | x-signature-ed25519 + x-signature-timestamp |
| Tolerance | none enforced |
Verify it
The raw request body, byte for byte, before any JSON parsing. Every scheme on this page breaks the moment a framework re-serializes the payload.
// Ed25519, not HMAC: verify with the application's public key (hex).
const hex = (s) => Uint8Array.from(s.match(/../g), (b) => parseInt(b, 16));
const key = await crypto.subtle.importKey(
"raw",
hex(publicKey), // Developer Portal → Application → Public Key
{ name: "Ed25519" },
false,
["verify"],
);
const valid = await crypto.subtle.verify(
"Ed25519",
key,
hex(req.headers["x-signature-ed25519"]),
new TextEncoder().encode(req.headers["x-signature-timestamp"] + rawBody),
);Discord actively probes endpoints with invalid signatures and rejects the URL if they pass, so a stubbed-out verifier fails onboarding, not just security review.
What bites
An Interactions Endpoint cannot sit behind a webhook relay: Discord validates that URL by expecting a 200 with a JSON reply, and AnyHook answers with the empty 204 that Webhook Events need, so the URL will not validate. Use AnyHook for Webhook Events and keep interactions on your own server.
The 3-second budget applies to the initial interaction response. The escape hatch is type 5 (deferred): acknowledge inside the window, then follow up when the real work finishes.
Read more
AnyHook sits in front of endpoints that receive from Discord: it answers in about a second, retries on its own schedule when your server is down, and keeps every event replayable. Change one URL, keep your code.