All Questions
Api Design medium

Your API sends webhooks to customer endpoints. How do customers verify the webhook is genuinely from you?

  1. A Sign the payload with an HMAC-SHA256 signature using a shared secret and include the resulting digest in a custom request header for verification.
  2. B Verify the sender's origin IP address against a publicly published list of the service provider's static IP ranges or CIDR blocks.
  3. C Require the webhook sender to provide standard HTTP Basic Authentication credentials that are unique to each customer's receiver endpoint.
  4. D Rely on the inherent encryption provided by the TLS handshake to ensure that the webhook data was not intercepted or altered during transit.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions