Hosts and availability

The people who can be booked and when: create hosts with your own user ids, and give them schedules of availability.

A host is someone who can be booked, usually one of your users. Give each your own id as uid, and use it wherever an id goes.

await ...({
  : "doctor_482",
  : "Dr. Ana Reyes",
  : "America/New_York",
  : { : ["NY", "NJ"], : "es" },
});

Your plan sets how many live hosts your organization can have: 3 on Free and 25 on Pro. Scale includes 100 Scheduling hosts and charges $0.99 per 30 host-days for more. Delete a host to stop counting them.

An email is where their notifications go, not an identity: two hosts can share one, and a host needs none. attributes are what pools choose hosts by.

Schedules

A schedule is weekly hours in local time, with Sunday as day 0. A host's first schedule is their default.

await ...("doctor_482", {
  : [
    { : [1, 2, 3, 4], : "09:00", : "17:00" },
    { : [5], : "09:00", : "12:00" },
  ],
  : [
    { : "2027-12-24", : [] },
    { : "2027-12-31", : [{ : "09:00", : "11:00" }] },
  ],
});

An override replaces that whole day: no ranges means unavailable. Hours stay put across daylight saving, so 09:00 is 09:00 on both sides of a clock change. A range can't cross midnight: use two, and 24:00 for the end of a day.

Changing a schedule only changes what's offered next. Existing bookings stay.

Locations

A host can have their own office, meeting link and phone number, at most one of each. Links must be https, and numbers in E.164 format.

await ...("doctor_482", {
  : [
    { : "in_person", : "12 Main St, New York, NY" },
    { : "link", : "https://meet.example.com/dr-reyes" },
  ],
});

An event type uses them when it offers a location and leaves the value blank, so each booking gets the office of the host it landed on:

await ...({
  : "Office visit",
  : "pool",
  : 30,
  : [{ : "doctor_482" }, { : "doctor_517" }],
  : [{ : "in_person", : null }],
});
  • A value on the event type or the booking wins over the host's, and so does a phone number the attendee gave. A blank phone location with no number from the attendee uses the host's.
  • A host without that type of location still gets the booking, with the location blank. You can set it yourself.
  • A booking keeps the location it was given. Changing a host's locations only affects new bookings.
  • Moving a booking to another host swaps in their location, or leaves it blank if they have none. The old host's address never stays. A location you set with updateLocation stays through a move.
  • With several hosts, the booking uses the first by id who has one.

Attendees only see a host's location once they've booked. That includes a request waiting for approval, so don't use an address you'd only share after approving someone. Hosts can edit their own on their page. In live environments, addresses and links are checked for phishing and spam, and an address can't contain a link: both answer content_refused.

Hosts leaving

A disabled host keeps their bookings but isn't offered. A host with bookings still to come, holds or requests awaiting approval can't be deleted (host_has_live_bookings): cancel them or disable the host. An expired hold counts until it's tidied up, within about a minute, since it can still be confirmed until then.

Last updated