Campaign Builder Webhooks
Applies to: All ONTRAPORT accounts. A webhook is a way for one application to share data with another application. ONTRAPORT can automate sending Webhooks in Campaigns and in legacy Sequences and Rules (where it is known as a "Ping URL"). ONTRAPORT can also receive a webhook from other applications, or even from itself. Webhooks can leverage third party integration platforms such as Zapier and allow you to push ONTRAPORT data into hundreds of other applications. Many applications provide an "endpoint" or webhook URL you can send data to directly, without the use of a third party integration platform. Every webhook needs a webhook URL to receive the data, and the data itself. Different applications will also require transaction details to be included such as an API key and an application ID. You will insert the webhook URL into one field, and then format the data in the Post Data section of the webhook. The use cases below will show you how this is done. In general, each piece of data you send in the Post Data section has three parts, a label so the receiving application knows what the data is, an equals sign, and the data itself. Sending a street address could look like this: address=2040 Alameda Padre Serra In this example the "address" label is what the receiving application has specified it needs to identify the street address data. To pass multiple items you separate them using an ampersand character - &. Adding the city to the post data would look like: address=2040 Alameda Padre Serra&city=Santa Barbara In this example we will show how to send ONTRAPORT information using merge fields to another application. The other application allows us to create a contact record by sending the first name and email address. The application requires us to use the label "First_Name" for the first name data, and "Email" as the label for the email data. Test the action of the Send a Webhook element by sending a test Contact through the Campaign and verifying that the data shows up in the other application. To use webhooks with Zapier, see our article on Integrating with Zapier. In this use case we want to add a Note to the Contact Record from within a Campaign in ONTRAPORT. This can be used in lieu of someone from your team manually opening the Contact Record and adding the note. When the Contact lands on the Send a Webhook element ONTRAPORT will create a Note with the text "Note inserted by webhook using new API." in the Contact Record. About Webhooks
Webhook Basics
Enabling Webhooks in ONTRAPORT
Sending a Webhook to Another Application
First_Name=[First Name]
First_Name=[First Name]&Email=[Email]
Using a Webhook to Add a Contact Record Note
Api-Appid=1_111111_111111111&Api-Key=22222222222222&id=0&data=Note inserted by webhook using new API.&author=1&contact_id=[Contact ID]
Articles in this section
- Campaign Builder Introduction
- Best Practices: Campaign Builder
- Campaign Builder Triggers and Goals
- Campaign Builder Actions
- Campaign Builder Filters
- Campaign Builder Webhooks
- Campaign Builder FAQs
- Campaign Builder Checklist and Notes
- Campaign Builder Modes
- Campaign Builder Revision History
Comments