Remove Webhook Failure Threshold
const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://api.mailchannels.net/tx/v1/webhook/failure-threshold', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.mailchannels.net/tx/v1/webhook/failure-threshold"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mailchannels.net/tx/v1/webhook/failure-threshold",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request DELETE \
--url https://api.mailchannels.net/tx/v1/webhook/failure-threshold \
--header 'X-Api-Key: <x-api-key>'{
"errors": [
"<string>"
]
}Remove Webhook Failure Threshold
Removes the failure_threshold from an enrolled webhook, disabling failure alerts for that webhook.
The webhook itself remains enrolled and continues to receive events.
DELETE
/
webhook
/
failure-threshold
Remove Webhook Failure Threshold
const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://api.mailchannels.net/tx/v1/webhook/failure-threshold', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.mailchannels.net/tx/v1/webhook/failure-threshold"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mailchannels.net/tx/v1/webhook/failure-threshold",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request DELETE \
--url https://api.mailchannels.net/tx/v1/webhook/failure-threshold \
--header 'X-Api-Key: <x-api-key>'{
"errors": [
"<string>"
]
}Was this page helpful?

