Hi Team,
We are trying to build a zapier app where we want to use Rest Hook mechanism to fire the triggers. Here the challenge we are facing is that our Backend System, by design, validates the webhook Url provided to its subscribe API. To validate the webhook URL our backend does the following on receiving the subscribe API call:
- Generates a random token
- Sets this token against a custom key in header, say “Validation-Token”
- Calls the webhook URL with above request header
- Expects a 200 response and the same token in the response header.
You can also refer the official documentation here: https://ringcentral-quickstart.readthedocs.io/en/latest/webhooks/
To achieve the above contract, we will require to alter the webhook output/response. But I don’t see any way to do this in zapier documentation. For reference, I can see below kind of response being returned by zapier webhook url
{
"id": "6dc1225c-6de1-46ea-8794-e2d4960fc62a",
"request_id": "61b88ed5-f683-4a70-aa0b-16ee7218bc40",
"attempt": "61b88ed5-f683-4a70-aa0b-16ee7218bc40",
"status": "success"
}
I can see this problem being faced by many app developers as many backend systems incorporate this kind of validation in their subscribe API, like below:
https://community.zapier.com/general-questions-3/connecting-with-kaizala-s-webhooks-692?postid=3170#post3170
https://stackoverflow.com/questions/38467286/zapier-modification-of-webhook-listener-http-response
Please confirm if zapier provides this capability to alter webhook output/response. Also, suggest if there is any way around for this kind of integration.
Regards,
pryrnjn