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.
Retrieve user availability schedules based on various filters including account, calendar, and user. Supports pagination.
GET https://services.leadconnectorhq.com/calendars/schedules/search
Autorizacion
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.
Query parameters
locationId
string
default:"IkqiJlXJ7o9h61tCHHod"
required
Account ID to filter schedules by
userId
string
default:"IkqiJlXJ7o9h61tCHHod"
required
User ID to filter schedules by specific user
calendarId
string
default:"WvVX9LpvlBO6K506xLbp"
Calendar ID for filtering schedules by specific calendar
Number of items to skip for pagination
Maximum number of items to return (max 500)
Respuestas
200 - Schedules retrieved successfully
Array of schedules
id
string
default:"IkqiJlXJ7o9h61tCHHod"
required
Unique identifier for the schedule
name
string
default:"Business Hours Schedule"
required
Human-readable name for the schedule
locationId
string
default:"IkqiJlXJ7o9h61tCHHod"
required
Account ID where this schedule applies
Schedule rules defining when the schedule is active
type
string
default:"wday"
required
Type of schedule rule - weekday (recurring) or date (specific date) Posibles valores: ‘wday’, ‘date’
Time intervals for the rule (e.g., 9 AM to 5 PM)
from
string
default:"09:00"
required
Start time in HH:MM format (24-hour format)
to
string
default:"17:00"
required
End time in HH:MM format (24-hour format)
date
string
default:"2023-04-15"
Specific date in YYYY-MM-DD format (only for date-type rules)
Day of week (only for weekday-type rules) Posibles valores: ‘sunday’, ‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’
timezone
string
default:"America/New_York"
required
Timezone for the schedule (IANA timezone identifier)
dateAdded
string
default:"2023-01-15T10:30:00.000Z"
required
ISO date string when the schedule was created
dateUpdated
string
default:"2023-01-20T14:45:00.000Z"
required
ISO date string when the schedule was last updated
userId
string
default:"IkqiJlXJ7o9h61tCHHod"
required
User ID associated with the schedule
Calendar IDs associated with the schedule
deleted
boolean
default:"False"
required
Whether the schedule has been deleted
{
"schedules": [
{
"id": "IkqiJlXJ7o9h61tCHHod",
"name": "Business Hours Schedule",
"locationId": "IkqiJlXJ7o9h61tCHHod",
"rules": [
{}
],
"timezone": "America/New_York",
"dateAdded": "2023-01-15T10:30:00.000Z",
"dateUpdated": "2023-01-20T14:45:00.000Z",
"userId": "IkqiJlXJ7o9h61tCHHod",
"calendarIds": [
"string"
],
"deleted": false
}
]
}
400 - Invalid request parameters
401 - User not authenticated
Ejemplo
curl -X GET 'https://services.leadconnectorhq.com/calendars/schedules/search' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Version: 2021-07-28'