Available Slots

View available slots

GET
/available_slots

This endpoint returns the bookable slots for the requested locations over the given date range, computed from provider availabilities and existing appointments. At least one of pids or appointment_type_id must be provided.

Authorization

Authorization
Authorization<token>

In: header

Query Parameters

subdomain*string

Used to scope the request to the specified institution

start_date*string

Date string you want results to start at, format YYYY-MM-DD

Formatdate
days*integer

Number of days to include, counting the start date. For best performance, this value should not exceed 14 days.

Formatint32
appointment_type_id?integer

Specify an appointment type to filter returned slots and set slot_length to appointment_type.minutes

Formatint32
working_hour_label_id?integer

Filter by specific working hour label

Formatint32
working_hour_source?string

Filter by source of working hours

Value in

  • "manual"
  • "synced"
slot_length?integer

Manually specify slot length in minutes. Defaults to 15 minutes

Formatint32
slot_interval?integer

Manually specify the time in minutes between returned slot start times when a contiguous opening exists longer than the slot_length

Formatint32
overlapping_operatory_slots?boolean

Return all available slots for operatories at a given time instead of returning only the first found. Default is false

Defaultfalse
appointments_per_timeslot?integer

Number of appointments (default:1, max:5) that can be booked in a single slot. Only supported for athenahealth, eClinicalWorks, ModMed and NextGen.

Formatint32
Range1 <= value <= 5
Default1
lids[]*array<>

Array of Location IDs

pids[]?array<>

Array of Provider IDs

operatory_ids[]?array<>

Specify this if booking is mapped to operatory in this location

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/available_slots?subdomain=string&start_date=2024-04-15&days=7&appointment_type_id=27&working_hour_label_id=11&working_hour_source=manual&slot_length=30&slot_interval=15&overlapping_operatory_slots=false&lids%5B%5D=1&pids%5B%5D=83&operatory_ids%5B%5D=54" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": [    {      "lid": 1,      "pid": 83,      "operatory_id": 54,      "slots": [        {          "time": "2017-10-09T07:00:00.000-04:00",          "end_time": "2017-10-09T07:30:00.000-04:00",          "operatory_id": 54,          "provider_id": 83,          "working_hour_label_id": 11        }      ],      "next_available_date": "2022-11-17"    }  ],  "count": 2}