Skip to main content
Browse Documentation

Webhook custom headers

Created by r.saunders, last modified by r.bromley on 08 Apr 2021

You can specify custom headers that Contensis will use while sending the payload to the specified webhook endpoint. Custom headers give the destination application an option to authenticate your webhook requests, and reject any that do not contain these custom headers.

Header types

Contensis supports two types of user-defined headers. Headers and secret headers. Both types use key-value parameters that are sent as part of the webhook request.

Header

A standard header contains a key-value pair that can been added to a webhook. The values of these key-value pairs are visible and updatable in the webhook editor.

Secret header

A secret header is ideal for adding sensitive key-values pairs like those used for adding client IDs and shared secrets. Once a secret header has been added to a webhook, the value of the secret header is not displayed in the interface and cannot be changed.

System headers

The following headers are generated by the webhook service and will be sent with all requests.

Key Value
content-length Numeric value depending on the length of the payload.
content-type application/json; charset=utf-8

Note: The content-type header can be overridden by adding a header with the key of content-type and the specifc content type you want to use. This is especially useful if you want to send an XML payload, so you could set the value as application/xml.

Setting a custom header

To set a header, locate the headers field in the webhook that you are editing.

  • Press the green Add button. A menu will be shown displaying the types of supported header.
  • Choose a header type that you want to set.
  • A window will be displayed where you can enter the key-value pair for the header.
  • Press Add header, for the header to be added to the list of headers.
  • Save your changes for the new header to be set as part of the webhook.
Necessary Cookies
These cookies are necessary for this website to function correctly. They are set when you perform certain actions on the site, such as creating an account, logging in, changing your privacy preferences or submitting a form. You can block these cookies in your browser, but this will stop parts of the site from working properly.
Functional Cookies
These cookies allow the website to provide extra functionality and more personalised experiences. They may be set by us or by third party providers whose services we have added to our pages. If you choose not to allow these cookies, these services may not work correctly.
Analytical Cookies
These cookies record anonymous data on how visitors use our website to help us monitor how well our website works. This data includes how many people have looked at specific pages, how long visitors stay on the site, and what devices they use. We use this data to identify changes that we could make to improve your experience and make our website more efficient.
Marketing Cookies
We set some cookies so you are shown more relevant marketing content. These include cookies from third-party advertising networks to show you different adverts on their services if you have previously visited our site. If you choose not to allow these cookies, you may experience less relevant advertising on other sites.