Cancel Mastering

This endpoint cancels an ongoing mastering process.

POST https://platform.cryo-mix.com/api/mastering/cancel


Request Headers

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.

Request Body

No request body is required.

Response

Success Response (200 OK)

{
  "data": null,
  "message": "Mastering cancelled",
  "status": "success",
  "code": 200
}

Error Responses

400 Bad Request

{
  "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.

401 Unauthorized

{
  "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.

Usage Examples

JavaScript (Fetch)

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

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"

Note

The Session-Id is the same identifier used when uploading the file.