Skip to main content
POST
/
v1
/
videos
Create a video
curl --request POST \
  --url https://api.tella.com/v1/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sourceId": "su_abc123def456",
  "allowedEmbedDomains": [
    "example.com",
    "mysite.org"
  ],
  "captionsDefaultEnabled": true,
  "commentEmailsEnabled": false,
  "commentsEnabled": true,
  "customThumbnailURL": "https://example.com/custom-thumbnail.jpg",
  "defaultPlaybackRate": 1,
  "description": "Updated description for the video",
  "dimensions": {
    "height": 1920,
    "width": 1080
  },
  "downloadsEnabled": true,
  "linkScope": "public",
  "name": "Updated Video Title",
  "password": "secretpassword",
  "publishDateEnabled": true,
  "rawDownloadsEnabled": false,
  "searchEngineIndexingEnabled": true,
  "studioSound": true,
  "transcriptsEnabled": true,
  "viewCountEnabled": true
}
'
import requests

url = "https://api.tella.com/v1/videos"

payload = {
"sourceId": "su_abc123def456",
"allowedEmbedDomains": ["example.com", "mysite.org"],
"captionsDefaultEnabled": True,
"commentEmailsEnabled": False,
"commentsEnabled": True,
"customThumbnailURL": "https://example.com/custom-thumbnail.jpg",
"defaultPlaybackRate": 1,
"description": "Updated description for the video",
"dimensions": {
"height": 1920,
"width": 1080
},
"downloadsEnabled": True,
"linkScope": "public",
"name": "Updated Video Title",
"password": "secretpassword",
"publishDateEnabled": True,
"rawDownloadsEnabled": False,
"searchEngineIndexingEnabled": True,
"studioSound": True,
"transcriptsEnabled": True,
"viewCountEnabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

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

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sourceId: 'su_abc123def456',
allowedEmbedDomains: ['example.com', 'mysite.org'],
captionsDefaultEnabled: true,
commentEmailsEnabled: false,
commentsEnabled: true,
customThumbnailURL: 'https://example.com/custom-thumbnail.jpg',
defaultPlaybackRate: 1,
description: 'Updated description for the video',
dimensions: {height: 1920, width: 1080},
downloadsEnabled: true,
linkScope: 'public',
name: 'Updated Video Title',
password: 'secretpassword',
publishDateEnabled: true,
rawDownloadsEnabled: false,
searchEngineIndexingEnabled: true,
studioSound: true,
transcriptsEnabled: true,
viewCountEnabled: true
})
};

fetch('https://api.tella.com/v1/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tella.com/v1/videos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'sourceId' => 'su_abc123def456',
'allowedEmbedDomains' => [
'example.com',
'mysite.org'
],
'captionsDefaultEnabled' => true,
'commentEmailsEnabled' => false,
'commentsEnabled' => true,
'customThumbnailURL' => 'https://example.com/custom-thumbnail.jpg',
'defaultPlaybackRate' => 1,
'description' => 'Updated description for the video',
'dimensions' => [
'height' => 1920,
'width' => 1080
],
'downloadsEnabled' => true,
'linkScope' => 'public',
'name' => 'Updated Video Title',
'password' => 'secretpassword',
'publishDateEnabled' => true,
'rawDownloadsEnabled' => false,
'searchEngineIndexingEnabled' => true,
'studioSound' => true,
'transcriptsEnabled' => true,
'viewCountEnabled' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.tella.com/v1/videos"

payload := strings.NewReader("{\n \"sourceId\": \"su_abc123def456\",\n \"allowedEmbedDomains\": [\n \"example.com\",\n \"mysite.org\"\n ],\n \"captionsDefaultEnabled\": true,\n \"commentEmailsEnabled\": false,\n \"commentsEnabled\": true,\n \"customThumbnailURL\": \"https://example.com/custom-thumbnail.jpg\",\n \"defaultPlaybackRate\": 1,\n \"description\": \"Updated description for the video\",\n \"dimensions\": {\n \"height\": 1920,\n \"width\": 1080\n },\n \"downloadsEnabled\": true,\n \"linkScope\": \"public\",\n \"name\": \"Updated Video Title\",\n \"password\": \"secretpassword\",\n \"publishDateEnabled\": true,\n \"rawDownloadsEnabled\": false,\n \"searchEngineIndexingEnabled\": true,\n \"studioSound\": true,\n \"transcriptsEnabled\": true,\n \"viewCountEnabled\": true\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.tella.com/v1/videos")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sourceId\": \"su_abc123def456\",\n \"allowedEmbedDomains\": [\n \"example.com\",\n \"mysite.org\"\n ],\n \"captionsDefaultEnabled\": true,\n \"commentEmailsEnabled\": false,\n \"commentsEnabled\": true,\n \"customThumbnailURL\": \"https://example.com/custom-thumbnail.jpg\",\n \"defaultPlaybackRate\": 1,\n \"description\": \"Updated description for the video\",\n \"dimensions\": {\n \"height\": 1920,\n \"width\": 1080\n },\n \"downloadsEnabled\": true,\n \"linkScope\": \"public\",\n \"name\": \"Updated Video Title\",\n \"password\": \"secretpassword\",\n \"publishDateEnabled\": true,\n \"rawDownloadsEnabled\": false,\n \"searchEngineIndexingEnabled\": true,\n \"studioSound\": true,\n \"transcriptsEnabled\": true,\n \"viewCountEnabled\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.tella.com/v1/videos")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sourceId\": \"su_abc123def456\",\n \"allowedEmbedDomains\": [\n \"example.com\",\n \"mysite.org\"\n ],\n \"captionsDefaultEnabled\": true,\n \"commentEmailsEnabled\": false,\n \"commentsEnabled\": true,\n \"customThumbnailURL\": \"https://example.com/custom-thumbnail.jpg\",\n \"defaultPlaybackRate\": 1,\n \"description\": \"Updated description for the video\",\n \"dimensions\": {\n \"height\": 1920,\n \"width\": 1080\n },\n \"downloadsEnabled\": true,\n \"linkScope\": \"public\",\n \"name\": \"Updated Video Title\",\n \"password\": \"secretpassword\",\n \"publishDateEnabled\": true,\n \"rawDownloadsEnabled\": false,\n \"searchEngineIndexingEnabled\": true,\n \"studioSound\": true,\n \"transcriptsEnabled\": true,\n \"viewCountEnabled\": true\n}"

