WhatsApp Cloud API webhooks: verify token, signatures and retries
Build a WhatsApp Cloud API webhook endpoint that passes the verification GET, checks X-Hub-Signature-256 on the raw body, answers 200 fast and survives up to seven days of retries without duplicate replies.
Slack Events API over HTTP: URL verification, request signing and retries
Point the Slack Events API at your own HTTPS endpoint. Answer the url_verification challenge, verify the v0 signature on the raw body, acknowledge in three seconds and handle retries without doing work twice.
Discord interactions over HTTP: endpoint URL and Ed25519 checks
Discord can deliver slash commands, buttons and modals to a plain HTTPS endpoint instead of a Gateway connection. Learn how to answer the PING, verify the Ed25519 signature and reply within the time limit.
Idempotent message handling for bots: IDs, retries and duplicates
Platforms deliver the same event more than once. Key Telegram update_id, Discord interaction and message IDs, and WhatsApp wamids so retries never run your side effects twice.
How to choose and rotate a webhook signing secret
Use a CSPRNG, store it like a password, and rotate with overlap.
Keep JSON fixtures for bot webhook tests
Record anonymized payloads once and replay them in CI.