---
title: "upload_caption"
description: "Upload a subtitle track to a post on the platform: public https SRT or WebVTT on YouTube (400–450 quota units), SRT on Facebook. A track with the same language (and name) is replaced. Needs the **manage** permission. Also available as the MCP tool `upload_caption`."
---

> 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/upload_caption`

Upload a subtitle track to a post on the platform: public https SRT or WebVTT on YouTube (400–450 quota units), SRT on Facebook. A track with the same language (and name) is replaced. Needs the **manage** permission. Also available as the MCP tool `upload_caption`.

## Authentication

- `apiKey`, http, header `Authorization`

## Request body

_Required._

- `upload_caption.id` (string, required) — mixetape post id (list_posts)
- `upload_caption.language` (string, required) — BCP-47, e.g. "en", "id"
- `upload_caption.url` (string, required)
- `upload_caption.name` (string, optional) — Track name; empty is the default track
- `upload_caption.isDraft` (boolean, optional) — Upload without publishing the track

## Example request

```json
{
  "id": "string",
  "language": "string",
  "name": "string",
  "url": "string",
  "isDraft": true
}
```

## Code samples

### cURL

```curl
curl --request POST \
  --url https://mixetape.com/api/v1/tools/upload_caption \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "string",
  "language": "string",
  "name": "string",
  "url": "string",
  "isDraft": true
}
'
```

### TypeScript

```typescript
const url = 'https://mixetape.com/api/v1/tools/upload_caption';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({id: 'string', language: 'string', name: 'string', url: 'string', isDraft: true})
};

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

payload = {
    "id": "string",
    "language": "string",
    "name": "string",
    "url": "string",
    "isDraft": True
}
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
}
```

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

### 400

The request is invalid; `error` says why.

#### Example

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

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

### 401

No valid API key.

#### Example

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

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

### 403

The key lacks the permission this needs.

#### Example

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

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

### 404

Not found, or not yours.

#### Example

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

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


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