Skip to main contentOverview
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 Link flow has the following steps:
- Call
https://api.usecobalt.com/link/token/create
to create a link_token
and pass it to your app’s client.
- Use the
link_token
to open Link for your user. In the onSuccess
callback, Link will provide a temporary public_token
.
- Call
https://api.usecobalt.com/link/token/exchange
to exchange the public_token
for a permanent access_token
.
- Store the
access_token
and use it to make API requests.