Webhook delivery stats
curl --request GET \
--url https://api.scrip.dev/v1/webhook-endpoints/delivery-stats \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.scrip.dev/v1/webhook-endpoints/delivery-stats"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.scrip.dev/v1/webhook-endpoints/delivery-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.scrip.dev/v1/webhook-endpoints/delivery-stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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.scrip.dev/v1/webhook-endpoints/delivery-stats"
req, _ := http.NewRequest("GET", 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.get("https://api.scrip.dev/v1/webhook-endpoints/delivery-stats")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scrip.dev/v1/webhook-endpoints/delivery-stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"blocked_reason": "circuit_broken",
"blocked_until": "2026-05-18T10:40:00Z",
"circuit_broken_until": "2026-05-18T10:40:00Z",
"degraded": false,
"endpoint_id": "550e8400-e29b-41d4-a716-446655440000",
"fail_24h": 3,
"fail_count": 3,
"last_attempt_at": "2026-05-18T10:30:01Z",
"oldest_pending_at": "2026-05-18T10:25:00Z",
"pending_count": 0,
"rate_limited_until": "2026-05-18T10:35:00Z",
"status": "ACTIVE",
"success_24h": 142,
"success_count": 142,
"success_rate": 0.9793,
"url": "https://example.com/webhooks"
}
]
}{
"code": "unauthorized",
"details": {
"expected": "uuid",
"field": "asset_id",
"fields": [
{
"expected": "<unknown>",
"field": "amount",
"message": "This field is required",
"reason": "required",
"received": "-10.00"
}
],
"reason": "invalid",
"received": "not-a-uuid"
},
"message": "Missing or invalid credentials"
}{
"code": "forbidden",
"details": {
"expected": "uuid",
"field": "asset_id",
"fields": [
{
"expected": "<unknown>",
"field": "amount",
"message": "This field is required",
"reason": "required",
"received": "-10.00"
}
],
"reason": "invalid",
"received": "not-a-uuid"
},
"message": "Insufficient permissions for this action"
}{
"code": "internal_error",
"message": "An internal error occurred"
}Webhooks
Webhook delivery stats
Retrieve a delivery rollup (success/fail counts, success rate, degraded flag) for every webhook endpoint in your organization. Defaults to the last 24 hours; accepts from and to.
GET
/
v1
/
webhook-endpoints
/
delivery-stats
Webhook delivery stats
curl --request GET \
--url https://api.scrip.dev/v1/webhook-endpoints/delivery-stats \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.scrip.dev/v1/webhook-endpoints/delivery-stats"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.scrip.dev/v1/webhook-endpoints/delivery-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.scrip.dev/v1/webhook-endpoints/delivery-stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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.scrip.dev/v1/webhook-endpoints/delivery-stats"
req, _ := http.NewRequest("GET", 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.get("https://api.scrip.dev/v1/webhook-endpoints/delivery-stats")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scrip.dev/v1/webhook-endpoints/delivery-stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"blocked_reason": "circuit_broken",
"blocked_until": "2026-05-18T10:40:00Z",
"circuit_broken_until": "2026-05-18T10:40:00Z",
"degraded": false,
"endpoint_id": "550e8400-e29b-41d4-a716-446655440000",
"fail_24h": 3,
"fail_count": 3,
"last_attempt_at": "2026-05-18T10:30:01Z",
"oldest_pending_at": "2026-05-18T10:25:00Z",
"pending_count": 0,
"rate_limited_until": "2026-05-18T10:35:00Z",
"status": "ACTIVE",
"success_24h": 142,
"success_count": 142,
"success_rate": 0.9793,
"url": "https://example.com/webhooks"
}
]
}{
"code": "unauthorized",
"details": {
"expected": "uuid",
"field": "asset_id",
"fields": [
{
"expected": "<unknown>",
"field": "amount",
"message": "This field is required",
"reason": "required",
"received": "-10.00"
}
],
"reason": "invalid",
"received": "not-a-uuid"
},
"message": "Missing or invalid credentials"
}{
"code": "forbidden",
"details": {
"expected": "uuid",
"field": "asset_id",
"fields": [
{
"expected": "<unknown>",
"field": "amount",
"message": "This field is required",
"reason": "required",
"received": "-10.00"
}
],
"reason": "invalid",
"received": "not-a-uuid"
},
"message": "Insufficient permissions for this action"
}{
"code": "internal_error",
"message": "An internal error occurred"
}Returns a per-endpoint delivery rollup for your organization. Use it to monitor 24-hour delivery health, current backlog, and why an endpoint is not currently receiving deliveries.
Each row includes
success_24h, fail_24h, success_rate, and degraded, plus backlog and pause fields such as pending_count, oldest_pending_at, circuit_broken_until, rate_limited_until, blocked_reason, and blocked_until.
For recovery behavior and block reasons, see the Webhooks guide: Endpoint Health.
⌘I