Copy a video
curl --request POST \
--url https://api.videobase.com/v1/upload/copy \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"id": "a1b2c3d4e5f6"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: 'a1b2c3d4e5f6'})
};
fetch('https://api.videobase.com/v1/upload/copy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.videobase.com/v1/upload/copy"
payload = { "id": "a1b2c3d4e5f6" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "a1b2c3d4e5f6",
"links": {
"download": "<string>",
"embed": "<string>"
}
}{
"message": "File not found",
"status": 500
}Uploads
Copy a video
Creates another video record from an existing video owned by the authenticated account. A source video can have at most 50 active copies per account.
POST
/
v1
/
upload
/
copy
Copy a video
curl --request POST \
--url https://api.videobase.com/v1/upload/copy \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"id": "a1b2c3d4e5f6"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: 'a1b2c3d4e5f6'})
};
fetch('https://api.videobase.com/v1/upload/copy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.videobase.com/v1/upload/copy"
payload = { "id": "a1b2c3d4e5f6" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "a1b2c3d4e5f6",
"links": {
"download": "<string>",
"embed": "<string>"
}
}{
"message": "File not found",
"status": 500
}Authorizations
ApiKeyHeaderApiKeyQuery
Recommended. Your 16-character Videobase API key.
Body
application/json