How to alter webhook listener HTTP response in Zapier?

Many APIs necessitate supplementary data in the HTTP response for a webhook listener. For instance, I am attempting to register for the push notifications provided by Outlook.com, which involves the process outlined below:

"The notifications service from Outlook seeks to confirm the validity of the notification URL with the designated listener service. It sends a validation token as part of the request.

If the listener service validates the URL appropriately, it must respond within 5 seconds with the following criteria:

Setting the response header's content type to text/plain. Incorporating the same validation token in the response body. Issuing an HTTP 200 status code. The listener can disregard the validation token afterward."

Currently, Zapier returns a 200 status code and captures the validation token from the webhook URL. However, how can I adjust the HTTP response in order to include the validation token for the POST request sent by Microsoft's notification service?

hey, I faced similar situation. You can utilize ‘Code by Zapier,’ write a bit of Python or JS code to craft the desired response including the validationtoken. It gives you flexibility to customize your webhook listener beyond standard Zapier capabilities. hope that helps! :wink: