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- List doctor’s appointmentsPOST /appointments/add- Create new appointmentGET /appointments/get/{appointment_id}- Get appointment details
Recordings
Recordings
Primary Resource: Audio recording management and processingKey Endpoints:
GET /recordings- List all recordingsGET /recordings/{appointment_id}- Get recordings by appointmentDELETE /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 notes
Request Format
Standard Headers
All requests should include these headers:User Identification
User identification is automatically handled through the JWT token. The server extracts the user ID from the token’s payload to authenticate and authorize requests. No separate user ID parameter is required.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: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