Get Free Slots
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.
GET
/
calendars
/
{calendarId}
/
free-slots
Get Free Slots
curl --request GET \
--url https://services.leadconnectorhq.com/calendars/{calendarId}/free-slots \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'const options = {
method: 'GET',
headers: {Version: '<version>', Authorization: 'Bearer <token>'}
};
fetch('https://services.leadconnectorhq.com/calendars/{calendarId}/free-slots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/calendars/{calendarId}/free-slots"
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"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"
]
}
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}Authorizations
Query Parameters
Last modified on March 8, 2026
Was this page helpful?
Get Free Slots
curl --request GET \
--url https://services.leadconnectorhq.com/calendars/{calendarId}/free-slots \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'const options = {
method: 'GET',
headers: {Version: '<version>', Authorization: 'Bearer <token>'}
};
fetch('https://services.leadconnectorhq.com/calendars/{calendarId}/free-slots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/calendars/{calendarId}/free-slots"
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"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"
]
}
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}