POST
/
v1
/
org
/
{org_id}
/
team_custom_credentials
/
{env}
/
{region}
curl --request POST \
  --url https://api.tryvital.io/management/v1/org/{org_id}/team_custom_credentials/{env}/{region} \
  --header 'Content-Type: application/json' \
  --header 'X-Vital-Org-Key: <api-key>' \
  --data '{
  "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "provider": "oura",
  "client_id": "<string>",
  "client_secret": "<string>",
  "details": {
    "fitbit": {
      "is_hr_enabled": true,
      "workout_verify_token": "<string>",
      "sleep_verify_token": "<string>",
      "body_verify_token": "<string>"
    }
  }
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "client_id": "<string>",
  "client_secret_hash": "<string>",
  "source": "oura",
  "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "details": {
    "fitbit": {
      "is_hr_enabled": false,
      "workout_verify_token": "<string>",
      "sleep_verify_token": "<string>",
      "body_verify_token": "<string>"
    }
  },
  "app_url": "<string>",
  "redirect_url_override": "<string>"
}

The base URL of this endpoint is https://api.tryvital.io/management/.

The endpoint accepts only Management Key (X-Management-Key). Team API Key is not accepted.

OAuth Providers

Bring Your Own OAuth (BYOO) is available for the Grow and Scale plans. WHOOP BYOO is available for the Launch, Grow and Scale plans. See our WHOOP Guide for more information.

While most credentials are active immediately once set through this endpoint, some credentials may not. Check out the Bring Your Own OAuth documentation for more information.

curl --request POST \
  --url https://api.tryvital.io/management/v1/org/{org_id}/team_custom_credentials/{env}/{region} \
  --header 'Content-Type: application/json' \
  --header 'X-Vital-Org-Key: <api-key>' \
  --data '{
  "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "provider": "oura",
  "client_id": "<string>",
  "client_secret": "<string>",
  "details": {
    "fitbit": {
      "is_hr_enabled": true,
      "workout_verify_token": "<string>",
      "sleep_verify_token": "<string>",
      "body_verify_token": "<string>"
    }
  }
}'

Authorizations

X-Management-Key
string
header
required

Path Parameters

org_id
string
required
env
enum<string>
required
Available options:
production,
sandbox
region
enum<string>
required
Available options:
us,
eu

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.