Skip to main content

Generate Video Subtitles

Overview

The following table contains important information about the POST method in regards to the auto-generating subtitles.

Post auto generated subtitles
MethodPOST
Endpoint/api/projects/{projectId}/videos/subtitles/{videoId}
HeadersAuthorization
ParametersprojectId, videoId
BodyNone

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project.
videoIdYesstringUnique Id of the video.

Response:

{
"success": true,
"errors": [],
"messages": [],
"result": {
"status": 1,
"statusName": "Pending"
},
"resultInfo": null,
"statusCode": 200
}
Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false
errorsarray[string]Indicates if there was an error
messagesarray[string]Returns the response message from back-end
resultarrasy[Object]Returns the response object
statusidThe id of the auto-generated subtitle status
statusNamestringThe name of the auto-generated subtitle status
resultInfostringReturns extra information about the result
statusCodeinteger($int32)Returns the HTTP Status Code
statusstatusNameDescription
1“Pending”Auto generated subtitles for the specific video added
4“Failed”Auto generated subtitle for the specific video already added

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request
  • HTTP Status Code 401: Unauthorized
  • HTTP Status Code 403: Forbidden
  • HTTP Status Code 404: Result Not Found
  • HTTP Status Code 500: Internal Server Error
  • HTTP Status Code 503: Backend Fetch Failed