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"]
}
}| Field | Required | Description |
|---|---|---|
| addresses | Yes | All watched addresses, on and off. |
| inactiveAddresses | Yes | Addresses switched off after a quiet period. |
| addressIdleDays | Yes | Days without activity before an address switches off. |
| deliveries30d | Yes | Messages from the last 30 days by status: pending, delivered, failed (will retry), dead (gave up). |
| lastDeliveredAt | Yes | Time of the latest successful delivery, or null. |
| webhooksEnabled | Yes | Whether your plan includes webhooks. |
| chainIds | Yes | Networks you can add to enabledChainIds. |
Alert when dead grows or lastDeliveredAt is much older than you expect.