Configure Webhooks
This feature allows you to connect with other web apps and easily send automated messages and updates to custom URLs. You can send hooks that will send data to any other application, which allows you to send data from Trafft to any other application.
Please note that Webhooks for Trafft is a custom feature and it counts to the number of your Custom Features & Integrations.
In order to use Webhooks, first, you need to Activate this feature on the Features and Integration page, after which you need to click on the Configure button in order to open the page to set up your webhooks. Once you open this page, you will see that no webhooks exist, so let's create some!In the top right corner, you can see the "Create Webhook" and there you will see the option to create 5 types of Webhooks:
- Appointment Booked
- Appointment Canceled
- Appointment Rescheduled
- Appointment Status Changed
- Customer Created
These types of webhooks correspond to the events in Trafft that would trigger them to be sent.
Once you add the Webhooks that you would like to send to your application, you will see additional settings that you can configure:
- Name - how you want to title your webhook
- Website URL - the URL to your application where you want to send the webhook and information from Trafft, so you can further use it in other applications you desire
The " Send Test Webhook" option will immediately send dummy data to the URL you entered, so you can see which type of information will be sent for each appointment through each webhook. The information that is sent for every appointment is following:
- Appointment Status
- Appointment Start Date
- Appointment Start Time
- Appointment Start Date and Time
- Appointment End Date
- Appointment End Time
- Appointment End Date and Time
- Appointment Price
- Customer Full Name
- Customer First Name
- Customer Last Name
- Customer Email
- Customer Phone
- Employee Full Name
- Employee First Name
- Employee Last Name
- Employee Email
- Employee Phone
- Service Category
- Service Name
- Service Duration
- Service Price
- Extras
- Location Name
- Location Address
- Location Phone
- Custom Fields
Please note: the data sent will be formatted according to the settings you chose in Trafft. Also, when using Webhooks the data is sent using a POST request.
Lastly, you can also use the "Verification Token", and when you click on this button a pop up will appear:
By using this token, each webhook request you are sending can be verified, and can be used for authentication that data received is in fact coming from Trafft. Also. please note that this Verification Token is sent in the Authorization Header.