---
title: "create_collection"
description: "Create a collection on the account: a YouTube playlist or a Pinterest board. Needs the **manage** permission. Also available as the MCP tool `create_collection`."
---

> 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 › manage

`POST /api/v1/tools/create_collection`

Create a collection on the account: a YouTube playlist or a Pinterest board. Needs the **manage** permission. Also available as the MCP tool `create_collection`.

## Authentication

- `apiKey`, http, header `Authorization`

## Request body

_Required._

- `create_collection.accountId` (string, required) — mixetape account id (list_accounts)
- `create_collection.title` (string, required)
- `create_collection.description` (string, optional)
- `create_collection.visibility` (string, optional)
  - one of `"public"`, `"unlisted"`, `"private"`

## Example request

```json
{
  "accountId": "string",
  "title": "string",
  "description": "string",
  "visibility": "public"
}
```

## Code samples

### cURL

```curl
curl --request POST \
  --url https://mixetape.com/api/v1/tools/create_collection \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountId": "string",
  "title": "string",
  "description": "string",
  "visibility": "public"
}
'
```

### TypeScript

```typescript
const url = 'https://mixetape.com/api/v1/tools/create_collection';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    accountId: 'string',
    title: 'string',
    description: 'string',
    visibility: 'public'
  })
};

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/create_collection"

payload = {
    "accountId": "string",
    "title": "string",
    "description": "string",
    "visibility": "public"
}
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
}
```

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

### 400

The request is invalid; `error` says why.

#### Example

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

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

### 401

No valid API key.

#### Example

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

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

### 403

The key lacks the permission this needs.

#### Example

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

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

### 404

Not found, or not yours.

#### Example

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

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


Source: https://docs.mixetape.com/api/manage/create_collection/index.md
