DocumentationFundamentals
Custom response to webhooks
Configure a custom response to your webhooks, some applications require it, for example Facebook webhooks.
Returning custom response to webhooks
Some applications expect a response when they send a webhook. This can be a special header, body or status code.
Configuring input
Go to your bucket details and click on "Response Configuration" next to the input:

There, you can configure:
- Choose - dynamic response from output, this will return a response from any output that responds within 10 seconds. Your server can return any payload here.
- Static response - you can response status code, body and headers.
Once selected, click "Save"
Alternative Option - Function
You can also create a function to return a custom response to a webhook. Go to your functions page and click on "Create Function" button.
r:SetResponseStatusCode(200)
r:SetResponseHeader("Content-Type", "application/json")
r:SetResponseBody("{\"message\":\"Webhook received\"}")
This function needs to be attached to the input. Functions that are attached to the output cannot modify the response.
