API Design · Middle · Question 39 of 75

How should a webhook receiver verify that a request really comes from the provider?

Explanation

Compute the signature over the raw bytes (before JSON parsing) and compare in constant time. Standard Webhooks defines a common scheme.

Further reading

Problem with a question

API Design · Middle · question 39

Test yourself

Take the API Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz