Configure
Pre-select a doctor
Open the widget already focused on a specific doctor.
Pass medosDoctorId to have the widget open on that doctor's calendar
directly. The doctor picker still appears if you want to allow switching —
combine with calendarOnly to lock the widget to that doctor.
Pre-select but allow switching
MedosBooking.init({
apiKey: "mk_...",
medosDoctorId: "doc-123",
});The widget opens on Dr. 123's calendar but the doctor strip is still there, so the patient can pick someone else.
Pre-select and lock
Add calendarOnly: true:
MedosBooking.init({
apiKey: "mk_...",
medosDoctorId: "doc-123",
calendarOnly: true,
});Now the widget shows only Dr. 123's calendar — no other doctors visible.
See Calendar-only mode for the common "one button per doctor" pattern this enables.
Finding a doctor's ID
Doctor IDs come from your Medos workspace. You can get the full list from the API or by inspecting the workspace payload in the dashboard.