Skip to main content
Version: /v2

Delete Outbound SIP Gateway - API

Marks an outbound SIP gateway as deleted by setting deleted: true and deletedAt timestamp. The gateway is not permanently removed from the database but will be excluded from subsequent queries.

HTTP method and endpoint

DELETE

|

https://api.videosdk.live/v2/sip/outbound-gateways/{gatewayId}
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
REQUIRED
The unique identifier of the outbound SIP gateway to delete.
Response Parameters
Confirmation message for successful deletion.
DELETE
|
https://api.videosdk.live/v2/sip/outbound-gateways/{gatewayId}
import fetch from 'node-fetch';
const options = {
method: "DELETE",
headers: {
"Authorization": "$YOUR_TOKEN",
},
};
const url= `https://api.videosdk.live/v2/sip/outbound-gateways/{gatewayId}`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"message": "Gateway deleted successfully"
}

Got a Question? Ask us on discord