Customizable Webhook Headers
Custom callback headers. Now you will be able to add any custom header and token to increase security
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.
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>"
}
]
}
'

Last updated
Was this helpful?