Get an upload target
curl --request GET \
--url https://api.videobase.com/v1/upload \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.videobase.com/v1/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.videobase.com/v1/upload"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"url": "https://fs1.vbvd.net",
"session": "MTIzOjoyOjo...redacted"
}{
"message": "File not found",
"status": 500
}Uploads
Get an upload target
Selects an available file server and returns its base URL with an opaque upload session.
The response initializes a separate file-server transfer. It does not upload a file to this endpoint. Treat the session as a secret.
GET
/
v1
/
upload
Get an upload target
curl --request GET \
--url https://api.videobase.com/v1/upload \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.videobase.com/v1/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.videobase.com/v1/upload"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"url": "https://fs1.vbvd.net",
"session": "MTIzOjoyOjo...redacted"
}{
"message": "File not found",
"status": 500
}