Please make sure you invite Vital to your practice as a clinician with admin rights. To connect a user to Vital you must first connect your Freestyle practice to Vital. Vital has two practices (depending on environment):
If you get stuck at any point, help is just a click away! Join our Slack channel or send us a message to email@example.com
Libre's API unfortunately does not record the timestamp offset associated with each user. Although Vital reports a timestamp such as "2022-04-20T13:02:01.123664+00:00" this is not a true utc time for libre, this time will be the time in the users timezone. This is because libre does not report timezones via their API, Hence, Vital cannot infer the timezone offset. Our recommendation is for the developer integrating with Vital to record the timezone offset of each user and adjust the timestamps according to the users timezone.
Once your Freestyle practice is connected to the Vital practice, you need to instruct your user's to connect their Libre account to your practice. This allows Vital to start pulling data from their account. This can be through the Libre app.
Once your user has connected their Libre account, you can connect your user to Vital either via the widget or the API.
To connect your user to Vital via the Widget you can follow the guide here.
- To connect to Freestyle Libre, you must create a Vital Link token.
1 2 3 4 5 6 7 8 9
from vital import Client client = Client( api_key=<API_KEY>, environment="sandbox", region="us" ) link_token = client.Link.create(user_id)
- Libre is an email provider.
This means that when connecting a user we have to use
the connect email provider method, passing in the email of the user's Libre account.
1 2 3 4 5 6 7 8 9
from vital import Client client = Client( api_key=<API_KEY>, environment="sandbox", region="us" ) client.Link.email_provider(link_token, provider, email)
Once this is complete we will start syncing data from their Libre account.