Get Started
Studio API
- Introduction
- Streaming
- Live Streams
- Simulcasts
- Clips
- Videos
- Video Protection
- Configurations
- Assets
- CMS
- OTT
- Monetization
- IAM
- Integration
- Analytics
Content Delivery API
Deep dive
Assets
Create upload
CreateUploadSession
Creates a new upload session.
POST
/
streaming
/
uploads
/
v1
Copy
curl --request POST \
--url https://api.mottostreaming.com/streaming/uploads/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"project_id": "<string>",
"region": "REGION_UNSPECIFIED",
"object_name": "<string>",
"content_type": "<string>",
"ttl": "<string>",
"size_bytes": "<string>",
"access_control_mode": "ACCESS_CONTROL_MODE_UNSPECIFIED",
"resumable": true
}'
Copy
{
"upload_session": {
"id": "<string>",
"project_id": "<string>",
"reserved_asset_id": "<string>",
"object_name": "<string>",
"content_type": "<string>",
"size_bytes": "<string>",
"access_control_mode": "ACCESS_CONTROL_MODE_UNSPECIFIED",
"expire_time": "2023-11-07T05:31:56Z",
"create_time": "2023-11-07T05:31:56Z"
},
"signed_url": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Copy
curl --request POST \
--url https://api.mottostreaming.com/streaming/uploads/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"project_id": "<string>",
"region": "REGION_UNSPECIFIED",
"object_name": "<string>",
"content_type": "<string>",
"ttl": "<string>",
"size_bytes": "<string>",
"access_control_mode": "ACCESS_CONTROL_MODE_UNSPECIFIED",
"resumable": true
}'
Copy
{
"upload_session": {
"id": "<string>",
"project_id": "<string>",
"reserved_asset_id": "<string>",
"object_name": "<string>",
"content_type": "<string>",
"size_bytes": "<string>",
"access_control_mode": "ACCESS_CONTROL_MODE_UNSPECIFIED",
"expire_time": "2023-11-07T05:31:56Z",
"create_time": "2023-11-07T05:31:56Z"
},
"signed_url": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.