Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

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 https://services.leadconnectorhq.com/calendars/{calendarId}/free-slots

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Path parameters

calendarId
string
default:"ocQHyuzHvysMo5N5VsXc"
required
Calendar Id

Query parameters

startDate
number
default:"1548898600000"
required
Start Date (⚠️ Important: Date range cannot be more than 31 days)
endDate
number
default:"1601490599999"
required
End Date (⚠️ Important: Date range cannot be more than 31 days)
timezone
string
default:"America/Chihuahua"
The timezone in which the free slots are returned
userId
string
default:"082goXVW3lIExEQPOnd3"
The user for whom the free slots are returned
userIds
string[]
The users for whom the free slots are returned

Respuestas

{
  "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"
    ]
  }
}
{}
{}

Ejemplo

curl -X GET 'https://services.leadconnectorhq.com/calendars/YOUR_calendarId/free-slots' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28'