This API allows you to create an automation rule that sends calendar invites to anyone when specific events occur. The automation rule can be triggered by various events such as booking confirmation, rescheduling, cancellation, etc. When the specified event occurs for any of the associated scheduling links, the system will automatically send calendar invites to the email addresses specified in the action.
{your-workspace} with your workspace’s subdomain. subject, body, calendar_invite_subject, and calendar_invite_body fields. These variables will be automatically replaced with actual values when the automation rule is triggered. Supported variables include:
{{booking.id}} - Booking SID{{meeting.name}} - Meeting name{{meeting.scheduling_url}} - Meeting scheduling URL{{client.name}} - Client’s full name{{client.first_name}} - Client’s first name{{client.last_name}} - Client’s last name{{client.email}} - Client’s email{{client.starts_at}} - Meeting start time in client’s time zone{{client.ends_at}} - Meeting end time in client’s time zone{{host.name}} - Host’s name{{host.starts_at}} - Meeting start time in host’s time zone{{host.ends_at}} - Meeting end time in host’s time zonebody and calendar_invite_body fields support HTML formatting. Allowed HTML tags include: h1, h2, h3, h4, h5, br, strong, em, a, s, code, u, ul, ol, li, p, span.X-Api-Key is used to authenticate requests using an API key. Provide your API key in this header to access protected endpoints. Refer to Authentication for more information.
The event that triggers this automation rule. Must be one of the following values:
marked_no_show - When a booking is marked as no-showbooking_confirmed - When a booking is confirmedbooking_rescheduled - When a booking is rescheduledbooking_cancelled - When a booking is cancelledbefore_meeting_starts - Before a meeting startsafter_meeting_ends - After a meeting endsmeeting_outcome_changed - When the meeting outcome is changedmarked_no_show, booking_confirmed, booking_rescheduled, booking_cancelled, before_meeting_starts, after_meeting_ends, meeting_outcome_changed "booking_confirmed"
Array of valid meeting IDs from your workspace. Only actual meeting IDs are accepted (template meeting IDs are not valid). The automation rule will be triggered for bookings associated with any of these meetings.
You can get meeting IDs from the response of the List all scheduling links endpoint, where it appears as the id property for each scheduling link in the response.
[
"8a7794e3-3142-4569-9dd7-6411369b5d3f",
"9b8805f4-4253-5670-0ee8-7522470c6e4g"
]Array of actions to perform when the event is triggered. Currently, only send_calendar_invite_to_anyone action type is supported.
[
{
"type": "send_calendar_invite_to_anyone",
"emails": ["[email protected]"],
"email_subject": "You have a meeting scheduled",
"email_body": "<h3>Hello {{client.name}}</h3><p>You have been invited to a meeting scheduled by {{host.name}} which will start at {{client.starts_at}}</p>",
"calendar_invite_subject": "Meeting with {{host.name}}",
"calendar_invite_body": "<p>Meeting scheduled for {{client.starts_at}}. Join using: {{meeting.scheduling_url}}</p>"
}
]Name of the automation rule. This field is optional. If not provided, an auto-generated name like "New Rule - 172719992" will be assigned.
"Send calendar invite to guests"
OK - Request succeeded