Skip to main content
GET
Exchange a public token
After a user successfully completes the Link flow, you’ll receive a public_token. Exchange this for an access_token that you can use for subsequent API calls.

Example Request

Example Response

Store this access token securely - you’ll need it for all future API calls related to this user’s EHR connection.

Authorizations

client_id
string
header
required
client_secret
string
header
required
access_token
string
header
required

Query Parameters

public_token
string
required

The public token to exchange for an access token.

Example:

"link-token-example"

Response

Access token issued

success
boolean
required
Example:

true

token
string
required
Example:

"access-token-example"

warnings
string[]

Non-fatal warnings, also carried in Cobalt-Warning. Cached reads remain successful when sync is disabled. Permission-disabled sync warnings include EHR_DATA_MODEL_ACCESS_DENIED and explain restoring EHR access and re-enabling sync; cached data may be empty or stale. Other warning conventions are unchanged.