Vital Link API covers only cloud-based providers.Your mobile app has to manage connections with SDK-based providers — such as Apple HealthKit and Android Health
Connect — through the Vital Mobile Health SDK, separately from Vital Link.
1
Your Backend
Create a Vital Link Token for a user using the Create Link Token endpoint.
Vital Link Token expires 60 minutes after its creation.
2
Your Frontend
Use the Link Token to launch the Link Widget on your frontend.

Option 1: Opening the Link Widget by URL
Option 1: Opening the Link Widget by URL
You can launch the Vital Link Widget using the Link Web URL (
link_web_url
) as provided by the
Generate a Link Token endpoint:- If you have created the Link Token for a specific OAuth provider, Vital Link will dispatch the user automatically to the provider’s sign-in page.
-
Otherwise, your user will be presented with a list of providers to connect to. You can
customize the list via the
filter_on_providers
parameter when creating the Link Token.
redirect_url
you specified earlier
when creating the Link Token. We will also append query parameters to the redirection target
based on the Link flow outcome:Flow state | Query parameters |
---|---|
Success | state=success |
Error | See Link Errors. |
Option 2: Using the `useVitalLink` React hook (`@tryvital/vital-link`)
Option 2: Using the `useVitalLink` React hook (`@tryvital/vital-link`)
Launching Vital-Link