Open appointment windows
appointment_openingsWhere a client can still be booked: open availability windows grouped by session type and staff. Each group gives the number of windows, the first window's start, the last time an appointment can start (lastStart), the minutes in which one can start, and estimatedSlots, how many back-to-back appointments of the session type's default length fit. A window is a stretch of free time, not one slot. Windows whose last start has passed on the studio's clock are left out. The tool does not report historical appointment statuses, no-shows, or booked hours. A wide query must pass session types or staff rather than expecting an unbounded scan. Mindbody calls: one site lookup for the local time and one session-type lookup (both cached), then at most 8 bookable pages (at most 10).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum groups, 1-60 (default 30). | |
| siteId | No | Site to call (SiteId header). Default -99. | |
| endDate | No | Last day, inclusive (default the day after startDate). | |
| staffIds | No | Only these staff members, at most 20. | |
| startDate | No | First day (default today). At most 7 days with endDate. | |
| locationIds | No | Only these locations, at most 20. | |
| sessionTypeIds | No | Appointment session types to search, at most 8. When omitted, the first 8 online-bookable appointment types (lowest ids) are used. |