# Customizable Webhook Headers

We've added a new "headers" parameter to channel settings, allowing you to set custom headers in callbacks. This enhancement in the "/settings" endpoint offers greater flexibility and control. Now you will be able to add any custom header and token to increase security.

{% embed url="<https://whapi.readme.io/reference/updatechannelsettings>" %}
Add custom callback headers in channel settings
{% endembed %}

```
curl --request PATCH \
     --url https://gate.whapi.cloud/settings \
     --header 'accept: application/json' \
     --header 'authorization: Bearer sliU224t0HqeUnjPapv7WHvkqUki3XkO' \
     --header 'content-type: application/json' \
     --data '
{
  "webhooks": [
    {
      "events": [
        {
          "type": "messages",
          "method": "post"
        }
      ],
      "mode": "body",
      "headers": {
        "customheader": "test"
      },
      "url": "<Webhook URL, http or https>"
    }
  ]
}
'
```

<figure><img src="https://support.whapi.cloud/~gitbook/image?url=https%3A%2F%2F2417185145-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhsdgGmVCG31mEaHyRvxC%252Fuploads%252FxmZmihroY3Dzbx5IcIrd%252Fimage.png%3Falt%3Dmedia%26token%3Dc01dc389-6124-4439-85a7-5d781b04be5e&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=6d5a7dfe586e50417048b2f9b03162159a67fb664e470328a577d345fc5d3195" alt=""><figcaption><p>Callback Headers</p></figcaption></figure>
