Update Webhook - API
Update the details of an existing webhook such as its URL and subscribed events.
HTTP method and endpoint
PUT
|
https://api.videosdk.live/v2/sip/webhooks/:webhookIdHeaders Parameters
REQUIRED
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
REQUIRED
values : application/json
This is usefull for json body parameters, so that VideoSDK servers can understand that the incoming body parameter will be a JSON string.
Parameters
REQUIRED
The unique identifier of the webhook to update.
Body Parameters
REQUIRED
The new URL of the webhook endpoint.
REQUIRED
Array of events the webhook should subscribe to.
PUT
|
https://api.videosdk.live/v2/sip/webhooks/:webhookId
NodeJS
import fetch from 'node-fetch';
const options = {
method: "PUT",
headers: {
"Authorization": "$YOUR_TOKEN",
"Content-Type": "application/json",
},
};
const url= `https://api.videosdk.live/v2/sip/webhooks/:webhookId`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"id": "wh_123456789",
"url": "https://example.com/updated-webhook",
"events": [
"call-started",
"call-ended"
],
"createdAt": "2025-08-20T10:22:10.000Z",
"updatedAt": "2025-08-21T14:32:45.000Z"
}
Got a Question? Ask us on discord