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?