Delete a Webhook
curl --request DELETE \
--url https://api.eka.care/notification/v1/connect/webhook/subscriptions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/notification/v1/connect/webhook/subscriptions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eka.care/notification/v1/connect/webhook/subscriptions/{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.eka.care/notification/v1/connect/webhook/subscriptions/{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 => [
"Authorization: Bearer <token>"
],
]);
$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.eka.care/notification/v1/connect/webhook/subscriptions/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.eka.care/notification/v1/connect/webhook/subscriptions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/notification/v1/connect/webhook/subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "webhook deleted successfully",
"msg": "success"
}{
"error": {
"message": "requested webhook is not registered",
"code": "INVALID_REQUEST"
}
}{
"error": {
"message": "Unauthorized request",
"code": "INVALID_REQUEST"
}
}{
"error": {
"message": "Webhook not found",
"code": "INVALID_REQUEST"
}
}{
"error": {
"message": "Internal Server Error",
"code": "SERVER_ERROR"
}
}Webhooks
Delete a Webhook
Deletes an existing webhook based on its ID. This endpoint allows partners to remove a previously registered webhook by specifying its unique identifier in the path parameter. The id parameter is required and must match the ID of the webhook to be deleted. Upon successful deletion, the service will no longer send POST requests to the webhook’s URL for the specified scope. This operation helps partners manage and clean up their webhook configurations.
DELETE
/
notification
/
v1
/
connect
/
webhook
/
subscriptions
/
{id}
Delete a Webhook
curl --request DELETE \
--url https://api.eka.care/notification/v1/connect/webhook/subscriptions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/notification/v1/connect/webhook/subscriptions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eka.care/notification/v1/connect/webhook/subscriptions/{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.eka.care/notification/v1/connect/webhook/subscriptions/{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 => [
"Authorization: Bearer <token>"
],
]);
$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.eka.care/notification/v1/connect/webhook/subscriptions/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.eka.care/notification/v1/connect/webhook/subscriptions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/notification/v1/connect/webhook/subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "webhook deleted successfully",
"msg": "success"
}{
"error": {
"message": "requested webhook is not registered",
"code": "INVALID_REQUEST"
}
}{
"error": {
"message": "Unauthorized request",
"code": "INVALID_REQUEST"
}
}{
"error": {
"message": "Webhook not found",
"code": "INVALID_REQUEST"
}
}{
"error": {
"message": "Internal Server Error",
"code": "SERVER_ERROR"
}
}Authorizations
The API requires a Bearer token in the Authorization header for authentication.
Path Parameters
The unique identifier of the webhook to be deleted.
Was this page helpful?

