How to send leads to Campaign Manager from your website

Webhook Setup Overview

HTTP Method: POST
Data Format: JSON

Get your ID

To get your ID you need to get in touch with a Dentli support staff, they will send the ID number you need.

Required Fields

First Name
Field Name: fname
Note: If your form uses a single name field, this field should capture the full name.

Phone Number
Field Name: phone

Booking ID (Hidden Field)
Field Name: id
Value: {YOUR ID}

Optional Fields

Last Name
Field Name: lname

Practice
Field Name: practice_name
Note: Include this field only if the information is available.

JSON Payload Structure

When a user submits the form, the data should be compiled into a JSON object like this:
{
 "fname": "John",
 "lname": "Doe",
 "phone": "+1234567890",
 "practice_name": "Example Clinic",  // Optional field
 "id": "{YOUR ID}"
}
If a field is optional and left blank, you can choose to omit it or pass an empty value do not pass a null or n/a value depending on your webhook’s requirements.

Mapping the Form Data

Data Mapping: Ensure each form field is correctly mapped to the corresponding JSON key as specified above.
Integration Note: Many form tools have built-in features to map form inputs to a JSON structure. Check your form builder's documentation for specific mapping instructions if needed.

Testing Your Setup

Send Test Data: Before going live, use a sample submission to ensure the webhook receives and processes the data correctly.
Validate the Payload in Campaign Manager. A new campaign should have appeared and your test-lead should be listed.

By following this guide, you should have a clear understanding of the field names and data structure needed to integrate your contact form with Campaign Manager via the webhook.

Debuggin error messages

Error 422: You are not sending the three required fields in your submission. You may be missing one or more. Ensure your mappings are correct.
How to use the Campaign Manager for calling patient leads.
How to register your Dentli TV hardware