Skip to content

Delete webhook

Deletes a webhook by ID.

HTTP method: DELETE

https://api.sender.net/v2/account/webhooks/{id}


ParameterTypeDescription
idstring requiredThe webhook ID.

const url = new URL("https://api.sender.net/v2/account/webhooks/{id}");
let headers = {
"Authorization": "Bearer [your-token]",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Example Response
{
"success": true,
"message": "Success"
}