Only show these results:

Scheduler Webhooks

Scheduler webhooks allow you to build custom logic into your application for upcoming bookings. Setting webhooks up helps to keep track of event changes through calendars and then update corresponding bookings.

For example, your application can send custom reminders to both organizers and attendees six hours before the scheduled meeting. You can include links to resources and other instructions within your application.

Configuring Webhooks

For upcoming bookings, select one or more reminders within the booking configuration using the delivery_method: webhook key-value pair.

In the example, the Scheduler API triggers 60 minutes before as a POST request to the "webhook_url" provided.

{
"reminders": [
{
"delivery_method": "webhook",
"time_before_event": 60,
"webhook_url": "https://example.com/api/booking-webhook"
}
]
}

POST Body

The page and booking objects in the request payload provide the context for sending emails or performing other business logic.

 {
"page": {
"name": "1:1 Coffee Meeting",
"slug": "coffee-meet"
},
"booking": {
"id": 50,
"title": "Intro Meeting",
"edit_hash": "f5gDjm-DpR2O-YC85Ie9iA",
"is_confirmed": true,
"location": "Sightglass Coffee, SOMA",
"recipient_email": "ada@algoprime.com",
"recipient_name": "Ada Lovelace",
"recipient_locale": "en",
"start_time": 1563473700,
"end_time": 1563476400,
"additional_field_values": {
"favorite_foods": "Broccoli"
}
}
}

POST Response

Your service must reply according to these two conditions.

  • 200 OK status code
  • 30 or fewer seconds response time

Sending Notifications to Participants

Configuring your application's webhook timings allow for flexible business logic. Webhooks deliver depending on different time intervals and update through booking configurations in code.

Send notifications based on event time by using the booking information for opening_hours.start and applying relevant conditions in the webhook.

For webhooks set to time intervals greater than the difference in time between an event and its booking, all applicable webhooks go through immediately.

Immediate Delivery

The time interval conditions within webhooks allow for sending immediate notifications.

Booking on Short Notice Notifications

Webhooks reflect all applicable time interval notification configurations after booking. If the booking time is sooner than the time interval for notification, then the webhook triggers immediately. The time_before_event value refers to the time interval in minutes.

Time interval Booking time Delivery
1 hour before 3 hours before 1 hour before
1 day before 3 days before 1 day before
1 hour before 30 minutes before Immediately
1 week before 1 day before Immediately
  "reminders": [
{
"delivery_method": "webhook",
"delivery_recipient": "both",
"time_before_event": 60,
"webhook_url": "https://test.com/callback"
}
],

Soonest Possible Example

Webhook conditions set to always evaluate as true trigger as soon as the booking occurs. In this example, the time_before_event trigger in minutes is set to a value greater than the avalaible_days_in_future value in days.

{
"access_tokens": [
"<ACCESS_TOKEN>"
],
"config": {
"booking": {
"available_days_in_future": 14,
"scheduling_method": "round-robin-maximize-fairness"
},
"calendar_ids": {
"<ACCOUNT_ID>": {
"availability": [
"<CALENDAR_ID>"
],
"booking": "<CALENDAR_ID>"
}
},
"reminders": [
{
"delivery_method": "webhook",
"delivery_recipient": "customer",
"time_before_event": 20160,
"webhook_url": "https://test.com/callback"
}
],
"timezone": "America/Los_Angeles"
}
}

Job Status

The job status webhook triggers notifications for failed bookings. A job.failed webhook and an email to the host triggers for any events that can't be added to a calendar.

Scheduler Failed Booking

Delivery Attempts

Scheduler API configurations retry webhooks three times over several minutes when service is unavailable or endpoints return any other status code than 200. A webhook delivery failure for one webhook payload doesn't affect other delivery attempts. Other bookings using the same endpoint continue to attempt to deliver.

Booking webhooks don't trigger when either party cancels or for removing the event from the host's calendar. Webhooks also don't arrive if they can't trigger before the start time of the booking.