Search Appointment Slots
Betapost
https://app.untetherlabs.com/api/v1/appointments/slotsThis is a beta endpoint. Breaking changes may occur without notice, use at your own risk.
Generate appointment slot suggestions for a set of available providers in the given time range.
Slots are based on working-type shifts in the period, filtered & ranked by the given requirements/preferences.
On ranking,
- Skills are ranked by the closest match. For example, a skill requirement for specialty X will rank providers with only specialty X highly, and providers with multiple specialties including X lower.
- Slots which do not create unusable gaps are preferred.
Skills are the primary mechanism for selecting providers, see Using Skills for more information.
Request body#
appointmentTypeIdstringstartDatestringendDatestringrequirementsobjectHard filters for possible slots
Show properties
providerIdsstring[]skillSkillRequirementOption 1 — SkillRequirementCondition
typeenum- equal
skillstring· min length 1valuestringOption 2 — SkillRequirementGroup
typeenum- and
- or
entriesone of[]· min items 1Option 1 — SkillRequirementCondition
typeenum- equal
skillstring· min length 1valuestringOption 2 — SkillRequirementNestedGroup
typeenum- and
- or
entriesSkillRequirementCondition[]· min items 1typeenumskillstring· min length 1valuestringpreferencesobjectSoft filters for possible slots
Show properties
providerIdsstring[]skillSkillRequirementOption 1 — SkillRequirementCondition
typeenum- equal
skillstring· min length 1valuestringOption 2 — SkillRequirementGroup
typeenum- and
- or
entriesone of[]· min items 1Option 1 — SkillRequirementCondition
typeenum- equal
skillstring· min length 1valuestringOption 2 — SkillRequirementNestedGroup
typeenum- and
- or
entriesSkillRequirementCondition[]· min items 1typeenumskillstring· min length 1valuestringlimitnumber· default 10Maximum number of slots to return
Response 201#
resultsAppointmentSlot[]scorenumberArbitrary number for ranking slots relative to each other. Should not be compared to anything besides the appointments returned by this request.
appointmentTypeIdstringstartDatestringendDatestringproviderIdstringErrors#
A specified appointmenttype does not exist in the system.