---
title: "Generate Oauth Link Endpoint"
method: GET
path: "/v2/link/provider/oauth/{oauth_provider}"
tags: ["link"]
---

# Generate Oauth Link Endpoint

`GET /v2/link/provider/oauth/{oauth_provider}`

This endpoint generates an OAuth link for oauth provider

## Path parameters

- `oauth_provider` 'oura' | 'fitbit' | 'garmin' | 'strava' | 'wahoo' | 'ihealth' | 'withings' | 'google_fit' | 'dexcom_v3' | 'polar' | 'cronometer' | 'omron' | 'whoop_v2' | 'my_fitness_pal_v2' | 'ultrahuman' | 'runkeeper' | 'google_health', required — ℹ️ This enum is non-exhaustive.

## Headers

- `x-vital-link-token` string, nullable

## Response `200`

Successful Response

- Source
  - `name` string, required
  - `slug` string, required
  - `description` string, required
  - `logo` string, required
  - `group` string, nullable
  - `oauth_url` string, nullable
  - `auth_type` 'oauth' | 'team_oauth' | 'sdk' | 'password' | 'email' | 'app' | '' — ℹ️ This enum is non-exhaustive.
  - `source_type` 'app' | 'ble' | 'device' | 'lab' | 'provider' — ℹ️ This enum is non-exhaustive.
  - `is_active` boolean, nullable
  - `backfill_num_days` integer, nullable
  - `id` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/tryvital/apis/junction-api.md) · [All operations](https://skmtc.net/tryvital/apis/junction-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryvital/junction-api/versions/d28f5cec7d79/schema)
