Webhooks Documentation
HMAC Calculation
Add extra verification that your webhook payloads are from Treet.
Webhook clients have the option to set up an HMAC signature with us to validate that the webhook payload is authentically from Treet. To get started, reach out to the Treet team at support@treet.co and express your interest. Afterwards, we will provide you with:
- A secret key which you can use to sign the incoming webhook payload.
- An additional
X-Treet-Signature
header as part of our webhook requests, with a hashed value of the request data.
With the secret key, you may sign the incoming webhook payload and compare it against our Signature header. Here is an example of how the payload can be validated with Node.js and Express: