Retrieve an audio track’s status, returning one of processing (still being processed), complete (ready to play) or error (failed; error_code and error_message say why). error_code is one of:
To retry a failed track, send the file again with POST /v1/videos/:video_id/audio_tracks. published says whether viewers can select the track; a newly completed track is unpublished.
| Code | Description |
|---|---|
| 401 | Unauthorized: auth_token omitted or authentication failed |
| 403 | Forbidden: This action cannot be performed |
| 404 | No audio track exists with that id, or it is being deleted |
RESPONSE
Code: 200
Content-Type: application/json
{
"id": 123,
"video_id": 456,
"language": "fr",
"status": "error",
"error_code": "duration_mismatch",
"error_message": "The audio's length doesn't match the video's length (it must be within 2 seconds).",
"published": false
}
| Param name | Description |
|---|---|
|
auth_token optional |
API token needed to authorize requests Validations:
|
The requested audio track
| Param name | Description |
|---|---|
|
id required |
The audio track id Validations:
|
|
video_id required |
The id of the video the track belongs to Validations:
|
|
language required |
BCP47 media language code for the track Validations:
|
|
status required |
processing until the track is playable, complete once it is, or error if it failed Validations:
|
|
error_code required , nil allowed |
Machine-readable failure reason; null unless status is error Validations:
|
|
error_message required , nil allowed |
Readable failure reason; null unless status is error Validations:
|
|
published required |
Whether viewers can select the track Validations:
|