Learn how to authenticate the Channel Manager Webhooks events in your integration.
sign_secret
value you received when you registered your webhook endpoint.
The signature of the event is generated using the HMAC-SHA256 algorithm with the sign_secret
value as the key and the event payload (stringified) as the input.
Here is an example of how to verify the event signature in Node.js:
X-Webhook-Signature
HTTP header of the event request. You can use this value to verify the event signature and ensure that the event was sent by the Channel Manager API.
If you are using a body parser middleware in your application, make sure to parse the request body after verifying the signature or stringify the request body before passing it to the verifySignature
function.