Get webhook delivery statistics

Get webhook delivery statistics. View request and response details for this Samva email API endpoint.

GET
/v1/webhooks/{webhookId}/stats

Returns aggregate pending, delivered, exhausted, and cancelled delivery counts for a webhook endpoint, plus the same counts per workspace-local calendar day over the selected period of 7, 30, or 90 days. Deliveries are retained for 90 days, so 90d is the whole history.

x-api-key<token>

In: header

Path Parameters

webhookId*string
Match^wep_[0-9a-hjkmnp-tv-z]{16,24}$

Query Parameters

period?|null

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/webhooks/string/stats"
{  "total": 0,  "pending": 0,  "delivered": 0,  "exhausted": 0,  "cancelled": 0,  "daily": [    {      "date": "string",      "pending": 0,      "delivered": 0,      "exhausted": 0,      "cancelled": 0    }  ]}