Skip to main content
POST
/
streaming
/
vods
/
v2
cURL
curl --request POST \
  --url https://api.mottostreaming.com/streaming/vods/v2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "project_id": "<string>",
  "localized_title": {},
  "asset_id": "<string>",
  "external_asset_url": "<string>"
}
'
{
  "vod": {
    "name": "<string>",
    "id": "<string>",
    "project_id": "<string>",
    "localized_title": {},
    "video_id": "<string>",
    "asset_id": "<string>",
    "external_asset_url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

The name of the video. This is a canonical name that is independent of locales, and is primarily meant for internal purposes (e.g. a name for tracking in analytics). For end-user facing purposes, use localized_title.

project_id
string

Required if providing external_asset_url as input

localized_title
object

A map of localized titles for this stream, for end users to see. The key is the language code (ISO 639 - set 1), e.g. "en", "de", "fr", etc. If you want to localize the text for different regions of the same language, you can add the country code (ISO 3166-1 alpha-2), e.g. "en-US", "en-GB", etc.

If this is not provided, fallback to name.

region
enum<string>

Required if providing external_asset_url as input

Available options:
REGION_UNSPECIFIED,
REGION_AF,
REGION_AS,
REGION_EU,
REGION_NA,
REGION_OC,
REGION_SA
asset_id
string

Recommended. A Motto asset ID of an uploaded file (e.g. mp4).

Important: at most one of asset_id, external_asset_url may be set per request.

external_asset_url
string

BETA FEATURE, NOT GENERALLY AVAILABLE YET.

If you are not able to upload a static asset to Motto, you can provide a URL to an external video resource (e.g. HLS or DASH). Motto will then attempt to retrieve this resource directly from the public internet.

Important: at most one of asset_id, external_asset_url may be set per request.

Response

OK

CreateVideoResponse is the response message for CreateVideo.

vod
object

The created video.