---
title: "Connect Token"
method: POST
path: "/v2/credentials/{platform}/connect-token"
tags: ["Credentials v2"]
---

# Connect Token

`POST /v2/credentials/{platform}/connect-token`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/credentials/{platform}/connect-token`
- Auth: HTTP bearer

Connect a token-based platform (Mux, Vimeo OTT).

For Mux: token_id = Mux Token ID, token_secret = Mux Token Secret
For Vimeo OTT: token_id = API key, token_secret = API secret

profile_id comes from auth cookie only — never from request body.

## Path parameters

- `platform` string, required

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- TokenConnectRequest: Request body for token-based platform connection (Mux, Vimeo OTT).
  - `token_id` string, required
  - `token_secret` string, required
  - `nickname` string, nullable
  - `reconnect_credential_id` string, nullable

## Response `200`

Successful Response

- OAuthCallbackResponse: Response after successful OAuth callback.
  - `credential_id` string, required
  - `platform` string, required
  - `account_name` string, required
  - `account_username` string, nullable, required
  - `display_name` string, required
  - `return_context` object, nullable
  - `message` string
  - `account_label` string, nullable
  - `already_connected` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
