Link
Overview
Overview
Cobalt Link is the client-side component that your users will interact with in order to link their EMR to Cobalt and allow you to access their EMR via the Cobalt API. Link is used to obtain a public_token
, which can then be exchanged for an access_token
, which is used to authenticate requests to the Cobalt API.
The Cobalt flow has the following steps:
- Call
https://api.usecobalt.com/link/token/create
to create alink_token
and pass it to your app’s client. - Use the
link_token
to open Link for your user. In theonSuccess
callback, Link will provide a temporarypublic_token
. - Call
https://api.usecobalt.com/link/token/exchange
to exchange thepublic_token
for a permanentaccess_token
. - Store the
access_token
and use it to make API requests.