Delete a webhook
curl --request DELETE \
--url https://api.hypermid.io/v1/partner/webhooks/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.hypermid.io/v1/partner/webhooks/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.hypermid.io/v1/partner/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hypermid.io/v1/partner/webhooks/{id}",
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: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hypermid.io/v1/partner/webhooks/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.hypermid.io/v1/partner/webhooks/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypermid.io/v1/partner/webhooks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "whk_abc123def456",
"deleted": true
},
"error": null,
"meta": {
"requestId": "b8e9f0a1-b2c3-4567-1234-678901234567",
"timestamp": 1711234586,
"rateLimit": {
"limit": 2000,
"remaining": 1972,
"reset": 1711234627
}
}
}
Partner
Delete Webhook
Delete a registered webhook endpoint
DELETE
/
v1
/
partner
/
webhooks
/
{id}
Delete a webhook
curl --request DELETE \
--url https://api.hypermid.io/v1/partner/webhooks/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.hypermid.io/v1/partner/webhooks/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.hypermid.io/v1/partner/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hypermid.io/v1/partner/webhooks/{id}",
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: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hypermid.io/v1/partner/webhooks/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.hypermid.io/v1/partner/webhooks/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypermid.io/v1/partner/webhooks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "whk_abc123def456",
"deleted": true
},
"error": null,
"meta": {
"requestId": "b8e9f0a1-b2c3-4567-1234-678901234567",
"timestamp": 1711234586,
"rateLimit": {
"limit": 2000,
"remaining": 1972,
"reset": 1711234627
}
}
}
Deletes a webhook endpoint. After deletion, no further events will be delivered to this URL.
The webhook ID to delete (e.g.,
whk_abc123def456).{
"data": {
"id": "whk_abc123def456",
"deleted": true
},
"error": null,
"meta": {
"requestId": "b8e9f0a1-b2c3-4567-1234-678901234567",
"timestamp": 1711234586,
"rateLimit": {
"limit": 2000,
"remaining": 1972,
"reset": 1711234627
}
}
}
const result = await client.deleteWebhook("whk_abc123def456");
console.log("Deleted:", result.deleted);
curl -X DELETE "https://api.hypermid.io/v1/partner/webhooks/whk_abc123def456" \
-H "X-API-Key: your-api-key"
req, _ := http.NewRequest("DELETE",
"https://api.hypermid.io/v1/partner/webhooks/whk_abc123def456", nil)
req.Header.Set("X-API-Key", "your-api-key")
resp, _ := http.DefaultClient.Do(req)
Authorizations
Partner API key. Optional for public endpoints, required for /v1/partner/*.
Path Parameters
Webhook ID
⌘I