Get video storage specs
https://octopus.livepush.io/streams/me/videos/storage_specs
Base URL https://octopus.livepush.io — Core Streams & Media APIs
Returns the storage zones available to the account and the switches that govern how an upload must be performed.
Call this before every upload session. It tells you which zone to write to (defaultStorageZone), whether the user may choose another (canSelectStorage), and whether the multipart flow is available at all (isMultipartUploadDisabled). When multipart is disabled, every file must go through the single-request upload URL no matter its size.
Requires a token with the streams.videos.read scope.
Authorization
Send a valid access token in the Authorization header.
bearerAuth— Bearer token (JWT)
Authorization: Bearer YOUR_API_TOKEN
Try it
Loading the request builder…
GET
https://octopus.livepush.io/streams/me/videos/storage_specs
— This call only reads data.
Code samples
curl -X GET 'https://octopus.livepush.io/streams/me/videos/storage_specs' \
-H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://octopus.livepush.io/streams/me/videos/storage_specs', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
},
});
if (!response.ok) {
throw new Error(`Livepush API error ${response.status}`);
}
const data = await response.json();
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
}
response = requests.get('https://octopus.livepush.io/streams/me/videos/storage_specs', headers=headers, timeout=30)
response.raise_for_status()
data = response.json()
Responses
Get video storage specs.
-
canSelectStoragebooleanWhether the account may choose a zone. Whenfalse, always upload todefaultStorageZone— the other entries instorageZonesare informational. -
defaultStorageZonestringID of the zone to upload into unless the user picks another. Authoritative: prefer this over scanningstorageZonesforisDefault. -
isMultipartUploadDisabledbooleanWhentrue, the multipart endpoints are closed to this account and every upload must go throughPOST /streams/{stream_id}/videos/uploadurlas a single request, however large the file. -
isGoogleDriveEnabledbooleanWhether the account may import videos directly from Google Drive. -
storageZonesVideoStorageZone[]Every zone visible to the account, default first or otherwise.-
idstring -
namestringHuman-readable zone name, as shown in the dashboard's storage picker. -
hoststringDelivery host videos in this zone are served from. -
isDefaultbooleanWhether this is the account's default zone. The field is omitted entirely on some zones rather than being sent asfalse, so treat a missing value asfalseand rely ondefaultStorageZonefor the authoritative answer.
-
{
"canSelectStorage": false,
"defaultStorageZone": "zn_35hk0gxy_pr",
"isMultipartUploadDisabled": true,
"isGoogleDriveEnabled": true,
"storageZones": [
{
"id": "zn_35hk0gxy_pr",
"name": "Video Cloud Storage NS10",
"host": "vod-ns10-cdn-livepush.akamaized.net",
"isDefault": true
},
{
"id": "zn_fmp73fxj8",
"name": "Standard Storage",
"host": "vod-aws-ldn-1.livepush.io"
},
{
"id": "zn_dg5dshe82",
"name": "Optimized Storage",
"host": "vod-scw-par-2.livepush.io"
},
{
"id": "zn_f1w54wq6s",
"name": "Optimized Storage AMS-1 (Hybrid)",
"host": "vod-scw-ams-1.livepush.io",
"isDefault": false
}
]
}
No response body.