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.


import { VitalClient, VitalEnvironment } from '@tryvital/vital-node';
import { LinkTokenExchange } from '@tryvital/vital-node/api';


const client = new VitalClient({
    apiKey: '<my_api_key>',
    environment: VitalEnvironment.Sandbox,
});

const request: LinkTokenExchange = {
    userId: "<user_id>",
    provider: "oura",
}
const data = await client.link.token(request)

2

Your Frontend

Use the Link Token to launch the Link Widget on your frontend.