Skip to main content
POST
/
v1
/
sources
Create a new video source upload
curl --request POST \
  --url https://api.tella.com/v1/sources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "duration": 1,
  "height": 123,
  "width": 123,
  "kind": "video"
}
'
{
  "expiresAt": "2023-11-07T05:31:56Z",
  "sourceId": "<string>",
  "uploadUrl": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://tella.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key obtained from your Tella account settings

Body

application/json

Create a new video source upload.

duration
number
required

Duration in seconds.

Required range: x > 0
height
integer
required

Height in pixels.

Required range: x <= 9007199254740991
width
integer
required

Width in pixels.

Required range: x <= 9007199254740991
kind
enum<string>

Source kind. Only video is supported.

Available options:
video

Response

OK

expiresAt
string<date-time>
required

ISO-8601 timestamp at which uploadUrl stops accepting uploads.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
sourceId
string
required

ID of the new source.

uploadUrl
string<uri>
required

Pre-signed S3 URL. PUT the video bytes here (single PUT, max ~5GB).