Returns available appointment slots across appointment books, filtered by duration, book(s), date range, day of week, and time window. Use this endpoint to drive a booking-time picker.
Use cases
Power a “next available appointment” widget.
Discover free slots when proposing a reschedule.
Audit calendar availability across the practice.
Parameters
appt_book_ids
| string | Optional. Omit it or pass -1 for all active books, or send one book ID or a comma-separated list of book IDs. The date range is limited to 90 days for a single book, and to 14 days for all books (-1 or omitted) and for a list of two or more books. A longer range is shortened to the limit rather than rejected (the limit is counted from the later of from_date and the day before today): the response is 200 and a warnings[] entry gives the dates searched and the date to continue from. To search a long range across several books, send one request per book. See the clamped-range example below and SLT-001 in Error responses. |
from_date
| date | Start of the date range. If you omit both dates, the search covers today to 7 days ahead. If you send only to_date, the range starts 7 days before it. A start date before today is moved forward to today, and the range limit is counted from the day before today, so an earlier from_date does not cause an error as long as the days from there to to_date are within the limit. If from_date is later than to_date and the range is within the limit, the two dates are swapped; if it is over the limit the request is refused with SLT-001. |
to_date
| date | End of the date range. Must not be in the past. If you send only from_date, the range ends 7 days after it. |
duration
| integer | Minimum slot duration in minutes. 1 or more. Default 30. |
start_time
| time | Start of the daily time window (HH:MM, 24 hour). Default 08:00. Must be before end_time. |
end_time
| time | End of the daily time window (HH:MM, 24 hour). Default 17:00. |
days_of_week
| string | Optional. Comma-separated ISO day numbers, 1 (Monday) to 7 (Sunday), for example 1,2,3,4,5. Omit it to search all days. |
slotmode
| integer | Which slots to return: 0 = vacant slots only (default); 1 = vacant slots plus all presets; 2 = vacant slots plus online-bookable presets; 3 = all presets only, no vacant slots; 4 = online-bookable presets only, no vacant slots. Modes 3 and 4 need data model V18 or later; see Important notes. |
per_page
| integer | Results per page, 1 to 500. Default 100. |
page
| integer | Page number. 1 or more. Default 1. |
Response fields
location_id
| integer | Location identifier. |
appt_book_id
| integer | Appointment book identifier. |
appt_book_name
| string | Appointment book name. |
slot_type_id
| integer | Slot type identifier: cross-reference against Get slot types for the human-readable name. Needs data model V18 or later. |
slot_date
| date | Date of the available slot. |
slot_start
| time | Slot start time (HH:MM:SS). |
slot_end
| time | Slot end time (HH:MM:SS). |
duration_available
| integer | Minutes available in the slot. |
day_of_week
| integer | Day of week (Monday = 1). |
metadata
| object | Informational fields describing capping, fallback, and default-window behaviour applied to this request. See API Response Formats for the full field list. |
pagination
| object | Paging details for this result set: page, per_page, total_rows, total_pages. See API Response Formats for the full field list. |
Important notes
Returns one record per available slot, per book, per day.
Slot type: every row includes
slot_type_id: cross-reference against
Get slot types for the human-readable name.
Pagination is required for large practices; per_page is capped at 500.
Continuing after a clamp: the warnings[] text for a clamped range names a next_from date to continue from. This is informational text only, not a separate response field. For a list of two or more books the text reads, for example, “Multi-book slot search is capped at 14 days; returned 2026-11-06…2026-11-20 (requested 70 days). Continue from next_from (2026-11-21); pass a single appt_book_ids value to search up to 90 days.”
Minimum data model:slotmode 3 and 4, and the
slot_type_id field, need data model V18 or later. On an older practice database,
slotmode 3 or 4 returns vacant slots only, with no error, and rows have no
slot_type_id. Use
GET Data Model Version to check a practice.
No matching slots: a search with no matching slots returns 200 with status: true, an empty data array and the message No records found.
Platform errors: errors such as
MOD-4268 (the practice database needs an upgrade) and
RP-5037 (the Halo Connect daily request quota for the practice is used up; retry after the time given) can be returned by any endpoint. See
Validation, Limits & Character Handling.
Elapsed slots are not filtered: for the current day, slots earlier than the current time are still returned. to_date validation only rejects whole days in the past; it does not filter partially-elapsed time within today. Callers displaying today’s availability should filter out already-elapsed slots client-side.
Values that match nothing: a days_of_week value outside 1 to 7, or an appt_book_ids value that is not a number, is not rejected. The search returns 200 with an empty data array and the message No records found.
Only the parameters listed above are accepted. An unsupported query parameter returns 400 with a message that names the unsupported parameters, for example Unexpected parameters: appt_book_id, Please try again.
Error responses
400 | SLT-002
| to_date is in the past.
|
400 | SLT-001
| from_date is later than to_date and the range is longer than the limit (90 days for one book, 14 days for all books or a list of two or more books). Send from_date on or before to_date, or a shorter range. A from_date in the past does not cause this error.
|
400 | SLT-003
| start_time at or after end_time.
|
400 | TYP-TIME
| start_time or end_time is not a valid time (for example 25:00). Use HH:MM or HH:MM:SS.
|
400 | (none) | An unsupported query parameter was supplied. |
422 | (none) | Query parameter out of range (for example duration below 1, per_page above 500, page below 1, slotmode above 4). |
Example responses
Date span exceeds the cap; the range is clamped and returned with a warning (200):
{ "data": [ { "location_id": 1, "appt_book_id": 42, "appt_book_name": "Dr Chen: General", "slot_date": "2026-09-01", "slot_start": "09:00:00", "slot_end": "09:30:00", "duration_available": 30, "day_of_week": 2, "slot_type_id": 3 } ], "status": true, "warnings": [ "All-books slot search is capped at 14 days; returned 2026-09-01..2026-09-15 (requested 30 days). Continue from next_from (2026-09-16); pass appt_book_ids to search up to 90 days." ] }
The same clamping applies when a single book is queried beyond its larger 90-day cap: the warnings[] text names the range actually returned (not the book itself).
A from_date in the past is accepted. The limit is counted from the day before today, so a from_date 100 days ago with a to_date 5 days ahead returns 200 with no warning. If the remaining range is still over the limit, the range is clamped and the warning counts the days from today, for example “Single-book slot search is capped at 90 days; returned 2026-11-07…2027-02-05 (114 days from today). Continue from next_from (2027-02-06).”
to_date in the past (400):
{ "data": [], "status": false, "message": "to_date must not be in the past (got 2026-05-24).", "support_code": "SLT-002" }
start_time at or after end_time (400):
{ "data": [], "status": false, "message": "start_time must be before end_time (got start='17:00', end='08:00').", "support_code": "SLT-003" }
Unsupported parameter (400):
{ "data": [], "status": false, "message": "Unexpected parameters: appt_book_id, Please try again." }
No matching slots (200):
{ "status": true, "message": "No records found.", "data": [], "pagination": { "page": 1, "per_page": 100, "total_rows": 0, "total_pages": 0 } }
Parameter out of range (422):
{ "data": [], "status": false, "message": "'query -> per_page': ensure this value is less than or equal to 500" }
Quick example
curl "https://api-uat.dental4web.com.au/api/v1/appointment-slots?appt_book_ids=1&from_date=2026-06-10&to_date=2026-06-20&duration=30" \
-H "x-api-key: $API_KEY" \
-H "org-id: $ORG_ID" \
-H "Accept: application/json"