Delete Webhook Endpoint
curl --request DELETE \
--url https://api.jogg.ai/v2/endpoint/{endpoint_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.jogg.ai/v2/endpoint/{endpoint_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.jogg.ai/v2/endpoint/{endpoint_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.jogg.ai/v2/endpoint/{endpoint_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.jogg.ai/v2/endpoint/{endpoint_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.jogg.ai/v2/endpoint/{endpoint_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jogg.ai/v2/endpoint/{endpoint_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{
"code": 0,
"msg": "Success",
"data": {
"message": "webhook deleted"
}
}Webhook
Delete Webhook Endpoint
Remove a webhook endpoint from your account. This action cannot be undone and the endpoint will stop receiving events immediately.
DELETE
/
v2
/
endpoint
/
{endpoint_id}
Delete Webhook Endpoint
curl --request DELETE \
--url https://api.jogg.ai/v2/endpoint/{endpoint_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.jogg.ai/v2/endpoint/{endpoint_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.jogg.ai/v2/endpoint/{endpoint_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.jogg.ai/v2/endpoint/{endpoint_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.jogg.ai/v2/endpoint/{endpoint_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.jogg.ai/v2/endpoint/{endpoint_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jogg.ai/v2/endpoint/{endpoint_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{
"code": 0,
"msg": "Success",
"data": {
"message": "webhook deleted"
}
}Remove a webhook endpoint from your account.
This action cannot be undone and the endpoint will stop receiving events immediately.
Use Cases
- Remove webhooks that are no longer needed
- Clean up inactive endpoints
- Stop event notifications
Important Notes
Deleting a webhook endpoint cannot be reversed. All associated event subscriptions will be removed.
If you only need to temporarily stop receiving events, we recommend using Update Webhook Endpoint to set the status to
disabled instead of deleting the endpoint.Authorizations
API key for authentication. Obtain your key from the JoggAI dashboard.
Path Parameters
Unique webhook endpoint identifier
Example:
"wh_123456"
Response
200 - application/json
Success
Business status code:
- 0 - Success
- 10104 - Record not found
- 10105 - Invalid API key
- 18020 - Insufficient credit
- 18025 - No permission to call APIs
- 40000 - Parameter error
- 50000 - System error
Example:
0
Response message
Example:
"Success"
Show child attributes
Show child attributes