response = http.request(request)
puts response.read_body
{
  "video": {
    "aspectRatio": "16:9",
    "chapters": [
      {
        "description": "Overview of what we'll cover",
        "timestampSeconds": 0,
        "title": "Introduction"
      }
    ],
    "clipIds": [
      "cl_abc123",
      "cl_def456"
    ],
    "createdAt": "2024-01-15T10:30:00.000Z",
    "description": "Learn how to create and share your first video",
    "dimensions": {
      "height": 1080,
      "width": 1920
    },
    "durationSeconds": 125.5,
    "exports": [
      {
        "downloadUrl": "https://cdn.tella.tv/exports/vid_abc123/video.mp4",
        "exportId": "exp_abc123def456",
        "progress": 100,
        "status": "completed",
        "updatedAt": "2024-01-15T15:00:00.000Z"
      }
    ],
    "id": "vid_abc123def456",
    "links": {
      "embedPage": "https://www.tella.tv/video/vid_abc123def456/embed",
      "viewPage": "https://www.tella.tv/video/vid_abc123def456/view"
    },
    "name": "Getting Started with Tella",
    "playlistIds": [
      "pl_abc123",
      "pl_def456"
    ],
    "settings": {
      "allowedEmbedDomains": [
        "example.com",
        "mysite.org"
      ],
      "captionsDefaultEnabled": true,
      "commentEmailsEnabled": false,
      "commentsEnabled": true,
      "customThumbnailURL": "https://example.com/custom-thumbnail.jpg",
      "defaultPlaybackRate": 1,
      "downloadsEnabled": true,
      "linkScope": "public",
      "publishDateEnabled": true,
      "rawDownloadsEnabled": false,
      "searchEngineIndexingEnabled": true,
      "studioSound": false,
      "transcriptsEnabled": true,
      "viewCountEnabled": true
    },
    "thumbnails": {
      "large": {
        "gif": "https://cdn.tella.tv/thumbnails/vid_abc123/640x360.gif",
        "jpg": "https://cdn.tella.tv/thumbnails/vid_abc123/1920x1080.jpg",
        "mp4": "https://cdn.tella.tv/thumbnails/vid_abc123/640x360.mp4",
        "webp": "https://cdn.tella.tv/thumbnails/vid_abc123/1920x1080.webp"
      },
      "medium": {
        "gif": "https://cdn.tella.tv/thumbnails/vid_abc123/640x360.gif",
        "jpg": "https://cdn.tella.tv/thumbnails/vid_abc123/1920x1080.jpg",
        "mp4": "https://cdn.tella.tv/thumbnails/vid_abc123/640x360.mp4",
        "webp": "https://cdn.tella.tv/thumbnails/vid_abc123/1920x1080.webp"
      },
      "small": {
        "gif": "https://cdn.tella.tv/thumbnails/vid_abc123/640x360.gif",
        "jpg": "https://cdn.tella.tv/thumbnails/vid_abc123/1920x1080.jpg",
        "mp4": "https://cdn.tella.tv/thumbnails/vid_abc123/640x360.mp4",
        "webp": "https://cdn.tella.tv/thumbnails/vid_abc123/1920x1080.webp"
      },
      "xl": {
        "gif": "https://cdn.tella.tv/thumbnails/vid_abc123/640x360.gif",
        "jpg": "https://cdn.tella.tv/thumbnails/vid_abc123/1920x1080.jpg",
        "mp4": "https://cdn.tella.tv/thumbnails/vid_abc123/640x360.mp4",
        "webp": "https://cdn.tella.tv/thumbnails/vid_abc123/1920x1080.webp"
      }
    },
    "transcript": {
      "language": "en",
      "sentences": [
        {
          "endSeconds": 2.3,
          "startSeconds": 0.5,
          "text": "Hello and welcome to this tutorial."
        }
      ],
      "status": "ready",
      "text": "Hello and welcome to this tutorial..."
    },
    "updatedAt": "2024-01-15T14:45:00.000Z",
    "views": 1234
  }
}
{
"error": {
"code": "bad_request",
"doc_url": "https://tella.tv/docs/api-reference/errors#bad-request",
"message": "The request was malformed or contained invalid parameters."
}
}
{
"error": {
"code": "unauthorized",
"doc_url": "https://tella.tv/docs/api-reference/errors#unauthorized",
"message": "Authentication is required. Provide a valid API key."
}
}
{
"error": {
"code": "forbidden",
"doc_url": "https://tella.tv/docs/api-reference/errors#forbidden",
"message": "You don't have permission to access this resource."
}
}
{
"error": {
"code": "not_found",
"doc_url": "https://tella.tv/docs/api-reference/errors#not-found",
"message": "The requested resource was not found."
}
}
{
"error": {
"code": "unprocessable_entity",
"doc_url": "https://tella.tv/docs/api-reference/errors#unprocessable-entity",
"message": "The request was well-formed but contained semantic errors."
}
}
{
"error": {
"code": "rate_limit_exceeded",
"doc_url": "https://tella.tv/docs/api-reference/errors#rate-limit-exceeded",
"message": "You have exceeded the rate limit. Please slow down."
}
}
{
"error": {
"code": "internal_server_error",
"doc_url": "https://tella.tv/docs/api-reference/errors#internal-server-error",
"message": "An unexpected error occurred on the server."
}
}

