Webhooks
Webhook Stats
Get delivery metrics for a webhook: total deliveries, success/failure counts, and success rate.
GET
/
api
/
v1
/
webhooks
/
{id}
/
stats
Webhook Stats
curl --request GET \
--url https://api.example.com/api/v1/webhooks/{id}/statsimport requests
url = "https://api.example.com/api/v1/webhooks/{id}/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/webhooks/{id}/stats', 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.example.com/api/v1/webhooks/{id}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/v1/webhooks/{id}/stats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/webhooks/{id}/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/webhooks/{id}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"webhook_id": "<string>",
"enabled": true,
"consecutive_failures": 123,
"last_delivered_at": {},
"deliveries": {
"total": 123,
"successes": 123,
"failures": 123,
"success_rate_percent": {}
}
}Path Parameters
The webhook UUID.
Response
The webhook UUID
Current enabled state
Current consecutive failure streak. Resets on success; the webhook is auto-disabled once the streak crosses the server-side threshold.
Last successful delivery timestamp
Example
curl https://www.hitheo.ai/api/v1/webhooks/WEBHOOK_ID/stats \
-H "Authorization: Bearer $THEO_API_KEY"
Response
{
"webhook_id": "a1b2c3d4-...",
"enabled": true,
"consecutive_failures": 0,
"last_delivered_at": "2026-04-15T12:01:00.000Z",
"deliveries": {
"total": 142,
"successes": 140,
"failures": 2,
"success_rate_percent": 98.59
}
}
Was this page helpful?
⌘I
Webhook Stats
curl --request GET \
--url https://api.example.com/api/v1/webhooks/{id}/statsimport requests
url = "https://api.example.com/api/v1/webhooks/{id}/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/webhooks/{id}/stats', 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.example.com/api/v1/webhooks/{id}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/v1/webhooks/{id}/stats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/webhooks/{id}/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/webhooks/{id}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"webhook_id": "<string>",
"enabled": true,
"consecutive_failures": 123,
"last_delivered_at": {},
"deliveries": {
"total": 123,
"successes": 123,
"failures": 123,
"success_rate_percent": {}
}
}