Welcome to MediSync API
The MediSync REST API provides comprehensive access to our medical AI platform, enabling seamless integration of healthcare data management, AI-powered transcription, and clinical documentation into your applications.API Overview
Base URL
Authentication
Quick Reference
Core Resources
Appointments
Appointments
Primary Resource: Medical appointments with full lifecycle managementKey Endpoints:
GET /appointments/doctors?uid={doctor_id}- List doctor’s appointmentsPOST /appointments/add?uid={doctor_id}- Create new appointmentGET /appointments/get/{appointment_id}- Get appointment details
Patients
Patients
Primary Resource: Patient records and medical informationKey Endpoints:
POST /patients/add?uid={doctor_id}- Add new patientGET /patients/search?uid={doctor_id}&query={term}- Search patientsPUT /patients/{patient_id}?uid={doctor_id}- Update patient info
Recordings
Recordings
Primary Resource: Audio recording management and processingKey Endpoints:
POST /recordings/add/{appointment_id}- Upload recordingGET /recordings/get/{appointment_id}- Download recordingDELETE /recordings/{appointment_id}- Delete recording
Notes
Notes
Primary Resource: AI-generated clinical notes and insightsKey Endpoints:
POST /notes/add/{appointment_id}- Create/update notesGET /notes/{appointment_id}- Get clinical notesPOST /notes/diagnosis/{appointment_id}- Generate AI diagnosis
Request Format
Standard Headers
All requests should include these headers:User Identification
Most endpoints require auid (user ID) parameter:
File Uploads
File upload endpoints usemultipart/form-data:
Response Format
Success Response
All successful responses follow this structure:Error Response
Error responses provide detailed information:API Categories
Authentication Endpoints
User Authentication
Login, registration, and token management for healthcare professionals
Core Medical Data
Appointments
Complete appointment lifecycle management with AI processing
Patients
Patient records, medical history, and insurance management
AI-Powered Features
Recordings
Audio file management with automatic transcription
Transcriptions
Speech-to-text with speaker diarization
Clinical Notes
AI-generated SOAP notes and medical insights
Document Management
Common Patterns
Resource Relationships
Understanding the relationships between MediSync resources:Workflow Patterns
- Basic Workflow
- Advanced Workflow
- Create Patient - Add patient to system
- Schedule Appointment - Create appointment with patient
- Upload Recording - Add audio file
- Get Transcription - Retrieve AI transcription
- Generate Notes - Create clinical documentation
Pagination
For endpoints that return multiple items:Status Codes
Success Codes
| Code | Meaning | Usage |
|---|---|---|
| 200 | OK | Successful GET, PUT, DELETE |
| 201 | Created | Successful POST (resource created) |
| 204 | No Content | Successful DELETE (no response body) |
Error Codes
| Code | Meaning | Common Causes |
|---|---|---|
| 400 | Bad Request | Invalid request data, validation errors |
| 401 | Unauthorized | Missing or invalid authentication |
| 403 | Forbidden | Insufficient permissions, subscription required |
| 404 | Not Found | Resource doesn’t exist |
| 409 | Conflict | Duplicate data, resource already exists |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Internal Server Error | Server-side error |
Testing Your Integration
Health Check
Verify API connectivity:Authentication Test
Verify your token works:Complete Integration Test
Test the full workflow:1
Authenticate
Login and obtain JWT token
2
Create Patient
Add a test patient to your account
3
Schedule Appointment
Create appointment with the patient
4
Upload Test Recording
Upload a small audio file for processing
5
Verify Processing
Check transcription and notes generation
Rate Limiting
Default Limits:- Standard: 1000 requests/hour
- Premium: 5000 requests/hour
- File uploads: 50-200 uploads/hour (tier dependent)
Support & Resources
Support
Technical support and integration help