NBI-Signature header. Check it before you trust the request, so you know it came from NowBookIt and wasn’t changed on the way.
How to check it
- Take
t(the time the request was sent) andv1(the signature) from the header. - Join
t, a dot, and the request body exactly as you received it, e.g.1792675202.{"eventId":...}. - Create an HMAC-SHA256 of that text using your signing secret (including
whsec_). - If it matches
v1, the request is genuine. Also reject requests wheretis more than 5 minutes old.
Use the body exactly as it arrived. If your framework parses the JSON first, the signature won’t match. See Reading the raw body.