Skip to content
Docs

Webhook settings

Get stats

GET /v1/webhook/stats returns address counts and delivery results from the last 30 days.

Overview

GET/v1/webhook/stats

A quick health summary: how many addresses you watch, and how deliveries went over the last 30 days. Useful for dashboards and alerts.

Request

Request
curl -sS "https://webhooks.gray3.io/v1/webhook/stats" \
  -H "X-Gray-Project-Id: proj_your_project_id" \
  -H "Authorization: Bearer gray_whk_your_webhook_key"

Response

HTTP 200 — success envelope wraps the payload in data.

json
{
  "data": {
    "addresses": 1840,
    "inactiveAddresses": 312,
    "addressIdleDays": 30,
    "deliveries30d": { "pending": 2, "delivered": 48211, "failed": 1, "dead": 0 },
    "lastDeliveredAt": "2026-10-16T09:31:12.402Z",
    "webhooksEnabled": true,
    "chainIds": ["ethereum", "base", "arbitrum", "polygon"]
  }
}
FieldRequiredDescription
addressesYesAll watched addresses, on and off.
inactiveAddressesYesAddresses switched off after a quiet period.
addressIdleDaysYesDays without activity before an address switches off.
deliveries30dYesMessages from the last 30 days by status: pending, delivered, failed (will retry), dead (gave up).
lastDeliveredAtYesTime of the latest successful delivery, or null.
webhooksEnabledYesWhether your plan includes webhooks.
chainIdsYesNetworks you can add to enabledChainIds.

Alert when dead grows or lastDeliveredAt is much older than you expect.