Authorizations

Authorization
string
header
required

API key obtained from your Tella account settings

Body

application/json

Request body for creating a video from an uploaded source. Accepts every UpdateVideoRequest field plus the required sourceId.

sourceId
string
required

Source ID from POST /v1/sources (kind: 'video'). Upload the video bytes to the source's uploadUrl first; the source becomes the new video's first clip.

Minimum string length: 1
Example:

"su_abc123def456"

allowedEmbedDomains
string[]

Restrict embedding to these domains only (Premium feature). Empty array allows all domains.

Example:
["example.com", "mysite.org"]
captionsDefaultEnabled
boolean

Show subtitles/captions by default

Example:

true

commentEmailsEnabled
boolean

Send email notifications for new comments

Example:

false

commentsEnabled
boolean

Allow viewers to comment

Example:

true

customThumbnailURL
string<uri>

Custom thumbnail image URL

Example:

"https://example.com/custom-thumbnail.jpg"

defaultPlaybackRate
number

Default playback speed (0.5-2.0). Viewers can still adjust.

Required range: 0.5 <= x <= 2
Example:

1

description
string

Video description

Maximum string length: 5000
Example:

"Updated description for the video"

dimensions
object

Canvas size in pixels. Changing it also remaps every clip and section layout to a ratio-appropriate equivalent (clips using a custom layout fall back to a standard one), exactly like switching size in the editor's Setup → Size. No-op when the video already has the requested size. The editor's presets: 1920x1080 (16:9), 1920x1200 (16:10), 1440x1080 (4:3), 1080x1080 (1:1), 1080x1350 (4:5), 1080x1920 (9:16).

Example:
{ "height": 1920, "width": 1080 }
downloadsEnabled
boolean

Allow viewers to download the video

Example:

true

Access level: public (anyone with link), private (org members only), password (requires password), embedonly (only viewable when embedded)

Available options:
public,
private,
password,
embedonly
Example:

"public"

name
string

Video title

Required string length: 1 - 255
Example:

"Updated Video Title"

password
string

Password for viewing. Required when linkScope is 'password', ignored otherwise.

Required string length: 1 - 255
Example:

"secretpassword"

publishDateEnabled
boolean

Show publish date on video page

Example:

true

rawDownloadsEnabled
boolean

Allow viewers to download raw source files

Example:

false

searchEngineIndexingEnabled
boolean

Allow search engines to index the video page

Example:

true

studioSound
boolean

Studio Sound (AI audio enhancement) master switch. Enabling it also starts generating the enhanced audio tracks in the background; playback and exports use them once ready and fall back to the raw audio until then.

Example:

true

transcriptsEnabled
boolean

Show transcript panel to viewers

Example:

true

viewCountEnabled
boolean

Show view count on video page

Example:

true

Response

Video created

video
object
required

Detailed information about a video including chapters, transcript, and exports