# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.whapi.cloud/help-desk/account/customizable-webhook-headers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
