Skip to main content
Version: /v2

Cancel Composite Merge - API

Cancel an in-flight composite-merge transcoding job. Only jobs in pending or processing status can be cancelled — calling this on a job in any other status returns 409.

HTTP method and endpoint

POST

|

https://api.videosdk.live/v2/transcodings/{transcodingId}/cancel
Headers Parameters

values: YOUR_TOKEN_WITHOUT_ANY_PREFIX

This will be a JWT token generate using VideoSDK ApiKey and Secret.

Note that the token will not include any prefix such as "Basic " or "Bearer ". Just pass a token as value.

You can generate a new token by refering this Guide: Generate Auth token

Parameters
The ID of the composite-merge transcoding job to cancel.
POST
|
https://api.videosdk.live/v2/transcodings/{transcodingId}/cancel
import fetch from 'node-fetch';
const options = {
method: "POST",
headers: {
"Authorization": "$YOUR_TOKEN",
},
};
const url= `https://api.videosdk.live/v2/transcodings/{transcodingId}/cancel`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"id": "665fcf7f2abe9a2807e42700",
"recordingIds": [
"6697685c6eaaaac67ea18130",
"6697685c6eaaaac67ea18131"
],
"roomId": "abcd-efgh-ijkl",
"sessionId": "6847c231fbaa8b416bc87014",
"status": "cancelled",
"task": "composite-merge",
"startedAt": "2025-06-10T05:45:02.730Z",
"stoppedAt": "2025-06-10T05:45:30.120Z"
}

Got a Question? Ask us on discord