Getting Started
Introduction
Consolidate Health Connect is an API that lets your application securely access a user’s health record after they authorize your application. It’s designed for use cases that require reliable, consented access to clinical information without building and maintaining direct integrations to individual EHR systems.
What you can do with the API today
Once a patient completes the authorization and EHR connection flows, your app can retrieve user data through these API endpoints (Bearer token required)
If you’re curious about the contents and format of the data returned, we suggest taking a look at our schema on Swagger.
How it works at a high level
The Connect API uses an OAuth2 authorization flow:
Your app sends the user to Consolidate Health using an authorization URL you construct.
The user verifies their email and completes the Consolidate Health onboarding flow.
The user tells us where they receive care
The user connects their EHR system(s) within the Consolidate Health experience using their patient portal credentials.
The patient reviews and approves sharing with your application.
Consolidate Health redirects back to your app with an authorization code.
Your backend exchanges the code for tokens (access + refresh) and receives a patient_id.
Your app uses the access token to retrieve patient data from the API.
The key idea: patients are always in control, and your application only receives data after explicit authorization.
What you need to integrate
You’ll need the following before you begin:
Client credentials (Client ID + Client Secret)
A preregistered redirect URI
Where the patient returns after approving accessA backend service
To exchange the authorization code(s) for tokens securely
⚠️ Important:
The token exchange requires your client secret and must be performed on a backend server (not browser-only frontend code).
Who this is for (common use cases)
Consolidate Health Connect is commonly used by:
Consumer health apps (wellness, chronic condition support, medication management)
AI healthcare products (care navigation, summarization, decision support, patient-facing copilots)
Intake and clinical workflow tools (patient history collection, pre-visit data gathering)
Employee wellness and benefits experiences
Data platforms that need patient authorized or consented record access
Implementation effort: what to expect
Most integrations involve three practical pieces of work:
Create a “Connect your health records” entry point in your app (a button or link).
Build a callback handler at your redirect URI (an endpoint in your app that receives the OAuth authorization code after the user completes consent).
Add a backend token exchange endpoint and store tokens securely for later API calls.
Once that’s done, making data requests is straightforward: include the Bearer token in the Authorization header and call the relevant patient endpoint.
Reliability and safety essentials (read this early)
Even if you aren’t implementing the integration yourself, these requirements matter:
Never expose your client secret in frontend or mobile code.
Validate the state parameter on callback to prevent CSRF attacks.
Plan for token expiration: access tokens expire and must be refreshed (6 hours for the access token, 180 days for the refresh token).
Store tokens securely (encrypted at rest, access-controlled).
Ready to get started? Request Sandbox access
Any other questions? Get in touch