Webhook
Webhooks allow you to receive realtime notifications when certain events happen in your Tripdocks workspace.
How it works
When an event occurs, Tripdocks sends an HTTP POST request to the URL you provide. The request body contains information about the event.
Setting up a webhook
- Go to Settings > Integrations.
- Click on Add Webhook.
- Enter your Target URL.
- Select the events you want to subscribe to.
- Click Save.
Supported Events
lead.created: Triggered when a new lead is added.itinerary.published: Triggered when an itinerary is published.booking.confirmed: Triggered when a booking is confirmed.
Payload Example
{
"event": "lead.created",
"data": {
"id": "lead_12345",
"name": "John Doe",
"email": "john@example.com"
}
}