Retrieve endpoint delivery metrics
curl --request GET \
--url https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/metricsconst options = {method: 'GET'};
fetch('https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/metrics"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/metrics"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"total": "160",
"period": "day",
"data": [
{
"date": "2026-03-03",
"success": 22,
"failed": 0
},
{
"date": "2026-03-04",
"success": 19,
"failed": 1
},
{
"date": "2026-03-05",
"success": 25,
"failed": 0
},
{
"date": "2026-03-06",
"success": 18,
"failed": 0
},
{
"date": "2026-03-07",
"success": 27,
"failed": 2
},
{
"date": "2026-03-08",
"success": 21,
"failed": 0
},
{
"date": "2026-03-09",
"success": 24,
"failed": 1
}
]
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "API key does not have permission for this operation",
"error_code": "FORBIDDEN"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}{
"detail": "Rate limit exceeded. Please retry after a few seconds.",
"error_code": "TOO_MANY_REQUESTS"
}Endpoint API
Retrieve endpoint delivery metrics
Retrieve delivery success and failure counts for an endpoint over a time range. Requires the webhooks:read scope.
GET
/
v1
/
webhooks
/
endpoints
/
{endpoint_id}
/
metrics
Retrieve endpoint delivery metrics
curl --request GET \
--url https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/metricsconst options = {method: 'GET'};
fetch('https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/metrics"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/metrics"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"total": "160",
"period": "day",
"data": [
{
"date": "2026-03-03",
"success": 22,
"failed": 0
},
{
"date": "2026-03-04",
"success": 19,
"failed": 1
},
{
"date": "2026-03-05",
"success": 25,
"failed": 0
},
{
"date": "2026-03-06",
"success": 18,
"failed": 0
},
{
"date": "2026-03-07",
"success": 27,
"failed": 2
},
{
"date": "2026-03-08",
"success": 21,
"failed": 0
},
{
"date": "2026-03-09",
"success": 24,
"failed": 1
}
]
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "API key does not have permission for this operation",
"error_code": "FORBIDDEN"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}{
"detail": "Rate limit exceeded. Please retry after a few seconds.",
"error_code": "TOO_MANY_REQUESTS"
}Query Parameters
Response
Delivery metrics.
Delivery metrics for an endpoint over a time range.

