Set up and configure a HTTP Webhook destination in RudderStack.
5 minute read
This guide will help you set up a HTTP Webhook destination in the RudderStack dashboard. It also lists the configuration settings required to correctly send data from the supported sources to your HTTP Webhook destination.
Select the authentication method used while configuring your HTTP webhook endpoint. RudderStack supports the below authentication types:
No Auth
Basic Auth
Bearer Token
API Key
Depending on the selected authentication type, configure the below settings:
Auth type
Setting
No Auth
Not applicable
Basic Auth
Username
Password
Bearer Token
Token
API Key
Key
Value
Method
Select the HTTP method of the request sent to the configured endpoint from the dropdown. By default, RudderStack uses the POST method to send the events.
Body Format
Select the body format for your HTTP webhook endpoint. RudderStack supports the following body formats:
JSON
XML
FORM
Event configuration settings
Click Set up mapping to configure the event mappings, query parameters, and headers sent to the HTTP webhook endpoint.
This setting lets you map the RudderStack event properties to a specific destination field.
Note that the values specified in the Key field must be strictly a JSONPath, whereas the values specified in the Value field can be either a JSONPath or constant. Some examples of valid and invalid values are shown below:
Key
Value
Notes
$.messageType
$.type
Valid key and value
$.properties.firstName
$traits.fn
Valid key and value
properties.value
100
Invalid key, valid value
$.properties.currency
"EUR"
Valid key, invalid value
XML Root Key setting
If you set the Body Format to XML, then you can specify the root key used as a common prefix for all the field mappings defined in this section.
See the end-to-end example more information on how this setting translates into the final event payload sent to the destination.
Request URL
This setting lets you configure the Path and Query parameters that RudderStack appends to your configured HTTP URL.
Note the following while specifying the path and query parameters:
The values specified as path parameters must be either JSONPath or constants.
For query parameters, the values specified in the Key field must be strictly a constant, whereas the values specified in the Value field can be either a JSONPath or constant.
Some examples of valid and invalid values for these parameters are shown below:
Path parameters
Path
Notes
$.event.customerId
Valid path
order
Valid path
"order"
Invalid path
Query parameters
Key
Value
Notes
key
value
Valid key and value
name
$traits.firstName
Valid key and value
$.messageType
100
Invalid key, valid value
key
"value"
Valid key, invalid value
Example
Suppose the API URL configured in the RudderStack dashboard is https://example.com/ and you specify the path and query parameters, as follows:
Path parameters in sequence: path, $.userId
Query parameters: key, value
Then, the final generated URL is https://example.com/path/$.userId?key=value.
Headers
This setting lets you add custom headers to your events as per your requirement.
Note that the values specified in the Key field must be strictly a constant, whereas the values specified in the Value field can be either a JSONPath or constant. Some examples of valid and invalid values are shown below:
Key
Value
Notes
content-type
application/json
Valid key and value
"content_type"
$.content_type
Invalid key, valid value
properties.value
100
Invalid key, valid value
Authorization
"event.apiKey"
Valid key, invalid value
RudderStack also adds the below header for all the requests by default:
Key
Value
user-agent
RudderLabs
Configuration settings
Configure the below settings to receive your data correctly in your HTTP Webhook destination.
Setting
Description
Enable Batching
Toggle on this setting to let RudderStack batch the number of requests specified in the Maximum Batch Size setting before sending them to the configured endpoint.
Note that:
RudderStack supports this feature for the JSON body format only. It sends the batched events in the JSON array format, for example, [{Event1},{Event2},....{EventN}].
The maximum batch size must not exceed 100.
RudderStack sends the batches to the endpoint when either the batch limit is reached or after 5 seconds (even if batch size is less than the specified limit) - whichever comes first.
Consent management settings
Configure the consent management settings for the specified source by choosing the Consent management provider from the dropdown and entering the relevant consent category IDs. See Consent Management in RudderStack for more information on this feature.
How do I check for delivery failures while sending events to the HTTP Webhook destination?
Log in to your RudderStack dashboard and go to the Live Events tab of your destination to check for any delivery failures. In case there are any, you can check the Error Response by clicking the event to get more details.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.