---
title: "Custom response to webhooks | WebhookRelay"
meta:
  "og:description": "Configure a custom response to your webhooks, some applications require it, for example Facebook webhooks."
  "og:title": "Custom response to webhooks"
  description: "Configure a custom response to your webhooks, some applications require it, for example Facebook webhooks."
---

![Stripes](https://webhookrelay.com/docs/webhooks/custom-webhook-response/images/stripes.svg)

Documentation

**Fundamentals**

# **Custom response to webhooks**

Configure a custom response to your webhooks, some applications require it, for example Facebook webhooks.

## [Returning custom response to 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](#configuring-input)

Go to your bucket details and click on "Response Configuration" next to the input:

![Custom Domains](https://webhookrelay.com/docs/webhooks/custom-webhook-response/images/docs/webhooks/cors/response-config.png)

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](#alternative-option-function)

You can also [create a function](https://my.webhookrelay.com/functions) 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.

Did this page help you?