Update Webhook Endpoint
Change the events an endpoint receives, or switch it off and on again. A disabled endpoint keeps its URL, secret and delivery log.
curl --request PATCH \
--url https://api.kiteml.com/v1/webhook_endpoints/{endpoint_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled_events": [
"<string>"
]
}
'import requests
url = "https://api.kiteml.com/v1/webhook_endpoints/{endpoint_id}"
payload = { "enabled_events": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled_events: ['<string>']})
};
fetch('https://api.kiteml.com/v1/webhook_endpoints/{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.kiteml.com/v1/webhook_endpoints/{endpoint_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'enabled_events' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kiteml.com/v1/webhook_endpoints/{endpoint_id}"
payload := strings.NewReader("{\n \"enabled_events\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.kiteml.com/v1/webhook_endpoints/{endpoint_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled_events\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kiteml.com/v1/webhook_endpoints/{endpoint_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled_events\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2026-09-27T01:00:00Z",
"enabled_events": [
"augmentation.*"
],
"id": "whk_01K62QZ8V4X9C3N7M5T2R8W6HB",
"last_delivery": {
"attempts": 2,
"created_at": "2026-09-27T02:00:00Z",
"endpoint_id": "whk_01K62QZ8V4X9C3N7M5T2R8W6HB",
"event_id": "evt_01K62QZ8V4X9C3N7M5T2R8W6HC",
"event_type": "augmentation.completed",
"id": "dlv_9f1c2b7e4a5d4e8f9a0b1c2d3e4f5a6b",
"last_response_status": 503,
"next_attempt_at": "2026-09-27T02:06:00Z",
"object": "webhook_delivery",
"status": "pending"
},
"object": "webhook_endpoint",
"status": "active",
"url": "https://example.com/kite"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}Authorizations
A Kite API key (kite_...), from Platform API → Keys in the dashboard.
Headers
The dated contract your code was written against. Without it you get 2026-09-27; every response says which version served it.
2026-09-27 Path Parameters
Body
Only the fields you send change.
Replaces the event types it receives (supports 'augmentation.*'); null or [] for all
disabled: Kite sends it nothing until you set active again. Events in between are not sent later (read them from GET /v1/events), and its pending retries fail
active, disabled Response
Successful Response
A registered webhook receiver.
whk_ + a time-ordered ULID
active or disabled
webhook_endpoint "webhook_endpoint"The event types it receives; null means all
Its newest delivery; null before the first
Show child attributes
Show child attributes
{
"attempts": 2,
"created_at": "2026-09-27T02:00:00Z",
"endpoint_id": "whk_01K62QZ8V4X9C3N7M5T2R8W6HB",
"event_id": "evt_01K62QZ8V4X9C3N7M5T2R8W6HC",
"event_type": "augmentation.completed",
"id": "dlv_9f1c2b7e4a5d4e8f9a0b1c2d3e4f5a6b",
"last_response_status": 503,
"next_attempt_at": "2026-09-27T02:06:00Z",
"object": "webhook_delivery",
"status": "pending"
}
curl --request PATCH \
--url https://api.kiteml.com/v1/webhook_endpoints/{endpoint_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled_events": [
"<string>"
]
}
'import requests
url = "https://api.kiteml.com/v1/webhook_endpoints/{endpoint_id}"
payload = { "enabled_events": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled_events: ['<string>']})
};
fetch('https://api.kiteml.com/v1/webhook_endpoints/{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.kiteml.com/v1/webhook_endpoints/{endpoint_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'enabled_events' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kiteml.com/v1/webhook_endpoints/{endpoint_id}"
payload := strings.NewReader("{\n \"enabled_events\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.kiteml.com/v1/webhook_endpoints/{endpoint_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled_events\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kiteml.com/v1/webhook_endpoints/{endpoint_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled_events\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2026-09-27T01:00:00Z",
"enabled_events": [
"augmentation.*"
],
"id": "whk_01K62QZ8V4X9C3N7M5T2R8W6HB",
"last_delivery": {
"attempts": 2,
"created_at": "2026-09-27T02:00:00Z",
"endpoint_id": "whk_01K62QZ8V4X9C3N7M5T2R8W6HB",
"event_id": "evt_01K62QZ8V4X9C3N7M5T2R8W6HC",
"event_type": "augmentation.completed",
"id": "dlv_9f1c2b7e4a5d4e8f9a0b1c2d3e4f5a6b",
"last_response_status": 503,
"next_attempt_at": "2026-09-27T02:06:00Z",
"object": "webhook_delivery",
"status": "pending"
},
"object": "webhook_endpoint",
"status": "active",
"url": "https://example.com/kite"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}