This post covers constructing an HMAC SH256 Base 64-encoded request via Postman to send test requests to Celigo webhooks. You must use a Pre-request Script to successfully send the request.
Please note that this solution is out of scope for our Support teams, and Celigo cannot assist with third-party applications and solutions.
- Create your webhook listener in integrator.io. In this example, we've made the Key (secret) field: secret
- In Postman, use the following code to hash the message and encode the hash. Note that the encoding method and hash function used here is from the CryptoJS library, as the algorithm and encoding method should match what you've configured from the webhook.
postman.setEnvironmentVariable("hmac", CryptoJS.enc.Base64.stringify(CryptoJS.HmacSHA256(request.data, 'secret')).toString(CryptoJS.digest));
The POST URL should include your export ID. For example:
Example Pre-request Script in Postman:
Example headers in Postman:
Example test with JSON data:
Example success message:
Please sign in to leave a comment.