# From sandbox to production: our onboarding process

Canonical URL: https://docs.chartvoyant.com/onboarding/

Production integrations touch real medical records. Every go-live follows a clear sequence with explicit ownership between your engineering team, the sponsoring medical practice, and ChartVoyant.

## Track 1: Production ChartVoyant API key & Practice MCP

For practice systems, custom integrations, and AI agents using `https://chartvoyant.com/api/v1` or `/api/v1/mcp`. Production requests are reviewed by a person, usually within **two business days**.

| Step | What you do | What the practice / ChartVoyant does |
| --- | --- | --- |
| **1. Prototype in sandbox** | Request a 14-day synthetic sandbox key and validate every route or MCP tool against synthetic records. | Automated provisioning in ~1 minute under the [Sandbox Terms](https://chartvoyant.com/sandbox-terms/). |
| **2. Execute practice BAA** | Sign a Business Associate Agreement directly with the sponsoring practice (and, if using an AI agent, ensure your Model Provider BAA covers MCP/tool traffic with zero training). | The practice (covered entity) executes its BAA with you and approves the integration scope. |
| **3. Submit request** | Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=Production%20API%20key%20request) naming the practice, integration purpose, required endpoints, access level (`read_only` or `full`), and technical contact. | ChartVoyant confirms directly with the practice administrator that they requested the connection. |
| **4. Sign API Use Agreement** | Complete and sign the [API Use Agreement (v1.2)](https://docs.chartvoyant.com/api-use-agreement/) online at [e-sign.chartvoyant.com/apiuseagreement](https://e-sign.chartvoyant.com/apiuseagreement). | ChartVoyant countersigns, emails you the executed PDF, and attaches it to the key record. |
| **5. Credential delivery & go-live** | Store the `cvk_…` key in your secrets manager, send a test `GET /context` call, and verify error handling. | ChartVoyant delivers the key out-of-band to the named technical contact and monitors initial traffic. |

## Track 2: SMART on FHIR apps & Backend Services (no fee)

For patient standalone apps, clinician launch apps, and system-to-system Bulk Data / FHIR integrations. **Zero fees and zero revenue share apply.** Complete eligible requests are registered within **five business days**.

| Step | What you do | What ChartVoyant / the practice does |
| --- | --- | --- |
| **1. Read discovery & build** | Inspect [SMART on FHIR-4 guide](https://docs.chartvoyant.com/fhir/), [service-base-urls.json](https://docs.chartvoyant.com/endpoint-directory/), and `.well-known/smart-configuration`. Implement PKCE `S256` or `private_key_jwt` (`RS384`/`ES384`). | Public documentation and discovery require no account, fee, or agreement. |
| **2. Request app registration** | Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=SMART%20app%20registration%20request) or use [ChartVoyant Support](https://chartvoyant.com/support/) with app name, contact, client type (`none`, `client_secret_basic`, or `private_key_jwt`), exact redirect URIs, optional EHR launch URL, requested scopes, practice, and public JWKS / HTTPS `jwks_uri`. Send no secrets or PHI. | ChartVoyant applies objective identity and configuration checks equally to every developer and enables complete eligible apps within **5 business days**. (Apps created via dynamic registration at `/oauth/register` start disabled until enabled here.) |
| **3. Authorize & connect** | Launch against the practice's discovered authorization/token endpoints and honor the returned scopes and revocation. | For patient apps, the patient consents in the portal. For clinician or Backend Services apps, the clinician or practice administrator authorizes access. |

## Track 3: HL7 v2 interfaces (labs, radiology & hospitals)

- **Scope the feed** Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=HL7%20v2%20interface%20request) with the practice, sender, message types (`ORU^R01`, supported `ADT`), HL7 version, `MSH-3`/`MSH-4`, `PID-3` assigning authority, expected volume, and any intermediary HIE or engine. Send no patient data.

- **Execute the HL7 Interface Agreement & BAAs** Sign the 12-month [HL7 v2 Interface Agreement](https://e-sign.chartvoyant.com/hl7interfaceagreement) at `e-sign.chartvoyant.com` plus BAAs covering the practice and any intermediary.

- **Validate against a sandbox interface (`MSH-11 = T`)** Send synthetic ER7 messages to a dedicated sandbox `interfaceId` until every message type returns `MSA|AA`.

- **Turn on the practice interface** Once agreements, independent security testing, and the practice's go-ahead are on file, ChartVoyant activates the production `interfaceId`. See [HL7 v2 Interfaces](https://docs.chartvoyant.com/hl7/).

## Track 4: Outbound FHIR destinations

Outbound FHIR write ([ChartVoyant as a FHIR R4 client](https://docs.chartvoyant.com/fhir-outbound/)) runs in **synthetic mode** in production today against ChartVoyant test servers. Real-data sending per destination will open in a later release after an executed destination agreement, public JWKS registration, and independent security testing.

## PHI, BAAs & practice audit visibility

### Every production read and write is visible to the practice

The medical practice is the HIPAA covered entity; ChartVoyant and your production integration act as business associates (except where a patient directs their own access via SMART standalone or Patient MCP). Every API key call, MCP tool call, SMART read/write, and HL7 delivery is recorded in the practice's append-only, hash-chained audit trail with correlation IDs.
