MediFlow AI
Resources · API Reference

API Reference

The full endpoint surface of the MediFlow AI backend. All paths are relative to /api.

All routes except /auth/* require a Bearer JWT tokenInteractive Swagger docs available at /docs on a running backend instance

Auth

POST/auth/registerCreate a new user account
POST/auth/loginAuthenticate and receive a JWT access token
GET/auth/meReturn the currently authenticated user

Patients

GET/patientsList patients
POST/patientsRegister a new patient
GET/patients/:idGet a single patient by ID
GET/patients/:id/allergiesGet a patient's known allergies

Vitals

GET/patients/:id/vitalsList recorded vitals for a patient
POST/patients/:id/vitalsRecord new vitals for a patient

Symptoms

GET/patients/:id/symptomsList recorded symptoms for a patient
POST/patients/:id/symptomsRecord new symptoms for a patient

Assessment

GET/patients/:id/assessmentsList AI clinical assessments for a patient
POST/patients/:id/assessmentRun a new AI clinical assessment
PATCH/assessments/:idUpdate doctor notes, status, or review date

Prescriptions

GET/patients/:id/prescriptionsList prescriptions for a patient
POST/patients/:id/prescriptionsCreate a new prescription draft
POST/prescriptions/:id/check-interactionsRun a drug interaction & allergy check
PATCH/prescriptions/:id/doctor-reviewApprove or reject as the prescribing doctor
PATCH/prescriptions/:id/pharmacist-reviewApprove or reject as the validating pharmacist
GET/prescriptions/:id/pdfDownload the generated prescription PDF

Counselling

GET/prescriptions/:id/counsellingList patient counselling entries for a prescription
POST/prescriptions/:id/counsellingGenerate AI patient counselling content

Follow-ups

GET/patients/:id/appointmentsList follow-up appointments for a patient
POST/patients/:id/appointmentsSchedule a follow-up appointment
GET/prescriptions/:id/remindersList medication reminders for a prescription
POST/prescriptions/:id/remindersCreate medication reminders for a prescription

Notifications

GET/notificationsList notifications for the current user
PATCH/notifications/:id/readMark a notification as read

Audit

GET/auditList audit log entries (admin role required)

This page lists the endpoint surface only. For exact request/response schemas, validation rules, and to try requests live, run the backend and open the auto-generated Swagger UI at /docs.