Fetch Availability
Performs a live fetch of provider availability by combining a real-time EMR appointment fetch with availability calculation.
GET /availability instead, which returns availability against cached appointment data.Request Constraints
provider_ids: required array of EMR provider IDs. Must contain between 1 and 10 entries.- A single provider may span up to a 5-day window.
- Two or more providers must share a single date (
start_datemust equalend_date).
buffer, visit_type, calculation_method, daily_appointment_limit, daily_limit_type, provider_type, fallback_to_default_hours, max_slot_duration, facility_scoped_scheduling, location_ids) are optional and follow the same defaults and validation rules as GET /availability.
Example Request (1 provider, 5 days)
Example Request (multiple providers, single day)
Webhook Notification
When the fetch completes, we send anavailability.live_fetch_completed event to your registered webhook endpoint with the computed slots inline. The slots themselves are not persisted, but as a side effect the underlying appointments returned by the EMR are written to our appointments cache — a follow-up GET /availability reflects the live state.
day_of_week (1-7, ISO weekday), date (YYYY-MM-DD), duration_string, range_start, range_end, and provider_id. facility_id and facility_name are present when the source EHR scopes the shift to a specific location. visit_type, available_appointments, and max_visits appear when calculation_method is slots or equal_slots.Authorizations
Body
Start date for the availability window in ISO 8601 format (YYYY-MM-DD).
End date for the availability window in ISO 8601 format (YYYY-MM-DD). When 1 provider is supplied, end_date may be up to 5 days after start_date. When 2-10 providers are supplied, end_date must equal start_date.
EMR provider IDs to compute availability for (1-10).
1 - 10 elementsBuffer in minutes to add after appointments of visit_type. Same semantics as GET /availability.
0 <= x < 60Used with buffer. Same semantics as GET /availability.
Availability calculation strategy. Same semantics as GET /availability.
gaps, slots, equal_slots Same semantics as GET /availability. Requires daily_limit_type.
x >= 1Same semantics as GET /availability. Requires daily_appointment_limit.
primary, secondary Same semantics as GET /availability.
Same semantics as GET /availability.
5 <= x <= 60Must be a multiple of 5Same semantics as GET /availability.
EHR location IDs to filter slots by facility_id.