Guide
API operations
Webhook security basics
How to receive webhooks without trusting the open internet: signatures, timestamps, HTTPS and idempotent handlers.
Anyone can POST to a public URL
A webhook endpoint is a door. Webhook security is how you decide the request really came from the vendor and is safe to apply once.
Baseline controls
- HTTPS only (TLS).
- Signature verification using the vendor’s documented scheme (often an HMAC over the raw body). Compare hashes in constant time. Do not invent your own “secret in a query string.”
- Timestamp window to limit replay.
- Idempotency on event ids (API idempotency).
- Fast 2xx; heavy work on a queue.
This is defensive guidance, not an attack guide. See webhooks explained.
Related
Last verified: August 2026. Technology and pricing change — always confirm current details with the vendor.