Skip to main content
Version: /v2

Delete Routing Rule - API

Deletes a routing rule and detaches it from all of its phone numbers.

Responses:

  • 200 success — { message, ruleId }.
  • 404 routing rule not found.
  • 409 the rule was modified or deleted by another request — retry.
  • 500 internal server error.

HTTP method and endpoint

DELETE

|

https://api.videosdk.live/v2/sip/routing-rule/:ruleId
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 ID of the routing rule to delete.
Response Parameters
Human-readable confirmation message.
ID of the deleted routing rule.
DELETE
|
https://api.videosdk.live/v2/sip/routing-rule/:ruleId
import fetch from 'node-fetch';
const options = {
method: "DELETE",
headers: {
"Authorization": "$YOUR_TOKEN",
},
};
const url= `https://api.videosdk.live/v2/sip/routing-rule/:ruleId`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"message": "Routing rule deleted successfully",
"ruleId": "rr_abc123"
}

Got a Question? Ask us on discord