Clinical Data Exchange (CDex)
Unsolicited exchange of clinical data - FHIR resources, C-CDA documents, PDFs and more - proactively sent from providers to payer systems.
Overview
The Clinical Data Exchange (CDex) API is a FHIR-based interoperability API that enables an unsolicited data-exchange flow, where a provider proactively sends relevant clinical data to payer systems without a prior explicit request, based on a known business or clinical need.
It enables the exchange of a wide range of clinical data formats, including FHIR resources and Bundles, C-CDA documents, PDFs, and other file types.
To enable efficient exchange of large clinical documents, the CDex API supports a PreSigned URL-based attachment workflow. Clients obtain a secure, time-limited PreSigned URL to upload documents and then reference the uploaded content during CDex submission. This approach improves performance, reduces payload size, and provides a secure and scalable mechanism for exchanging large clinical attachments.
New to the CDex API? The API Guide provides guidance on exchanging supporting clinical information through the CDex API, including unsolicited attachment submission, the pre-signed URL mechanism for attachments, request processing, and response handling. It also includes the API details needed to get started, such as base URLs, supported scopes, resources, and required request headers.

Capability Statement
Developers can access the Acentra Health FHIR server capabilities for the CDex API using the CapabilityStatement endpoint:
The CapabilityStatement describes the supported profiles, interactions, and authorization and token endpoints.
API Access Setup
Clients can retrieve SMART configuration details by invoking the SMART configuration endpoint at /.well-known/smart-configuration, appended to the FHIR Base URL.
Getting an Access Token
The CDex API uses SMART Backend Services (system-to-system) authorization. Authenticate with a signed JWT client_assertion, signed with the private key that matches the public key you registered. No secret is sent over the wire. Request the token with the client_credentials grant.
| Header | Value |
|---|---|
| content-type | application/x-www-form-urlencoded |
| accept | application/json |
| Parameter | Value |
|---|---|
| grant_type | client_credentials |
| scope | {scopes} (space-separated; only scopes approved for your registration) |
| client_assertion_type | urn:ietf:params:oauth:client-assertion-type:jwt-bearer |
| client_assertion | {signed_jwt} |
| Claim | Value |
|---|---|
| iss | {client_id} |
| sub | {client_id} |
| aud | https://sb.fhir.mhbapp.com/sof/oauth2/token |
| iat | Issue time (current time, in seconds since epoch) |
| exp | Expiry; keep it short, for example 5 minutes after iat |
| jti | Unique ID. Each assertion can be used once; a repeated jti is rejected. |
access_token as the Bearer token on API requests. The sandbox also accepts client_id with client_secret for quick testing, but client_assertion is the recommended method.Operations
The CDex API supports the following operations.
Supported Profiles
The CDex API supports the following profiles.
Request Headers
The following headers must be included in requests made using any supported CDex API request profiles.
| Header | Value |
|---|---|
| content-type | application/json |
| accept | application/json |
| authorization | Bearer {access_token} |
Sample Requests & Responses
The CDex API is available at one IG version, 2.1.0. The identifiers used to submit PAS requests give you a PA tracking ID, which you then use as the TrackingId in CDex requests.
Important Information for EHR Systems
| Topic | Reference |
|---|---|
| Privacy, Security and HIPAA | healthit.gov - Privacy, Security and HIPAA |
| ONC Model Privacy Notice | healthit.gov - Model Privacy Notice |