ChartVoyant Developer Documentation
Build on the chart
Connect clinical apps, AI agents, lab and hospital feeds, population-health pipelines, and practice tools to ChartVoyant. Every capability below documents its real endpoints, authentication, limits, and production status.
Choose how to integrate
ChartVoyant exposes two main integration models — tenant-scoped API keys for practice and AI-agent workflows, and standards-based SMART on FHIR R4 with zero fees — alongside dedicated interfaces for HL7 v2 feeds, patient-controlled MCP keys, and complete record exports.
ChartVoyant REST API
Tenant-scoped JSON API authenticated with a practice bearer key (cvk_…) for patients, practitioners, encounters, documents, and context.
Practice MCP Server
Connect Claude Code or any MCP client to a practice chart with 28 read tools and 8 scheduling and inbox tools.
POST https://chartvoyant.com/api/v1/mcpPatient MCP Server
Patients generate a read-only cvpk_… key in the portal to connect Claude, ChatGPT, Cursor, or VS Code to their own record.
SMART on FHIR-4 & US Core 6.1
Patient, clinician, EHR launch, Backend Services, and Bulk Data 2.0 across 27 US Core 6.1 resources. No fee and no revenue share.
https://fhir.chartvoyant.com/r4/{practice}HL7 v2 Interfaces
Labs, imaging centers, and hospitals deliver ORU^R01 results and ADT events over HTTPS with synchronous ER7 ACKs.
Complete EHI Export
Published Archive Format 2.0 (ZIP64 of native JSON tables, US Core NDJSON, original documents, and frozen schema v1) with synthetic sample.
Archive format 2.0 · schema-v1.jsonMake your first request
Request a self-serve sandbox key in about a minute — it provisions your own isolated synthetic office for 14 days with read and write access and zero real patient data — then query the REST API or attach an MCP client:
# Sandbox: synthetic patients only curl "https://chartvoyant.com/api/v1/patients?limit=5" \ -H "Authorization: Bearer $CHARTVOYANT_API_KEY" \ -H "X-Purpose: operations"
const res = await fetch("https://chartvoyant.com/api/v1/patients?limit=5", {
headers: {
Authorization: `Bearer ${process.env.CHARTVOYANT_API_KEY}`,
"X-Purpose": "operations",
Accept: "application/json"
}
});
if (!res.ok) throw new Error(`ChartVoyant API error: ${res.status}`);
const { data, page } = await res.json();import os, urllib.request, json
req = urllib.request.Request(
"https://chartvoyant.com/api/v1/patients?limit=5",
headers={
"Authorization": f"Bearer {os.environ['CHARTVOYANT_API_KEY']}",
"X-Purpose": "operations",
"Accept": "application/json",
},
)
with urllib.request.urlopen(req) as resp:
payload = json.loads(resp.read().decode("utf-8"))
All capabilities directory
Live means the surface answers in production today. Capabilities gated per interface, per app, or in beta/synthetic mode say so explicitly. ChartVoyant is in ONC testing with Drummond Group and is not yet CHPL-listed.
| Capability | Status | Auth | Endpoint / Format |
|---|---|---|---|
| REST API Tenant-scoped JSON contract for practice records | Live | cvk_… API key | https://chartvoyant.com/api/v1 |
| OpenAPI 3.1 Contract Machine-readable JSON contract & event envelopes | Live | Public | GET https://chartvoyant.com/api/openapi.json |
| Practice MCP Server 28 read + 8 scheduling/inbox tools for AI agents | Live | cvk_… API key | POST https://chartvoyant.com/api/v1/mcp |
| Patient MCP Server 10 read-only tools for a patient's own AI assistant | Live | cvpk_… patient key | POST https://chartvoyant.com/api/v1/portal/mcp |
| SMART on FHIR-4 Guide End-to-end standardized API reference & Inferno runs | Live ONC in progress | SMART OAuth 2 | https://fhir.chartvoyant.com/r4/{practice} |
| FHIR R4 API 27 US Core 6.1 resource types, $everything, $docref | Live ONC in progress | SMART token | https://fhir.chartvoyant.com/r4/{practice} |
| SMART App Launch 2 Patient standalone, clinician standalone & EHR launch | Live ONC in progress | OAuth 2 + PKCE S256 | https://auth.chartvoyant.com/oauth/authorize |
| SMART Backend Services System-to-system access via RS384/ES384 assertions | Live ONC in progress | private_key_jwt | POST https://auth.chartvoyant.com/oauth/token |
| Bulk Data Export 2.0 Asynchronous Group-level NDJSON export | Live Group-level | Backend token | GET {base}/Group/{id}/$export |
| SMART Write 7 writable FHIR types; clinician review before chart | New Per practice & app | SMART .c/.u token | POST {base}/{Type} |
| Practice Endpoint Directory FHIR Bundle of active customer FHIR base URLs | Live Public | None | GET https://chartvoyant.com/fhir/service-base-urls.json |
HL7 v2 InterfacesORU^R01 lab/rad results & ADT over HTTPS | New Per interface | HL7 sender key or system/hl7v2-ingest | POST /api/v1/interop/hl7/{interfaceId} |
| FHIR Write to Other Systems ChartVoyant as a FHIR R4 client sending Observations | New Synthetic mode | private_key_jwt RS384 | POST {your base}/Observation |
| C-CDA Documents On-demand Continuity of Care Document XML | Beta Export only | SMART token or API key | GET {base}/Patient/{id}/$ccd |
| Complete EHI Export (v2.0) Designated record set archive + frozen schema v1 | Live ONC in progress | In-app admin + 2FA | schema-v1.json · sample ZIP |
| Public Status API PHI-free JSON health & practice lookup | Live Public | None | GET https://chartvoyant.com/api/v1/system/status |
| athenaOne Chrome Extension In-browser patient banner bridge for GLP-1 workflows | Live | Staff session + pinned extension ID | Download & install |
Two primary authentication doors
The ChartVoyant API and the standards-based FHIR API are separate front doors with separate terms. See Authentication & Credentials for full header and token details.
| Dimension | ChartVoyant API Key | SMART on FHIR |
|---|---|---|
| Used for | REST API, Practice MCP, CCD over REST | FHIR R4, Bulk Data, SMART Write, CCD over FHIR |
| Credential | Bearer key cvk_… bound to one practice (patients use cvpk_… on Patient MCP) | OAuth 2 access tokens after patient, clinician, or practice authorization |
| Reads & writes | read_only or full, set when issued | Read and search across 27 US Core types; clinician-reviewed SMART write per practice & app |
| HL7 v2 feeds | Dedicated HL7 sender key bound to one interface | Backend client granted system/hl7v2-ingest |
| Terms & cost | Sandbox Terms; production requires signed API Use Agreement + BAA with practice (35% commercial profit share) | Public terms in the SMART on FHIR-4 guide — no fee and no revenue share |
Sandbox vs production with an API key
Start in the sandbox with a one-minute self-serve form and zero paperwork. When a live practice sponsors your integration, follow the production onboarding checklist.
Build against synthetic data
https://chartvoyant.com/api/v1
- Your own key, issued on the spot from a short form. Not shared with other developers. Good for 14 days.
- Full read and write on synthetic patients in your own isolated sandbox office.
- Cannot reach any real practice or anyone else's sandbox, and nothing leaves it: no faxes, texts, calls, emails, prescriptions, claims, or outbound sends. No PHI, no BAA, no signature.
- Works directly with the Practice MCP server so you can test AI agents safely first.
- Agree to the ChartVoyant Sandbox Terms when you request it.
Connect to a live practice
https://chartvoyant.com/api/v1
- Bound to one practice, at an explicit access level and expiry set at issuance.
- The sponsoring practice confirms the request — it is their data, not ours to hand out.
- A signed API Use Agreement on file before issuance, signed online at e-sign.chartvoyant.com/apiuseagreement.
- An executed Business Associate Agreement (BAA) between you and the practice (plus a qualifying Model Provider BAA if an AI agent touches Data).
Rate limits at a glance
Over-budget calls return HTTP 429 with a Retry-After header. Higher limits carry no fee — see Rate Limits & Error Codes for full details and error envelopes.
| Scope | Burst | Sustained |
|---|---|---|
| API key, per key | 150 requests / second | 3,600 requests / minute |
| API key, per practice (all keys and staff sessions) | 400 requests / second | 12,000 requests / minute |
| FHIR, per token | 300 requests / second | 9,000 requests / minute |
| FHIR, per practice | 600 requests / second | 18,000 requests / minute |
| Self-serve sandbox key, per key (also 5,000 / day) | 38 requests / second | 900 requests / minute |
Usage policy & sandbox terms
Sandbox keys are governed by the ChartVoyant Sandbox Terms (version 1.0). Production API keys are governed by the 14-point API key usage policy and the ChartVoyant API Use Agreement (version 1.2), including server-side secret storage, minimum-necessary data access, no model training or shadow charts, 35% profit share on commercialized products built on the proprietary API, and strict Model Provider BAA requirements for AI agents.
Not available yet
There are no developer webhooks or event subscriptions yet. Poll the REST API or run incremental Bulk Data exports with _since.
Practice MCP takes a cvk_… bearer key; Patient MCP takes a cvpk_… key or URL path token. Interactive OAuth for MCP clients is not yet built.
HL7 v2 arrives over HTTPS only. MLLP over VPN/TLS and SFTP file pickup are not offered.
Frequently asked questions
Should I use a ChartVoyant API key or SMART on FHIR?
Use an API key if you need practice scheduling, inbox workflows, billing context, or Practice MCP tools. Use SMART on FHIR if you are building a patient-facing app, a clinician launch app, or a population Bulk Data integration — it is free, standards-based, and carries no revenue share.
Can I get a production key without a sponsoring practice?
No. Every production key is bound to one practice that confirms the integration. Build and demo against a self-serve synthetic sandbox key first.
Can I connect Claude Code or another AI agent?
Yes — via the Practice MCP server for practice workflows (sandbox today; production requires version 1.2 of the API Use Agreement and a Model Provider BAA covering MCP/tool traffic), or via the Patient MCP server for patients connecting their own record.
Where do I report a security vulnerability?
Email info@chartvoyant.com with reproduction details. Never test against a live practice.