Connect a clinic's website to Moonshot EHR

For the web team or agency that builds a clinic's site. Everything here works today for any clinic on Moonshot EHR once the clinic turns it on. Patient records stay inside the EHR, except through chart routes the clinic's owner opens to a system under its business associate agreement.

Guides

Quick start: read

curl -s https://api.moonshotehr.com/api/v1/catalog -H 'X-Tenant-Slug: <clinic>'

Every route, field and limit: API v1 reference.

Quick start: write

Create a staff task on a patient's chart, from a server, with a secret API key that has tasks:write:

curl -s https://api.moonshotehr.com/api/v1/patients/3f6b2a9e-1c4d-4e8a-9b7f-2d5c8e1a4b60/tasks \
  -H 'Authorization: Bearer <key>' -H 'Content-Type: application/json' -H 'Idempotency-Key: followup-55102' \
  -d '{ "title": "Call to schedule the 12-week vitamin D recheck", "due_date": "2026-12-11" }'

The same key can also create a patient chart, add a file for staff review and create an unsigned draft note a clinician signs. Nothing written through the API is signed, sent to the patient, prescribed, booked or charged. Permissions and rules: Writing.

What a marketing site cannot reach

Patient records, visit notes, lab results, prescriptions, messages, documents and payment details are not available to a website. That information is protected health information. It stays inside the EHR, where access is tied to a named staff member or the patient's own portal sign-in and every view is recorded.

The one exception is server to server: the clinic's owner can create a secret key for the chart routes, which read patient records and write to them (create a patient chart, and add a file, a task or a draft note for staff to accept), only for a system covered by the clinic's business associate agreement that does not forward the data to advertising platforms. A marketing site is not such a system.

Booking, intake and payment run on the clinic's hosted pages (embedded or linked) so identity checks, consent and payment stay in one place. Your site can start those journeys and hear about outcomes through events; it does not hold the record.

Getting a test clinic

Email support@moonshotclinic.com with the clinic you are building for and your site's addresses. We set up a test clinic for your project and share its identifier, the lead key and the settings you need. Test clinics are set up by our team, not self-serve. A secret API key (it starts mck_test_ on a test clinic) is created by the clinic's owner in the EHR and shown to them once; see Secret API keys.