Skip to main content
POST
Estimate a webhook subscription
API key required. Send X-API-Key with this request. See REST authentication.
Open the generated operation schema for machine-readable request and response details.

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours at https://0xarchive.io/dashboard

Body

application/json

A would-be subscription to evaluate against history. Same shape as a create, without the endpoint, plus the window.

event_type
string
required

Event type to evaluate.

Example:

"market.liquidation"

config
object

What a subscription matches on. Every key is checked against the event type's catalog declaration, so an unknown key, an undeclared parameter or a condition on an undeclared metric is refused rather than ignored. The stored config is the normalised form: venues and addresses lowercased, declared parameters filled in at their defaults, and operators written in their canonical spelling.

lookback_days
integer<int64>
default:7

Days of history to evaluate, ending now.

Required range: 1 <= x <= 30
Example:

7

Response

How often the configuration would have fired

API response containing a subscription estimate.

success
boolean
Example:

true

data
object

How often a would-be subscription would have fired over the requested window. Nothing is stored and no delivery is sent.

Last modified on September 20, 2026