curl --request GET \
--url https://services.leadconnectorhq.com/calendars/{calendarId}/free-slots \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"2024-10-28": {
"slots": [
"2024-10-28T10:00:00-05:00",
"2024-10-28T11:00:00-05:00"
]
},
"2024-10-29": {
"slots": [
"2024-10-29T10:00:00-05:00",
"2024-10-29T14:30:00-05:00"
]
}
}Get free slots for a calendar between a date range. Optionally a consumer can also request free slots in a particular timezone and also for a particular user.
curl --request GET \
--url https://services.leadconnectorhq.com/calendars/{calendarId}/free-slots \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"2024-10-28": {
"slots": [
"2024-10-28T10:00:00-05:00",
"2024-10-28T11:00:00-05:00"
]
},
"2024-10-29": {
"slots": [
"2024-10-29T10:00:00-05:00",
"2024-10-29T14:30:00-05:00"
]
}
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-04-15 Calendar Id
"ocQHyuzHvysMo5N5VsXc"
Start Date (⚠️ Important: Date range cannot be more than 31 days)
1548898600000
End Date (⚠️ Important: Date range cannot be more than 31 days)
1601490599999
The timezone in which the free slots are returned
"America/Chihuahua"
The user for whom the free slots are returned
"082goXVW3lIExEQPOnd3"
The users for whom the free slots are returned
Availability map keyed by date (YYYY-MM-DD)
Show child attributes
Was this page helpful?