Build on appointments, patients, clinical records, labs and biomarkers through one secure REST API — built to Mexico's NOM-004 standard, with data hosted in Mexico. Read-only by design, so you can connect it with confidence.
# Fetch your organization's appointments curl https://account.lunahealth.app/api/appointments \ -H "Authorization: Bearer YOUR_API_KEY"
{
"items": [
{
"id": "apt_8f2c",
"status": "CONFIRMED",
"start_time": "2026-07-24T10:00:00Z",
"patient": { "first_name": "Maria" },
"service": { "name": "General consult" }
}
],
"meta": { "total": 42, "page": 0 }
}
Connect Luna Salud with the tools your team already runs on
Programmatic access to your organization's data so you can use it in your own systems — no manual exports, no stale spreadsheets, no compliance gray areas.
Feed Power BI, Looker Studio, Snowflake, Google Sheets or Excel with your clinics' real metrics, always current.
Build executive and operational dashboards for appointments, capacity, patients and revenue across sites.
Connect Luna to your accounting, CRM, ERP or data warehouse so information flows without double entry.
Sync lab tests, results and biomarkers into surveillance workflows or population-health dashboards.
Give your AI assistant structured, permissioned access to the clinical record for grounded, source-backed answers.
Build tailored experiences for patients or providers on the same single source of truth your organization uses.
Every endpoint is read-only (GET), returns JSON and supports pagination. Base URL: https://account.lunahealth.app/api
Query scheduling activity with filters by date range, status and patient.
Access your organization's patient directory and each individual patient profile.
Retrieve clinical notes and the structured chart: encounters, vitals, allergies, diagnoses and procedures.
Query lab tests and each patient's biomarkers — values, units and reference ranges included.
Receive automatic notifications when new lab results are uploaded or biomarkers are updated. Read your active configuration.
Every request carries your API key in the Authorization header with the Bearer prefix. Keys are issued from your account settings.
Looking for every parameter and response example? Read the full technical documentation →
No mandatory SDK, no heavy setup. If your language speaks HTTP, it can already talk to Luna Salud.
An administrator generates it from account.lunahealth.app, under Settings → API. The key grants read-only access scoped to your organization.
Include the key in the Authorization: Bearer … header of every request. Keep it server-side only, never in the browser.
Call any endpoint, paginate with page and rowsPerPage, and subscribe to webhooks to react in real time.
# A patient's critical biomarkers curl "https://account.lunahealth.app/api/biomarkers?patientId=pat_456&status=CRITICAL" \ -H "Authorization: Bearer YOUR_API_KEY"
{
"items": [
{
"name": "Fasting glucose",
"value": 148,
"unit": "mg/dL",
"status": "CRITICAL",
"reference_range": "70-99"
}
],
"meta": { "total": 3, "rowsPerPage": 50 }
}
No surprises: REST over HTTPS, clean JSON, and a read-only surface that can't break your data.
HTTP + JSON over HTTPS. Works with any language or platform — no proprietary client required.
Consistent JSON with pagination metadata (page, rowsPerPage, total) on every list.
The API reads, never writes. Connect it with confidence — no risk of altering clinical records.
Your key only ever sees your organization's data. Tenant isolation comes built in.
Get lab and biomarker events as they happen instead of polling in a loop.
Parameters, examples and responses documented at docs.lunasalud.mx so teams ship fast.
Built for organizations that answer to both U.S. and Mexican healthcare requirements. Luna Salud is HIPAA-aligned and built to Mexico's NOM-004-SSA3 clinical-record standard — so foreign entities operating in Mexico get a single, compliant source of clinical data.
Patient data belongs to your organization. The API is read-only, access is organization-scoped, and keys are issued and revoked from your account at any time.
It's a REST API for programmatically reading your Luna Salud account data: appointments, patients, clinical records, lab tests and biomarkers. It's built for clinics, labs and healthcare enterprises operating in Mexico — including foreign companies — that need to connect clinical data with reports, dashboards, other systems or AI agents.
The API runs on Luna Salud's HIPAA-aligned infrastructure: protected health information is handled to the U.S. HIPAA standard, encrypted with AES-256 in transit and at rest, and accessed with per-organization API keys. It's a strong fit for U.S. and international entities that must meet HIPAA while operating in Mexico.
Yes. Clinical data is structured in line with Mexico's NOM-004-SSA3 standard for the electronic clinical record, and patient data is hosted in Mexico. This lets a single API satisfy both HIPAA expectations and Mexican regulatory requirements at once.
Patient data is hosted in Mexico and remains your organization's property. The API is read-only and access is scoped to your organization, so data residency and tenant isolation are handled by default.
No. The Luna Salud API is read-only: you can query information but cannot create, edit or delete records. This is a security design choice, so you can connect it without any risk of altering clinical records.
The main endpoints are /appointments, /patients, /patient, /patient-charts, /biomarkers, /lab-tests, /lab-test-biomarkers and /webhooks/config. All use the GET method and return paginated JSON.
An administrator generates it from account.lunahealth.app, under Settings → API or Integrations. The key identifies your organization and goes in the Authorization: Bearer header of every request. You can regenerate it at any time if it's ever compromised.
Any language that can make an HTTP request — JavaScript/Node, Python, PHP, Go, Java and more — plus no-code platforms like Zapier or Make, and BI tools such as Power BI, Looker Studio, Snowflake and Google Sheets.
The full documentation, with every parameter, request example and response, lives at docs.lunasalud.mx. It covers each endpoint and how to authenticate.
Issue your API key, read the docs, and connect Luna Salud's clinical data with the tools your team already uses — HIPAA-aligned and NOM-004 ready.
