Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.junction.com/llms.txt

Use this file to discover all available pages before exploring further.

Junction 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 Junction Mobile Health SDK, separately from Junction Link.
1

Your Backend

Create a Junction Link Token for a user using the Create Link Token endpoint.
A Junction Link Token expires 60 minutes after its creation.

import { JunctionClient, JunctionEnvironment } from "@junction-api/sdk";

const client = new JunctionClient({
    apiKey: "YOUR_API_KEY",
    environment: JunctionEnvironment.Sandbox,
});

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

2

Your Frontend

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

Option 1: Opening the Link Widget by URL