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 Document

Use 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).

Get video config

Path parameters

  • videoAssetId stringRequired

    The asset ID of the video

Responses

200 The video config for the specified video
application/json
VideoConfigWrappedResponse
  • request_id stringRequired
    example "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 stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
401 Authentication error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
403 Authorization error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
404 Video metadata not found
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
500 Internal server error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "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"
      ]
    }
  }
}

Create or replace video player config for a specific video

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 stringRequired
    example "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 stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
401 Authentication error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
403 Authorization error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
404 Video player config not found
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
500 Internal server error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "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"
      ]
    }
  }
}

Models

ErrorWrappedResponse

Show schema
object
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string

VideoPlayerConfigResponse

Show schema
object
  • playerOptions objectRequired
    ShowHide child attributes of playerOptions
    • additional properties any
  • sourceOptions objectRequired
    ShowHide child attributes of sourceOptions
    • additional properties any

VideoPlayerConfigPayload

Show schema
object
  • playerOptions object
    ShowHide child attributes of playerOptions
    • additional properties any
  • sourceOptions object
    ShowHide child attributes of sourceOptions
    • additional properties any

VideoConfigWrappedResponse

Show schema
object
  • request_id stringRequired
    example "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

VideoPlayerConfigUpsertPayload

Show schema
VideoPlayerConfigPayload
  • playerOptions object
    ShowHide child attributes of playerOptions
    • additional properties any
  • sourceOptions object
    ShowHide child attributes of sourceOptions
    • additional properties any