{ "integration": { "type": "mymedic", "endpoints": { "programs": "/api/v1/health-programs", "appointments": "/api/v1/appointments", "records": "/api/v1/medical-records", "webhooks": { "appointment": "/webhooks/appointment", "prescription": "/webhooks/prescription" } }, "auth": { "type": "oauth2", "scopes": ["programs.read", "appointments.write"] } } }
// Fetch health program list GET /api/v1/health-programs { "limit": number, "offset": number, "filters": { "status": "active" | "upcoming", "type": string, "practitioner": string } } // Get program details GET /api/v1/health-programs/{programId}
// Create appointment POST /api/v1/appointments { "programId": string, "participant": { "name": string, "email": string, "phone": string, "medicalId": string }, "slot": { "date": string, "time": string, "practitioner": string } } // Update appointment status PUT /api/v1/appointments/{appointmentId}/status { "status": "scheduled" | "completed" | "cancelled", "notes": string }
appointment.created
appointment.updated
appointment.cancelled
appointment.completed
prescription.created
prescription.updated
followup.scheduled
record.updated
{ "error": { "code": "SLOT_UNAVAILABLE", "message": "Selected appointment slot is no longer available", "details": { "slot": "2025-04-08T10:00:00Z", "reason": "Already booked" } } }
{ "api": { "baseUrl": "https://uat-api.mymedic.sadhguru.org", "version": "v1", "timeout": 30000 } }