---
title: "connect_channel"
description: "Start connecting a channel: returns a sign-in link for the platform. Give the link to the user — they open it in any browser, sign in with the account that owns the channel and allow access; nothing is connected until they do. The link works once, for 10 minutes. Then call get_connection with the returned state. Needs the **channels** permission. Also available as the MCP tool `connect_channel`."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.mixetape.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: mixetape API › channels

`POST /api/v1/tools/connect_channel`

Start connecting a channel: returns a sign-in link for the platform. Give the link to the user — they open it in any browser, sign in with the account that owns the channel and allow access; nothing is connected until they do. The link works once, for 10 minutes. Then call get_connection with the returned state. Needs the **channels** permission. Also available as the MCP tool `connect_channel`.

## Authentication

- `apiKey`, http, header `Authorization`

## Request body

_Required._

- `connect_channel.platform` (string, required) — The platform to connect; one mixetape has no app for yet is refused
  - one of `"youtube"`, `"facebook"`, `"instagram"`, `"threads"`, `"tiktok"`, `"pinterest"`

## Example request

```json
{
  "platform": "youtube"
}
```

## Code samples

### cURL

```curl
curl --request POST \
  --url https://mixetape.com/api/v1/tools/connect_channel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "platform": "youtube"
}
'
```

### TypeScript

```typescript
const url = 'https://mixetape.com/api/v1/tools/connect_channel';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({platform: 'youtube'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://mixetape.com/api/v1/tools/connect_channel"

payload = { "platform": "youtube" }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The tool's result.

#### Example

```json
{
  "result": null
}
```

- `connect_channel.response.200.result` (unknown, required) — What the tool returns

### 400

The request is invalid; `error` says why.

#### Example

```json
{
  "error": "string"
}
```

- `connect_channel.response.400.error` (string, required) — What went wrong, in plain words

### 401

No valid API key.

#### Example

```json
{
  "error": "string"
}
```

- `connect_channel.response.401.error` (string, required) — What went wrong, in plain words

### 403

The key lacks the permission this needs.

#### Example

```json
{
  "error": "string"
}
```

- `connect_channel.response.403.error` (string, required) — What went wrong, in plain words

### 404

Not found, or not yours.

#### Example

```json
{
  "error": "string"
}
```

- `connect_channel.response.404.error` (string, required) — What went wrong, in plain words


Source: https://docs.mixetape.com/api/channels/connect_channel/index.md
