Skip to main content

Job

Job contains all properties used for the client to track the status of a stem/transcription/alignment generation request. On completion the job will provide the asset links.

Example:

Note that the following examples are missing client ids.

This is an example of a created job.

{
job: {
id: "clksrfob8000bf7of6xkscy8m",
requestId: "clksrfob8000bf7of6xkscy8m",
metadata: {
format: "json",
name: "alignment"
},
callbackUrl: "<YOUR CALLBACK URL>",
status: "created"
}
}

This is an example of a completed separation job.

{
job: {
id: "clksrfob8000bf7of6xkscy8m",
createdAt: "2023-08-01T20:37:06.656Z",
startedAt: "2023-08-01T20:37:07.839Z",
updatedAt: "2023-08-01T20:37:28.392Z",
requestId: "clksrfob8000bf7of6xkscy8m",
licenseId: "",
callbackUrl: "<YOUR CALLBACK URL>",
status: "completed",
statusInfo: {},
sourceAsset: {
name: "COOKIN-EUROPA_Drum.mp3",
id: "clksq2o6c1506f7ofcyvzpdh8",
fileType: "audio/mpeg",
format: "mp3",
link: "<LINK TO FILE>",
outputAssets: [
{
name: "instrumental.wav",
id: "clksrg52j2319f7of26wleinn1",
fileType: "audio/wav",
format: "wav",
link: "<LINK TO FILE>"
},
],
metadata: {
format: "wav",
name: "instrumental"
}
}
}
}

This is an example of a completed transcription job

{
job: {
id: "clksrfob8000bf7of6xkscy8m",
createdAt: "2023-08-01T20:37:06.656Z",
startedAt: "2023-08-01T20:37:07.839Z",
updatedAt: "2023-08-01T20:37:28.392Z",
requestId: "clksrfob8000bf7of6xkscy8m",
licenseId: "",
metadata: {
format: "json",
name: "alignment"
},
callbackUrl: "<YOUR CALLBACK URL>",
status: "completed",
statusInfo: {},
sourceAsset: {
name: "COOKIN-EUROPA_Drum.mp3",
id: "clksq2o6c1506f7ofcyvzpdh8",
fileType: "audio/mpeg",
format: "mp3",
link: "<LINK TO FILE>"
},
outputAssets: [
{
name: "transcription.json",
id: "clksrg52j2319f7of26wleinn",
fileType: "application/json",
format: "json",
link: "<LINK TO FILE>"
}
]
}
}

Fields

KeyTypeExampleDescription
idstringcuid formatThe unique cuid of the job.
createdAtDate2023-08-01T20:37:06.656ZWhen the object was created.
updatedAtDate2023-08-01T20:37:06.656ZWhen the object was last updated.
startedAtDate2023-08-01T20:37:06.656ZWhen the job was started.
completedAtDate2023-08-01T20:37:06.656ZWhen the job was completed.
requestIdstringcuid formatThe request id associated with the job.
metadataJSON{"format":"wav", "name":"instrumental"}Metadata used to describe the client's request.
stemMetadataJSON{"format":"wav", "name":"instrumental"}Metadata used to describe the client's requested stems.
callbackUrlURIhttps://path/to/callbackURL to call back the client. We will call this URL when the job status changes.
clientIdstringcuid formatThe unique id of the client associated with the job. (cuid format)
licenseIdstringcuid formatThe unique id of the client's license associated with the job. (cuid format)
statusstring"created", "processing", "completed"The current status of the job.
sourceAssetObject{"name": "COOKIN-EUROPA_Drum.mp3", "id": "clksq2o6c1506f7ofcyvzpdh8", "fileType": "audio/mpeg", "format": "mp3", "link": ""}Details about the source asset.
stemAssetsArray[{"name": "stem1.wav", "id": "stem1_id", "fileType": "audio/wav", "format": "wav", "link": "https://path/to/stem1"}, {"name": "stem2.wav", "id": "stem2_id", "fileType": "audio/wav", "format": "wav", "link": "https://path/to/stem2"}]Array of objects containing information about stem assets related to the job.
otherAssetsArray[{"name": "transcription.json", "id": "clksrg52j2319f7of26wleinn", "fileType": "application/json", "format": "json", "link": ""}]Array of objects containing information about other assets related to the job.