http://localhost:5000
Main chatbot endpoint for medical conversations.
Request:
{
"message": "I have a headache and fever",
"user_id": "user_123"
}Response:
{
"response": "Based on your symptoms...",
"severity": 2,
"type": "medical",
"symptoms": ["headache", "fever"],
"recommendations": ["Rest", "Drink fluids"],
"doctors": ["General Physician"]
}Send OTP to phone number.
Request:
{
"phone": "+1234567890"
}Response:
{
"success": true,
"message": "OTP sent successfully"
}Verify OTP and login.
Request:
{
"phone": "+1234567890",
"otp": "123456"
}Response:
{
"success": true,
"token": "auth_token_here",
"user": {
"user_id": "user_123",
"phone": "+1234567890"
}
}Save family doctor information.
Request:
{
"user_id": "user_123",
"name": "Dr. Smith",
"specialty": "General Physician",
"phone": "+1234567890"
}Get saved family doctor.
Book a new appointment.
Request:
{
"user_id": "user_123",
"doctor_name": "Dr. Smith",
"date": "2025-12-25",
"time": "10:00 AM",
"symptoms": ["headache", "fever"]
}Get all appointments for a user.
Cancel an appointment.
Save vital signs.
Request:
{
"user_id": "user_123",
"blood_pressure": "120/80",
"heart_rate": 75,
"temperature": 98.6
}Get vital history for a user.
Analyze injury/medical images.
Request: Multipart form data with image file
Response:
{
"success": true,
"analysis": "Detected minor injury",
"severity": "mild",
"recommendations": ["Clean the wound", "Apply bandage"]
}Find doctors by specialty and location.
Search medical information.
All endpoints return errors in this format:
{
"success": false,
"error": "Error message here"
}200- Success400- Bad Request401- Unauthorized404- Not Found500- Server Error