Read a source's tracks
const url = 'https://api.iomza.com/v1/uploads/example/tracks';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.iomza.com/v1/uploads/example/tracks \ --header 'Authorization: Bearer <token>'Duration, video, and every audio and subtitle track, to choose them before creating a job. Only the file’s header is read: about a second, whatever its size.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”What the source contains.
GET /v1/uploads/{id}/tracks and POST /v1/probe: what a source contains, before creating a job.
object
An audio track of a source.
object
As tagged in the file (usually ISO 639-2: “spa”, “eng”); null when untagged.
Bits per second; null when the file does not say.
A subtitle track of a source.
object
Text subtitles become WebVTT; image ones (PGS, DVD) cannot.
Example
{ "object": "source_tracks", "video": { "hdr": "pq", "unsupported": "dolby_vision_no_compatible_layer" }}Invalid fields: details lists each problem with its path.
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}The API key is missing, invalid or revoked.
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}Valid credentials that may not do this (forbidden), your plan doesn’t include the module the route belongs to (module_not_in_plan), or your organization is suspended (organization_suspended).
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}It doesn’t exist in your organization.
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}Too many requests: wait and retry. Answered by the gateway, so the body may differ.
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}Ours: retry, and tell us if it persists.
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}Momentarily unavailable: retry in a few seconds.
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}