Endpoints responsible for interacting with video captions, either in the context of a video or an individual caption

Supported Formats

json

GET https://api.vidyard.com/dashboard/v1/videos/:video_id/captions
Gets all captions for a video that satisfies the provided filtering and sorting parameters (if any)

Given a valid video ID, and optional filtering and sorting parameters, retrieves the captions associated with the video that satisfy the parameters

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes

Examples

RESPONSE
Content-Type: application/json
[
  {
    "srt_url": "//cdn.vidyard.com/transcriptions/BeQAX/i-UTPAWS.srt",
    "vtt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.vtt",
    "txt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.txt",
    "language": "en",
    "id": 1011,
    "status": "complete",
    "created_at": 1442297000,
    "updated_at": 1442297001,
    "formatted_language_name": "English (en)",
    "localized_language_name": "English",
    "is_default": true,
    "notes": "Transcription request notes",
    "srt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/i-UTPAWS.srt",
    "vtt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.vtt",
    "txt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.txt",
  },
  {
    "srt_url": "//cdn.vidyard.com/transcriptions/BeQAX/i-UTPAWS.srt",
    "vtt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.vtt",
    "txt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.txt",
    "language": "fr",
    "id": 1011,
    "status": "complete",
    "created_at": 1442297000,
    "updated_at": 1442297001,
    "formatted_language_name": "Francais (fr)",
    "localized_language_name": "Francais",
    "is_default": false,
    "notes": "",
    "srt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/z-X1PAWS.srt",
    "vtt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut7l8z4.vtt",
    "txt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.txt",
  }
]
RESPONSE
Code: 404
Content-Type: application/json
{
  "error": "404: No video exists with that id"
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

language
optional

two letter language code used to return the first caption with the matching language code

Validations:

  • Must be a String

order_by
optional

The attribute to order the list by

Validations:

  • Must be one of: language, created_at, updated_at.

direction
optional

Given an valid order_by value, determines the direction to order the list

Validations:

  • Must be one of: asc, desc.

Returns

Code: 200

Description:

All captions associated with the video given filtering and sorting options applied (if any)

Param name Description
srt_url
required

The URI of the SRT-formatted version of the caption

Validations:

  • Must be a String

vtt_url
required

The URI of the VTT-formatted version of the caption

Validations:

  • Must be a String

txt_url
required

The URI of the TXT-formatted version of the caption

Validations:

  • Must be a String

language
required

The language locale code indicating the language the caption is in

Validations:

  • Must be a String

id
required

The internal ID of the caption

Validations:

  • Parameter has to be Integer.

status
required , nil allowed

The current state of the caption

Validations:

  • Must be one of: captioning, complete, draft, error, initializing, in_process, in_progress, published, saving, transcribing.

created_at
required

The timestamp when the caption was created

Validations:

  • Must be a DateTime

updated_at
required

The timestamp when the caption was last updated

Validations:

  • Must be a DateTime

formatted_language_name
required

The name of the language in which the caption was formatted

Validations:

  • Must be a String

localized_language_name
required

The name of the language in which the caption was localized

Validations:

  • Must be a String

is_default
required

Indicates whether or not this is the default caption for the associated video

Validations:

  • Must be one of: true, false, 1, 0.

notes
required

Additional notes created for the user about the caption

Validations:

  • Must be a String

srt_download_url
required

A fully qualified URL from which the SRT-formatted version of the caption can be downloaded

Validations:

  • Must be a String

vtt_download_url
required

A fully qualified URL from which the VTT-formatted version of the caption can be downloaded

Validations:

  • Must be a String

txt_download_url
required

A fully qualified URL from which the TXT-formatted version of the cpation can be downloaded

Validations:

  • Must be a String

creator_type
required

Indicates if the caption was created automatically or manually

Validations:

  • Must be one of: Automatic, Manual.

Code: 404

Description:

A message indicating why the caption could not be created

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String


POST https://api.vidyard.com/dashboard/v1/videos/:video_id/captions
Add an SRT or VTT file to an existing video resource

The URL specified in srt_url or vtt_url will be fetched and the response body used as the content of the SRT or VTT file respectively. If no such URLs were specified, then an empty VTT file will be created instead. If both are provided, we will default to the srt_url.

Warning: It is the responsibility of the caller to verify if the SRT or VTT was fetched successfully. A successful fetch will leave the caption in a success state, otherwise it will be in an error state with an appropriate message.

Supported Formats

json

Errors

Code Description
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes
404 Not Found: The requested resource could not be found
400 Bad Request: body has wrong syntax or unable to handle request

Examples

RESPONSE
Code: 201
Content-Type: application/json
{
  "srt_url": "//cdn.vidyard.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.txt",
  "language": "en",
  "id": 1011,
  "status": "in_progress",
  "formatted_text": "The quick brown fox\njumped over the lazy dog.",
  "plain_text": "The quick brown fox jumped over the lazy dog.",
  "created_at": 1442297000,
  "updated_at": 1442297001,
  "formatted_language_name": "English (en)",
  "localized_language_name": "English",
  "is_default": true,
  "notes": "Transcription request notes",
  "srt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.txt",
}
RESPONSE
Code: 404
Content-Type: application/json
{
  "error": "404: No video exists with that id"
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

srt_url
optional

SRT URL

Validations:

  • Must be a String

vtt_url
optional

VTT URL

Validations:

  • Must be a String

language
optional

Language of caption

Validations:

  • Must be a String

source_language
optional

Language of caption source

Validations:

  • Must be a String

is_default
optional

Set the default caption for the video

Validations:

  • Must be one of: true, false, 1, 0.

creator_type
optional , nil allowed

Type of creator of captions

Validations:

  • Must be one of: Automatic, Manual.

Returns

Code: 201

Description:

The newly added caption for the video

Param name Description
srt_url
required

The URI of the SRT-formatted version of the caption

Validations:

  • Must be a String

vtt_url
required

The URI of the VTT-formatted version of the caption

Validations:

  • Must be a String

txt_url
required

The URI of the TXT-formatted version of the caption

Validations:

  • Must be a String

language
required

The language locale code indicating the language the caption is in

Validations:

  • Must be a String

id
required

The internal ID of the caption

Validations:

  • Parameter has to be Integer.

status
required , nil allowed

The current state of the caption

Validations:

  • Must be one of: captioning, complete, draft, error, initializing, in_process, in_progress, published, saving, transcribing.

created_at
required

The timestamp when the caption was created

Validations:

  • Must be a DateTime

updated_at
required

The timestamp when the caption was last updated

Validations:

  • Must be a DateTime

formatted_language_name
required

The name of the language in which the caption was formatted

Validations:

  • Must be a String

localized_language_name
required

The name of the language in which the caption was localized

Validations:

  • Must be a String

is_default
required

Indicates whether or not this is the default caption for the associated video

Validations:

  • Must be one of: true, false, 1, 0.

notes
required

Additional notes created for the user about the caption

Validations:

  • Must be a String

srt_download_url
required

A fully qualified URL from which the SRT-formatted version of the caption can be downloaded

Validations:

  • Must be a String

vtt_download_url
required

A fully qualified URL from which the VTT-formatted version of the caption can be downloaded

Validations:

  • Must be a String

txt_download_url
required

A fully qualified URL from which the TXT-formatted version of the cpation can be downloaded

Validations:

  • Must be a String

creator_type
required

Indicates if the caption was created automatically or manually

Validations:

  • Must be one of: Automatic, Manual.

Code: 404

Description:

A message indicating why the caption could not be created

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String


GET https://api.vidyard.com/dashboard/v1/captions/:id
Get a caption

Get a caption by id

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes

Examples

RESPONSE
Code: 200
Content-Type: application/json
{
  "srt_url": "//cdn.vidyard.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.txt",
  "language": "en",
  "id": 1011,
  "status": "in_progress",
  "formatted_text": "The quick brown fox\njumped over the lazy dog.",
  "plain_text": "The quick brown fox jumped over the lazy dog.",
  "created_at": 1442297000,
  "updated_at": 1442297001,
  "formatted_language_name": "English (en)",
  "localized_language_name": "English",
  "is_default": true,
  "notes": "Transcription request notes",
  "srt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.txt",
}
RESPONSE
Code: 404
Content-Type: application/json
{
  "error": "404: No caption exists with that id"
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

Returns

Code: 200

Description:

The requested caption

Param name Description
srt_url
required

The URI of the SRT-formatted version of the caption

Validations:

  • Must be a String

vtt_url
required

The URI of the VTT-formatted version of the caption

Validations:

  • Must be a String

txt_url
required

The URI of the TXT-formatted version of the caption

Validations:

  • Must be a String

language
required

The language locale code indicating the language the caption is in

Validations:

  • Must be a String

id
required

The internal ID of the caption

Validations:

  • Parameter has to be Integer.

status
required , nil allowed

The current state of the caption

Validations:

  • Must be one of: captioning, complete, draft, error, initializing, in_process, in_progress, published, saving, transcribing.

created_at
required

The timestamp when the caption was created

Validations:

  • Must be a DateTime

updated_at
required

The timestamp when the caption was last updated

Validations:

  • Must be a DateTime

formatted_language_name
required

The name of the language in which the caption was formatted

Validations:

  • Must be a String

localized_language_name
required

The name of the language in which the caption was localized

Validations:

  • Must be a String

is_default
required

Indicates whether or not this is the default caption for the associated video

Validations:

  • Must be one of: true, false, 1, 0.

notes
required

Additional notes created for the user about the caption

Validations:

  • Must be a String

srt_download_url
required

A fully qualified URL from which the SRT-formatted version of the caption can be downloaded

Validations:

  • Must be a String

vtt_download_url
required

A fully qualified URL from which the VTT-formatted version of the caption can be downloaded

Validations:

  • Must be a String

txt_download_url
required

A fully qualified URL from which the TXT-formatted version of the cpation can be downloaded

Validations:

  • Must be a String

creator_type
required

Indicates if the caption was created automatically or manually

Validations:

  • Must be one of: Automatic, Manual.

Code: 404

Description:

Message returned when the caption could not be found

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String


PATCH https://api.vidyard.com/dashboard/v1/captions/:id
Updates a caption

Given a valid caption id, will update the caption using the supplied parameters and values

Warning: Even though the server returns a 200 response, in general, if the response object status indicates it is pending or in progress, it is not safe to assume that the caption file is ready, and so you should use the content status API endpoint to verify it is ready before trying to use it.

Supported Formats

json

Errors

Code Description
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes
404 Not Found: The requested resource could not be found
400 Bad Request: body has wrong syntax or unable to handle request

Examples

RESPONSE
Code: 200
Content-Type: application/json
{
  "srt_url": "//cdn.vidyard.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.txt",
  "language": "en",
  "id": 1011,
  "status": "pending",
  "formatted_text": "The quick brown fox\njumped over the lazy dog.",
  "plain_text": "The quick brown fox jumped over the lazy dog.",
  "created_at": 1442297000,
  "updated_at": 1442297001,
  "formatted_language_name": "English (en)",
  "localized_language_name": "English",
  "is_default": true,
  "notes": "Transcription request notes",
  "srt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.txt",
}
RESPONSE
Code: 404
Content-Type: application/json
{
  "error": "404: No caption exists with that id"
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

vtt_url
optional

The URI of a VTT file that is being used to update the captions content (if any)

Validations:

  • Must be a String

language
optional

A valid language locale code indicating the new language of the caption (if any)

Validations:

  • Must be a String

content
optional

A plaintext representation of the captions content in VTT format (if any)

Warning: Since this is JSON formatted, newlines must be replaced with their escape sequence equivalent (e.g., '\n')

Validations:

  • Must be a String

error_message
optional

Set error message of caption

Validations:

  • Must be a String

is_default
optional

Indicates whether or not this is default caption for the video (if changed)

Validations:

  • Must be one of: true, false, 1, 0.

creator_type
optional , nil allowed

Set the new type of the creator of the caption (if changed)

Validations:

  • Must be one of: Automatic, Manual.

Returns

Code: 200

Description:

The updated caption for the video

Param name Description
srt_url
required

The URI of the SRT-formatted version of the caption

Validations:

  • Must be a String

vtt_url
required

The URI of the VTT-formatted version of the caption

Validations:

  • Must be a String

txt_url
required

The URI of the TXT-formatted version of the caption

Validations:

  • Must be a String

language
required

The language locale code indicating the language the caption is in

Validations:

  • Must be a String

id
required

The internal ID of the caption

Validations:

  • Parameter has to be Integer.

status
required , nil allowed

The current state of the caption

Validations:

  • Must be one of: captioning, complete, draft, error, initializing, in_process, in_progress, published, saving, transcribing.

created_at
required

The timestamp when the caption was created

Validations:

  • Must be a DateTime

updated_at
required

The timestamp when the caption was last updated

Validations:

  • Must be a DateTime

formatted_language_name
required

The name of the language in which the caption was formatted

Validations:

  • Must be a String

localized_language_name
required

The name of the language in which the caption was localized

Validations:

  • Must be a String

is_default
required

Indicates whether or not this is the default caption for the associated video

Validations:

  • Must be one of: true, false, 1, 0.

notes
required

Additional notes created for the user about the caption

Validations:

  • Must be a String

srt_download_url
required

A fully qualified URL from which the SRT-formatted version of the caption can be downloaded

Validations:

  • Must be a String

vtt_download_url
required

A fully qualified URL from which the VTT-formatted version of the caption can be downloaded

Validations:

  • Must be a String

txt_download_url
required

A fully qualified URL from which the TXT-formatted version of the cpation can be downloaded

Validations:

  • Must be a String

creator_type
required

Indicates if the caption was created automatically or manually

Validations:

  • Must be one of: Automatic, Manual.

Code: 404

Description:

Message returned when the caption could not be found

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String


GET https://api.vidyard.com/dashboard/v1/captions/:id/content/status
Get status of caption VTT content

Get status of caption VTT content

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes
404 Not Found: The requested resource could not be found

Examples

RESPONSE
Code: 200
Content-Type: application/json
{
  "status": "in_progress"
}
RESPONSE
Code: 302
Location: https://some-url.com/api/v1/captions/:id/content
RESPONSE
Code: 404
Content-Type: application/json
{
  "error": "404: No caption exists with that id"
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

Returns

Code: 200

Description:

indicates the intermediate status of the caption

Param name Description
status
required , nil allowed

The current state of the caption

Validations:

  • Must be one of: captioning, complete, draft, error, initializing, in_process, in_progress, published, saving, transcribing.

Code: 302

Description:

indicates the location where the updated caption content can be pulled

Param name Description

Code: 404

Description:

Message returned when the caption could not be found

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String


GET https://api.vidyard.com/dashboard/v1/captions/:id/content
Get caption VTT content

Given a valid caption id, will return the VTT content for the caption. If the content has been processed, the endpoint will return a 200 with the content in the body. Otherwise, it will return a 404 with message indicating that the caption is still being processed.

Warning: Since the response of this endpoint is dependent on the status of the resource, it is best to consider polling the content status endpoint before attempting to fetch the resource.

Supported Formats

json

Errors

Code Description
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes
404 Not Found: The requested resource could not be found
400 Bad Request: body has wrong syntax or unable to handle request

Examples

RESPONSE
Code: 200
Content-Type: application/json
{
  "content":"WEBVTT\n\n00:00:00.000 --> 00:00:02.000\nThis is a test caption.\n"
}
RESPONSE
Code: 404
Content-Type: application/json
{
  "error": "404: No caption exists with that id"
}
RESPONSE
Code: 404
Content-Type: application/json
{
  "error": "The requested VTT file is still processing
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

Returns

Code: 200

Description:

The content of the caption

Param name Description
content
required

A plaintext representation of the captions content in VTT format

Validations:

  • Must be a String

Code: 404

Description:

Message returned when the caption content is still processing

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String


PATCH https://api.vidyard.com/dashboard/v1/captions/:id/draft
Set caption to draft

Sets the status field of the caption to draft only if the caption is currently in a published or complete state

Supported Formats

json

Errors

Code Description
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes
404 Not Found: The requested resource could not be found
400 Bad Request: body has wrong syntax or unable to handle request

Examples

RESPONSE
Code: 200
Content-Type: application/json
{
  "srt_url": "//cdn.vidyard.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.txt",
  "language": "en",
  "id": 1011,
  "status": "draft",
  "formatted_text": "The quick brown fox\njumped over the lazy dog.",
  "plain_text": "The quick brown fox jumped over the lazy dog.",
  "created_at": 1442297000,
  "updated_at": 1442297001,
  "formatted_language_name": "English (en)",
  "localized_language_name": "English",
  "is_default": true,
  "notes": "Transcription request notes",
  "srt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.txt",
}
RESPONSE
Code: 400
Content-Type: application/json
{
  "error": "Caption must be set to 'published', or 'complete' to set it to 'draft'"
}
RESPONSE
Code: 400
Content-Type: application/json
{
  "error": "404: No caption exists with that id"
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

Returns

Code: 200

Description:

The updated caption with status set to draft

Param name Description
content
required

A plaintext representation of the captions content in VTT format

Validations:

  • Must be a String

Code: 400

Description:

Message returned when the caption is not currently in a valid state to be marked as draft

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String

Code: 404

Description:

Message returned when the caption could not be found

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String


PATCH https://api.vidyard.com/dashboard/v1/captions/:id/publish
Set caption to published

Sets the status field of the caption to draft only if the caption is currently in a complete or draft state

Supported Formats

json

Errors

Code Description
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes
404 Not Found: The requested resource could not be found
400 Bad Request: body has wrong syntax or unable to handle request

Examples

RESPONSE
Code: 200
Content-Type: application/json
{
  "srt_url": "//cdn.vidyard.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.txt",
  "language": "en",
  "id": 1011,
  "status": "published",
  "formatted_text": "The quick brown fox\njumped over the lazy dog.",
  "plain_text": "The quick brown fox jumped over the lazy dog.",
  "created_at": 1442297000,
  "updated_at": 1442297001,
  "formatted_language_name": "English (en)",
  "localized_language_name": "English",
  "is_default": true,
  "notes": "Transcription request notes",
  "srt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.txt",
}
RESPONSE
Code: 400
Content-Type: application/json
{
  "error": "Caption must be set to 'draft', or 'complete' to set it to 'published'"
}
RESPONSE
Code: 400
Content-Type: application/json
{
  "error": "404: No caption exists with that id"
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

Returns

Code: 200

Description:

The updated caption with status set to published

Param name Description
content
required

A plaintext representation of the captions content in VTT format

Validations:

  • Must be a String

Code: 400

Description:

Message returned when the caption is not currently in a valid state to be marked as published

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String

Code: 404

Description:

Message returned when the caption could not be found

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String


DELETE https://api.vidyard.com/dashboard/v1/captions/:id
Delete a caption

Delete a caption

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes

Examples

RESPONSE
Code: 200
Content-Type: application/json
{
  "srt_url": "//cdn.vidyard.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_url": "//cdn.vidyard.com/transcriptions/BeQAX/Yut9l8z4.txt",
  "language": "en",
  "id": 1011,
  "status": "published",
  "formatted_text": "The quick brown fox\njumped over the lazy dog.",
  "plain_text": "The quick brown fox jumped over the lazy dog.",
  "created_at": 1442297000,
  "updated_at": 1442297001,
  "formatted_language_name": "English (en)",
  "localized_language_name": "English",
  "is_default": true,
  "notes": "Transcription request notes",
  "srt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/i-UTPAWS.srt",
  "vtt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.vtt",
  "txt_download_url": "//vidyard.s3.amazonaws.com/transcriptions/BeQAX/Yut9l8z4.txt",
}
RESPONSE
Code: 404
Content-Type: application/json
{
  "error": "404: No caption exists with that id"
}
RESPONSE
Code: 500
Content-Type: application/json
{
  "error": "Failed to delete caption with id"
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

Returns

Code: 200

Description:

The deleted caption

Param name Description
srt_url
required

The URI of the SRT-formatted version of the caption

Validations:

  • Must be a String

vtt_url
required

The URI of the VTT-formatted version of the caption

Validations:

  • Must be a String

txt_url
required

The URI of the TXT-formatted version of the caption

Validations:

  • Must be a String

language
required

The language locale code indicating the language the caption is in

Validations:

  • Must be a String

id
required

The internal ID of the caption

Validations:

  • Parameter has to be Integer.

status
required , nil allowed

The current state of the caption

Validations:

  • Must be one of: captioning, complete, draft, error, initializing, in_process, in_progress, published, saving, transcribing.

created_at
required

The timestamp when the caption was created

Validations:

  • Must be a DateTime

updated_at
required

The timestamp when the caption was last updated

Validations:

  • Must be a DateTime

formatted_language_name
required

The name of the language in which the caption was formatted

Validations:

  • Must be a String

localized_language_name
required

The name of the language in which the caption was localized

Validations:

  • Must be a String

is_default
required

Indicates whether or not this is the default caption for the associated video

Validations:

  • Must be one of: true, false, 1, 0.

notes
required

Additional notes created for the user about the caption

Validations:

  • Must be a String

srt_download_url
required

A fully qualified URL from which the SRT-formatted version of the caption can be downloaded

Validations:

  • Must be a String

vtt_download_url
required

A fully qualified URL from which the VTT-formatted version of the caption can be downloaded

Validations:

  • Must be a String

txt_download_url
required

A fully qualified URL from which the TXT-formatted version of the cpation can be downloaded

Validations:

  • Must be a String

creator_type
required

Indicates if the caption was created automatically or manually

Validations:

  • Must be one of: Automatic, Manual.

Code: 404

Description:

Message returned when the caption could not be found

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String

Code: 500

Description:

Message returned indicating that the caption could not be deleted

Param name Description
error
required

A contextual error message when a request could not be completed

Validations:

  • Must be a String