Documentation Index
Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt
Use this file to discover all available pages before exploring further.
v1.0.0OAS 3.0.3
Video Config API
Download OpenAPI DocumentUse the Video Config API to manage per-video player configurations. Per-video configurations let you set player options for a specific video asset. See the managing video settings via the API guide for details.
The API supports Basic Authentication using your Cloudinary API Key and API Secret (which can be found in the API Keys page of your Cloudinary Console).
Path parameters
- videoAssetId stringRequired
The asset ID of the video
Responses
200 The video config for the specified video
application/json
VideoConfigWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data VideoPlayerConfigResponseRequired
ShowHide child attributes of data
- playerOptions objectRequired
ShowHide child attributes of playerOptions
- additional properties any
- sourceOptions objectRequired
ShowHide child attributes of sourceOptions
- additional properties any
400 Bad request - invalid parameters
application/json
ErrorWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
401 Authentication error
application/json
ErrorWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
403 Authorization error
application/json
ErrorWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
404 Video metadata not found
application/json
ErrorWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
500 Internal server error
application/json
ErrorWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
GET
/player/config/video/{videoAssetId}curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/player/config/video/{videoAssetId}' \
-u 'API_KEY:API_SECRET'Response
{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"data": {
"playerOptions": {
"controls": true,
"loop": true,
"colors": {
"base": "#1532a8",
"accent": "#FF9B00",
"text": "#FFFFFF"
}
},
"sourceOptions": {
"sourceTypes": [
"hls"
]
}
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- videoAssetId stringRequired
The asset ID of the video
Body application/json
VideoPlayerConfigPayload
- playerOptions object
ShowHide child attributes of playerOptions
- additional properties any
- sourceOptions object
ShowHide child attributes of sourceOptions
- additional properties any
Responses
200 A player config
application/json
VideoConfigWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data VideoPlayerConfigResponseRequired
ShowHide child attributes of data
- playerOptions objectRequired
ShowHide child attributes of playerOptions
- additional properties any
- sourceOptions objectRequired
ShowHide child attributes of sourceOptions
- additional properties any
400 Bad request - invalid request body
application/json
ErrorWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
401 Authentication error
application/json
ErrorWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
403 Authorization error
application/json
ErrorWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
404 Video player config not found
application/json
ErrorWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
500 Internal server error
application/json
ErrorWrappedResponse
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
PUT
/player/config/video/{videoAssetId}curl -X PUT 'https://api.cloudinary.com/v2/video/CLOUD_NAME/player/config/video/{videoAssetId}' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"playerOptions": {
"controls": true,
"loop": true,
"muted": true,
"autoplayMode": "on-scroll",
"colors": {
"base": "#1532a8",
"accent": "#FF9B00",
"text": "#FFFFFF"
}
},
"sourceOptions": {
"sourceTypes": [
"hls"
]
}
}'Response
{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"data": {
"playerOptions": {
"controls": true,
"loop": true,
"muted": true,
"autoplayMode": "on-scroll",
"colors": {
"base": "#1532a8",
"accent": "#FF9B00",
"text": "#FFFFFF"
}
},
"sourceOptions": {
"sourceTypes": [
"hls"
]
}
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Models
Show schema
object
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - error object
ShowHide child attributes of error
- message string
Show schema
object
- playerOptions objectRequired
ShowHide child attributes of playerOptions
- additional properties any
- sourceOptions objectRequired
ShowHide child attributes of sourceOptions
- additional properties any
Show schema
object
- playerOptions object
ShowHide child attributes of playerOptions
- additional properties any
- sourceOptions object
ShowHide child attributes of sourceOptions
- additional properties any
Show schema
object
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data VideoPlayerConfigResponseRequired
ShowHide child attributes of data
- playerOptions objectRequired
ShowHide child attributes of playerOptions
- additional properties any
- sourceOptions objectRequired
ShowHide child attributes of sourceOptions
- additional properties any