Webhook map
bookingsbooking(bookings.booking)canceled(bookings.canceled)canceledRescheduleRequested(bookings.canceledRescheduleRequested)canceledThenRescheduled(bookings.canceledThenRescheduled)completed(bookings.completed)noShow(bookings.noShow)reassigned(bookings.reassigned)rescheduled(bookings.rescheduled)scheduled(bookings.scheduled)
conversationsabandoned(conversations.abandoned)closed(conversations.closed)conversation(conversations.conversation)started(conversations.started)
HTTP handler setup
app/api/webhook/route.ts
import { processWebhook } from "corsair";
import { corsair } from "@/server/corsair";
export async function POST(request: Request) {
const headers = Object.fromEntries(request.headers);
// With multiTenancy, give each tenant its own URL (/api/webhook?tenantId=acme):
// the query says whose account, secret and hooks handle the delivery.
const query = Object.fromEntries(new URL(request.url).searchParams);
// The raw text, not request.json(): signatures are checked over the exact bytes sent.
const body = await request.text();
const result = await processWebhook(corsair, headers, body, query);
if (!result.plugin) {
return Response.json({ success: false }, { status: 404 });
}
// A refusal (bad signature) carries no status and answers 400; a handler
// that threw comes back with 500, so the sender retries it.
const status =
result.response?.success === false ? (result.response.statusCode ?? 400) : 200;
return Response.json(result.response ?? { success: true }, {
status,
headers: result.responseHeaders,
});
}
Events
Bookings
Booking
bookings.booking
Any booking event with no specific handler here, such as a type OnceHub adds later (the all-booking-events trigger)
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | string | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: string,
api_version?: string | null,
data: {
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
bookings: {
booking: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Canceled
bookings.canceled
A booking was canceled
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | booking.canceled | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: booking.canceled,
api_version?: string | null,
data: {
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
bookings: {
canceled: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Canceled Reschedule Requested
bookings.canceledRescheduleRequested
A booking was canceled and the guest was asked to pick a new time
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | booking.canceled_reschedule_requested | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: booking.canceled_reschedule_requested,
api_version?: string | null,
data: {
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
bookings: {
canceledRescheduleRequested: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Canceled Then Rescheduled
bookings.canceledThenRescheduled
A canceled booking was booked again
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | booking.canceled_then_rescheduled | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: booking.canceled_then_rescheduled,
api_version?: string | null,
data: {
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
bookings: {
canceledThenRescheduled: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Completed
bookings.completed
A booking took place
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | booking.completed | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: booking.completed,
api_version?: string | null,
data: {
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
bookings: {
completed: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
No Show
bookings.noShow
A booking was marked as a no-show
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | booking.no_show | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: booking.no_show,
api_version?: string | null,
data: {
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
bookings: {
noShow: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Reassigned
bookings.reassigned
A booking was reassigned to a different host
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | booking.reassigned | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: booking.reassigned,
api_version?: string | null,
data: {
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
bookings: {
reassigned: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Rescheduled
bookings.rescheduled
A booking was rescheduled
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | booking.rescheduled | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: booking.rescheduled,
api_version?: string | null,
data: {
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
bookings: {
rescheduled: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Scheduled
bookings.scheduled
A booking was scheduled
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | booking.scheduled | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: booking.scheduled,
api_version?: string | null,
data: {
object?: string | null,
id?: string | null,
tracking_id?: string | null,
subject?: string | null,
status?: string | null,
creation_time?: string | null,
starting_time?: string | null,
customer_timezone?: string | null,
last_updated_time?: string | null,
owner?: string | Record<string, any> | null,
duration_minutes?: number | null,
virtual_conferencing?: {
join_url?: string | null
} | null,
location_description?: string | null,
rescheduled_booking_id?: string | null,
cancel_reschedule_information?: {
reason?: string | null,
actioned_by?: string | null,
user_id?: string | null
} | null,
attendees?: string[] | null,
form_submission?: {
name?: string | null,
email?: string | null,
phone?: any | null,
mobile_phone?: string | null,
note?: string | null,
company?: any | null,
guests?: any[] | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
} | null,
booking_page?: string | Record<string, any> | null,
master_page?: string | Record<string, any> | null,
event_type?: string | Record<string, any> | null,
external_calendar?: {
type?: string | null,
name?: string | null,
id?: string | null,
event_id?: string | null
} | null,
utm_params?: {
source?: string | null,
medium?: string | null,
campaign?: any | null,
term?: any | null,
content?: any | null
} | null,
contact?: string | Record<string, any> | null,
booking_calendar?: string | Record<string, any> | null,
conversation?: string | Record<string, any> | null,
in_trash?: boolean | null,
ics_url?: string | null,
cancel_url?: string | null,
reschedule_url?: string | null,
cancel_reschedule_url?: string | null,
payment_information?: Record<string, any> | null,
custom_fields?: {
name?: string | null,
value?: any | null
}[] | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
bookings: {
scheduled: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Conversations
Abandoned
conversations.abandoned
A conversation was abandoned
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | conversation.abandoned | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
id?: string | null,
object?: string | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: conversation.abandoned,
api_version?: string | null,
data: {
id?: string | null,
object?: string | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
conversations: {
abandoned: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Closed
conversations.closed
A conversation closed
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | conversation.closed | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
id?: string | null,
object?: string | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: conversation.closed,
api_version?: string | null,
data: {
id?: string | null,
object?: string | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
conversations: {
closed: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Conversation
conversations.conversation
Any conversation event with no specific handler here, such as a type OnceHub adds later (the all-conversation-events trigger)
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | string | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
id?: string | null,
object?: string | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: string,
api_version?: string | null,
data: {
id?: string | null,
object?: string | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
conversations: {
conversation: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})
Started
conversations.started
A conversation started
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
object | event | null | No | — |
creation_time | string | null | No | — |
type | conversation.started | Yes | — |
api_version | string | null | No | — |
data | object | Yes | — |
data full type
data full type
{
id?: string | null,
object?: string | null
}
Response data full type
Response data full type
{
id?: string | null,
object?: event | null,
creation_time?: string | null,
type: conversation.started,
api_version?: string | null,
data: {
id?: string | null,
object?: string | null
}
}
webhookHooks example
scheduleonce({
webhookHooks: {
conversations: {
started: {
before(ctx, args) {
return { ctx, args };
},
after(ctx, response) {
},
},
},
},
})