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:

  1. Call  https://api.usecobalt.com/link/token/create to create a link_token and pass it to your app’s client.
  2. Use the link_token to open Link for your user. In the onSuccess callback, Link will provide a temporary public_token.
  3. Call https://api.usecobalt.com/link/token/exchange to exchange the public_token for a permanent access_token.
  4. Store the access_token and use it to make API requests.