ChartVoyant Developers
Markdown

ChartVoyant API & MCP

OpenAPI 3.1 contract reference

LiveOpenAPI 3.1.0

ChartVoyant serves a live, machine-readable OpenAPI 3.1 document from the API container with no authentication required. Import it into Postman, Bruno, Insomnia, or typed client generators.

GET https://chartvoyant.com/api/openapi.json

Fetch the live specification

curl -sS "https://chartvoyant.com/api/openapi.json" | jq '.info, (.paths | keys)'

Note on routing: at the public apex, nginx strips the /api prefix before forwarding to the API container, so a path listed in openapi.json as /v1/patients is called externally at https://chartvoyant.com/api/v1/patients (and /openapi.json is served at https://chartvoyant.com/api/openapi.json).

Security schemes in components.securitySchemes

Scheme NameTypeDescription
platformApiKeyhttp (bearer, format cvk)ChartVoyant practice API key (cvk_<prefix>_<secret>), bound to one office, read_only or full.
patientMcpKeyhttp (bearer, format cvpk)Patient MCP key (cvpk_<prefix>_<secret>), read-only, bound to one patient at one practice.
bearerAuthhttp (bearer, format AIMR-HMAC)Signed session token from /v1/auth/login (staff and portal web sessions; not for third-party server integrations).
devHeaderTenant / devHeaderPrincipalapiKey (header)Local synthetic development identity headers only (disabled in secure/production mode).

Operations in the OpenAPI 3.1 contract

OpenAPI PathExternal Production URLMethodsSummary
/healthz/api/healthzGETLiveness probe (unauthenticated).
/readyz/api/readyzGETReadiness probe verifying database connectivity (unauthenticated).
/openapi.json/api/openapi.jsonGETReturns the OpenAPI 3.1 JSON document itself (unauthenticated).
/v1/system/status/api/v1/system/statusGETPublic platform component status snapshot (unauthenticated). See Public Status API.
/v1/system/practice-status/api/v1/system/practice-statusGETPublic PHI-free per-practice health lookup by Practice ID query param id.
/v1/context/api/v1/contextGETResolved tenant and principal context for the caller's credential.
/v1/practitioners/api/v1/practitionersGETList practitioners in the practice (optional limit, locationId).
/v1/practitioners/{id}/api/v1/practitioners/{id}GETRead one practitioner by UUID.
/v1/locations/{id}/providers/api/v1/locations/{id}/providersPUTSet which providers work at a clinic site (administrator only).
/v1/patients/api/v1/patientsGET, POSTSearch patients (mrn, q, limit) or create a patient (PatientCreate).
/v1/patients/{id}/api/v1/patients/{id}GETRead one patient by UUID.
/v1/encounters/api/v1/encountersPOSTCreate an encounter (EncounterCreate; publishes visit.encounter.started).
/v1/documents/api/v1/documentsPOSTRegister document upload metadata (DocumentRegister).
/v1/inbound-documents/awaiting-confirmation/api/v1/inbound-documents/awaiting-confirmationGETList inbound faxes/referrals awaiting patient confirmation.
/v1/inbound-documents/{id}/confirm/api/v1/inbound-documents/{id}/confirmPOSTRecord patient confirmation or field corrections on an extracted document.
/v1/mcp/api/v1/mcpPOSTStateless Streamable HTTP JSON-RPC 2.0 Practice MCP server. See Practice MCP.
/v1/portal/mcp/api/v1/portal/mcpPOSTStateless Streamable HTTP JSON-RPC 2.0 Patient MCP server. See Patient MCP.
/v1/portal/mcp/{key}/api/v1/portal/mcp/{key}POSTPatient MCP server with cvpk_… key in the final URL path segment.
/v1/portal/mcp-keys/api/v1/portal/mcp-keysGET, POSTList or create a signed-in patient's MCP keys (portal session + password).
/v1/portal/mcp-keys/{id}/revoke/api/v1/portal/mcp-keys/{id}/revokePOSTImmediately revoke one of the signed-in patient's MCP keys.

Core component schemas

SchemaRequired FieldsProperties
ErrorEnvelopeerror.code, error.message, error.correlationIddetails (optional structured validation or context details)
HumanName—family (string), given (string[])
Patient—id (uuid), mrn, name (HumanName), birth_date (date), language, version (integer)
PatientCreatemrn, namemrn, name (HumanName), birthDate (date), language
EncounterCreatepatientId, encounterTypepatientId (uuid), practitionerId (uuid), encounterType, status, startsAt (date-time)
DocumentRegisterdocTypepatientId (uuid), encounterId (uuid), docType, description

The OpenAPI document covers the core contract routes and does not yet enumerate every route in the application; email info@chartvoyant.com if your integration needs additional endpoints.