Upload with an upload token
POST
/upload
Videos - Delegated upload
https://ws.api.video/upload?token=<tokenId>
.$ curl --request POST --url 'https://ws.api.video/upload?token=toXXX'
--header 'content-type: multipart/form-data'
-F file=@video.mp4
Dealing with large files
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ws.api.video/upload?token=to1tcmSFHeYY5KzyhOqVKMKb' \
--form 'file=@"path/to/video/video.mp4"'
Response Response Example
201 - response
{
"assets": {
"hls": "https://cdn.api.video/stream/831a9bd9-9f50-464c-a369-8e9d914371ae/hls/manifest.m3u8",
"iframe": "<iframe src=\"//embed.api.video/vi4k0jvEUuaTdRAEjQ4Jfrgz?token=831a9bd9-9f50-464c-a369-8e9d914371ae\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"\"></iframe>",
"player": "https://embed.api.video/vi4k0jvEUuaTdRAEjQ4Jfrgz?token=831a9bd9-9f50-464c-a369-8e9d914371ae",
"thumbnail": "https://cdn.api.video/stream/831a9bd9-9f50-464c-a369-8e9d914371ae/thumbnail.jpg"
},
"description": "An amazing video explaining the string theory",
"metadata": [
{
"key": "Author",
"value": "John Doe"
},
{
"key": "Format",
"value": "Tutorial"
}
],
"panoramic": false,
"playerId": "pl45KFKdlddgk654dspkze",
"public": false,
"publishedAt": "4665-07-14T23:36:18.598Z",
"source": {
"uri": "/videos/vi4k0jvEUuaTdRAEjQ4Jfrgz/source"
},
"tags": [
"maths",
"string theory",
"video"
],
"title": "Maths video",
"videoId": "vi4k0jvEUuaTdRAEjQ4Jfrgz"
}
Request
Query Params
token
string
required
Example:
to1tcmSFHeYY5KzyhOqVKMKb
Header Params
Content-Range
string
optional
Example:
Content-Range: bytes 200-100/5000
Body Params multipart/form-data
file
file
required
Example:
path/to/video/video.mp4
videoId
string
optional
Responses
Modified at 2023-08-15 05:52:15