Skip to main content
POST
/
library
/
{libraryId}
/
videos
/
{videoId}
/
smart
Trigger Smart actions
curl --request POST \
  --url https://video.bunnycdn.com/library/{libraryId}/videos/{videoId}/smart \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "generateTitle": true,
  "generateDescription": true,
  "generateChapters": true,
  "generateMoments": true,
  "sourceLanguage": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "statusCode": 123
}

Authorizations

AccessKey
string
header
required

AccessKey based authentication

Path Parameters

libraryId
integer<int64>
required
videoId
string
required

Body

application/json
generateTitle
boolean | null

Whether video title should be generated.

generateDescription
boolean | null

Whether video description should be generated.

generateChapters
boolean | null

Whether video chapters should be generated.

generateMoments
boolean | null

Whether video moments should be generated.

sourceLanguage
string | null

(Optional) Video source language, use ISO 639-1 language code.

Response

The smart action was queued

success
boolean

Determines if the request was successful

message
string | null

Response message description

statusCode
integer<int32>

The response status code