Skip to main content
GET
/
metrics
/
webhook-delivery
Webhook delivery volume, success rate, and latency
curl --request GET \
  --url https://api-sandbox.ledgersyncappv2.com/v3/metrics/webhook-delivery \
  --header 'Authorization: Bearer <token>'
{
  "total_deliveries": 1,
  "success_count": 1,
  "failure_count": 1,
  "p95_latency_ms": 1,
  "failures_by_event": [
    {
      "event_type": "<string>",
      "count": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

Pass your secret key in the Authorization header as a Bearer token: Authorization: Bearer sk_test_... (sandbox) or Bearer sk_live_... (production).

Keys are created in the developer portal and the plaintext secret is shown exactly once at creation. Treat them like passwords — never embed them in mobile apps or front-end code.

Query Parameters

from
string<date-time>

Inclusive lower bound (ISO-8601 timestamp). Defaults to now - 30 days when omitted.

to
string<date-time>

Exclusive upper bound (ISO-8601 timestamp). Defaults to now when omitted.

Response

Aggregated webhook-delivery stats.

total_deliveries
integer<int64>
required
Required range: x >= 0
success_count
integer<int64>
required
Required range: x >= 0
failure_count
integer<int64>
required
Required range: x >= 0
p95_latency_ms
number
required

Latency proxy: attempted_at - webhook_event.created_at, in milliseconds. The attempt row carries no per-attempt duration today; this is the closest available signal.

Required range: x >= 0
failures_by_event
object[]
required