Google API

Google Calendar Sync & Integration

Bidirectional synchronization for doctors. Appointments appear on mobile, and personal busy slots block clinic bookings.

Bidirectional Workflow

Outbound: App to Mobile

Every booking, rescheduling, or cancellation in LeafyWings Medix is instantly pushed to the doctor's Google Calendar, appearing on their mobile devices automatically.

Inbound: Busy-Time Sync

Personal events (Lunches, Personal Errands) added by the doctor on their phone are fetched every 10 minutes to block those slots in the clinic schedule.

Full Transparency

Clinic administrators can view personal event titles to better coordinate the schedule, or keep them private based on individual doctor settings.

One-Tap Connect

Secure OAuth2 authorization flow. Doctors simply click "Connect" in their profile, authorize with Google, and the sync begins immediately.

Technical Specifications

Capability Implementation Details
Sync Frequency Background job executes every 10 minutes (Inbound) / Real-time (Outbound)
Auth Protocol OAuth 2.0 with Offline Access & Refresh Token support
Data Privacy Encrypted token storage at tenant level. Opt-in for event title visibility.
Clash Prevention Automated "Unavailability" creation to prevent double-booking with personal life.
Multi-Tenant Distinct Google account authorization per medical staff member.

Mobile Scheduling Preview

Doctor's Google Calendar Sample
April 05, 2026
10:00 AM - 10:30 AM
Patient Appt: John Doe (T-045)
01:00 PM - 02:00 PM
Personal Lunch (Private)
02:30 PM - 03:00 PM
Patient Appt: Jane Smith (T-046)

Google Calendar will reflect clinic appointments, while private events will block the clinic schedule.

Ready to Transform Your Practice?

Start your 14-day free trial. No credit card required. Set up in under 5 minutes.