Sending messages between Practitioner and Patientd

What APIs we need to use send messages between Patients and Practitioners as we are using react on frontend using openemr database in backend.