---
title: "Obtain a token from 3rd party data source"
method: GET
path: "/v3/connectors/{connectorName}/connect"
tags: ["connectors"]
---

# Obtain a token from 3rd party data source

`GET /v3/connectors/{connectorName}/connect`

## Request

- Base URL: `https://app.quantimo.do/api`
- URL: `https://app.quantimo.do/api/v3/connectors/{connectorName}/connect`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://app.quantimo.do/api/v1/oauth/authorize`
    - Token URL: `https://app.quantimo.do/api/v1/oauth/token` scopes: `basic`
- TypeScript: <https://skmtc.dev/quantimo/apis/curedao-unified-health-api/docs/v3/connectors/:connectorName/connect/get.ts> (a function with typed inputs; its response is checked against the schema)

Attempt to obtain a token from the data provider, store it in the database. With this, the connector to continue to obtain new user data until the token is revoked.

## Path parameters

- `connectorName` 'facebook' | 'fitbit' | 'github' | 'googlecalendar' | 'googlefit' | 'medhelper' | 'mint' | 'moodpanda' | 'moodscope' | 'myfitnesspal' | 'mynetdiary' | 'netatmo' | 'rescuetime' | 'runkeeper' | 'slack' | 'sleepcloud' | 'slice' | 'up' | 'whatpulse' | 'withings' | 'worldweatheronline' | 'foursquare' | 'strava' | 'gmail', required

## Query parameters

- `userId` number

## Response `200`

Successful operation

## Other responses

- `401`: Not Authenticated
- `404`: Method not found. Could not execute the requested method.
- `500`: Error during update. Unsupported response from update().

---

[API](https://skmtc.dev/quantimo/apis/curedao-unified-health-api.md) - [All operations](https://skmtc.dev/quantimo/apis/curedao-unified-health-api/llms.txt) - [OpenAPI document](https://skmtc.dev/quantimo/apis/curedao-unified-health-api/revisions/7ac03025c3d2?raw)
