Start a track versions generation job
POST/v0/tracks/versions
This endpoint allows you to start a job to generate edited versions of a track. The job will be processed asynchronously and you can check the status using the GET /tracks/versions/{jobId} endpoint.
Request
- application/json
Body
Track edit request configuration
durationMs int32required
loopable boolean
trackId uuidrequired
forceDuration boolean
Responses
- 200
- 400
- 401
- 429
Track edit job response
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
status string
Possible values: [PENDING
, PROCESSING
, COMPLETED
, FAILED
]
results
object[]
previewUrl string
waveform
object
version int32
channels int32
sampleRate int32
samplesPerPixel int32
bits int32
length int32
data int32[]
highQualityUrl string
message string
jobId uuid
{
"status": "PENDING",
"results": [
{
"previewUrl": "string",
"waveform": {
"version": 0,
"channels": 0,
"sampleRate": 0,
"samplesPerPixel": 0,
"bits": 0,
"length": 0,
"data": [
0
]
},
"highQualityUrl": "string"
}
],
"message": "string",
"jobId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
{
"status": "PENDING",
"results": [],
"message": "Job is still processing",
"jobId": "a6b5c9fc-2a98-4de8-99b2-eaddd985db4f"
}
Bad request.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
Human readable message
errors
object[]
key stringrequired
Error key
messages string[]required
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Bad request"
}
Unauthorized. Most likely your access token has expired.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
Human readable message
errors
object[]
key stringrequired
Error key
messages string[]required
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Invalid credentials"
}
Rate limit exceeded.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
Human readable message
errors
object[]
key stringrequired
Error key
messages string[]required
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Rate limit exceeded"
}
Loading...