This endpoint cancels an ongoing mastering process.
POST
https://platform.cryo-mix.com/api/mastering/cancel
Header | Type | Required | Description |
---|---|---|---|
X-Api-Key |
string | Yes | Your client API key. |
Session-Id |
string | Yes | The unique session identifier you used to upload the file. |
Source |
string | Yes | Must be set to Mastering API . |
No request body is required.
{
"data": null,
"message": "Mastering cancelled",
"status": "success",
"code": 200
}
{
"message": "Missing required parameters.",
"status": "error",
"code": 400
}
Possible Causes:
• A required header (X-Api-Key
, Session-Id
, or Source
) is missing or invalid.
• The Session-Id
was not found.
• The mastering process is not in a state that can be canceled.
{
"message": "Unauthorized client.",
"status": "error",
"code": 401
}
Possible Causes:
• The API key is incorrect.
• The Source
header is incorrect.
• The request is coming from a domain that is not on your list of allowed domains.
const response = await fetch('https://platform.cryo-mix.com/api/mastering/cancel', {
method: 'POST',
headers: {
'X-Api-Key': 'your-api-key-here',
'Session-Id': 'unique-session-id',
'Source': 'Mastering API'
}
});
const result = await response.json();
console.log(result.message);
curl -X POST https://platform.cryo-mix.com/api/mastering/cancel \
-H "X-Api-Key: your-api-key-here" \
-H "Session-Id: unique-session-id" \
-H "Source: Mastering API" \
-H "Origin: YOUR_DOMAIN.COM"
The Session-Id
is the same identifier used when uploading the file.