Creates a webhook template

Creates a webhook template entity associated to a journey. The webhook allows dynamic content using the Liquid templating language.

Some parts of the webhook (url, reqHeaders, reqBody, reqQueryParams) support Liquid syntax.

You can use the following variables in the template:

  • customer.<fieldName>: Custom fields from the customer (e.g. {{customer.email}})
  • context.<key>: Contextual information passed to the journey (e.g. {{context.language}})
  • Reserved variables:
    • customerId: Customer external code
    • journeyId: Current journey ID
    • stateId: Current state ID
Body Params
string

Name for webhook template

number
required

application id

string
required

Url used for webhook. (Accepts Liquid Template Language)

string
enum
required

Request type

Allowed:
string
enum
required
Defaults to application/json

Request content type. Currently only supports application/json.

Allowed:
reqHeaders
object

object key values for headers request. (Accepts Liquid Template Language)

reqQueryParams
object

object key values for query params request. (Accepts Liquid Template Language in values)

string

Body of the request. Accepts Liquid Template Language in values.

Responses

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json