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.
| 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 |
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
}
| Param name | Description |
|---|---|
|
auth_token optional |
API token needed to authorize requests Validations:
|
The content of the caption
| Param name | Description |
|---|---|
|
content required |
A plaintext representation of the captions content in VTT format Validations:
|
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:
|