Get Availability
Example Request
Example Response
Authorizations
Query Parameters
The start of the date range (YYYY-MM-DD)
The end of the date range (YYYY-MM-DD)
Whether to check availability for the primary provider (default) or secondary provider
primary
, secondary
Whether to fallback to the default hours if no availability rules are defined for the provider
true
, false
Specifies the method for determining availability. "gaps" (Default): Calculates availability based on the free time (also known as gaps) in a provider's schedule between their working hours and existing appointments. "slots": Retrieves availability based on pre-defined appointment slots (often derived from appointment notes/titles).
gaps
, slots
Required if calculation_method is 'slots'. Specifies the type/title of the appointment slots to retrieve. The matching is case-insensitive.
Specifies a buffer time in minutes to add after appointments of a specific visit_type or all visit types. This effectively makes the provider unavailable for this duration after such an appointment. Must be a non-negative integer less than 60.
0 <= x < 60
Used in conjunction with buffer. Specifies the type of visit after which the buffer should be applied. Can also be 'all' to apply the buffer after all appointments. If buffer is set and visit_type is omitted, it defaults to 'all'. Must be 'all' or a valid visit type code configured for the user/organization (case-insensitive).
If provided along with daily_limit_type, specifies the maximum number of appointments of that type a provider can have on a single day. If the limit is reached, no further availability will be shown for that day for that appointment type. Must be a positive integer. Requires daily_limit_type to also be provided.
x >= 1
Specifies the appointment type to which the daily_appointment_limit applies. Must be a valid visit type code configured for the user/organization (case-insensitive). Requires daily_appointment_limit to also be provided.
If provided and calculation_method is 'gaps', this parameter instructs the system to subdivide large availability blocks into smaller, contiguous slots of this specified duration in minutes. Must be an integer between 5 and 60 (inclusive) and must be an increment of 5 (e.g., 5, 10, 15, ..., 60). When an available block of time is not an exact multiple of the max_slot_duration
, the system will create as many full slots of the specified duration as possible. Any remaining portion of the block that is smaller than the max_slot_duration
will not be returned as an available slot. For example, if there is a 45-minute availability block and max_slot_duration
is set to 30 minutes, one 30-minute slot will be returned, and the remaining 15 minutes will not form an additional slot.
5 <= x <= 60
Must be a multiple of 5
Response
Successful response
The response is of type object
.