Objects and Conventions

These objects and rules apply to every endpoint of the Webhooks API. Each endpoint page links here instead of repeating them.

The webhook object

Every endpoint that returns a webhook returns this object. The signing secret is never part of it: only Create webhook and Rotate webhook secret return a secret.

FieldTypeDescription
idstringwh_ followed by 12 characters.
namestring or nullDisplay name, at most 128 bytes. Not unique, and not sent with deliveries.
statusstringactive, paused, paused_auto, paused_plan, or paused_no_balance. See Webhook statuses.
chainstringeth.
networkstringmainnet.
trigger_typestringaddress_activity, log_event, or tx_confirmation. See Triggers.
filtersobjectThe filter tree. See Filters.
confirm_depthinteger or nullBlocks to wait before the confirmed delivery. null means the chain default, 96.
phasesarray of stringsunconfirmed, confirmed, or both.
target_urlstringYour endpoint, in canonical form: lower-case scheme and host, international host names in punycode.
endpoint_hashstringHex SHA-256 of the target's host and path. Webhooks with the same value share one endpoint for concurrency and the circuit breaker.
batchingobjectmax_events, max_wait_ms, gzip. Stored, but has no effect in this version: every delivery carries one event.
versionintegerGrows by one on every change, including pause, resume, and secret rotation.
created_at, updated_atstringRFC 3339 times.

The address list object

FieldTypeDescription
idstringal_ followed by 12 characters.
namestringUnique per account, at most 128 bytes.
entry_countintegerHow many addresses the list holds.
versionintegerThe list's version number. Compare it to detect changes.
created_at, updated_atstringRFC 3339 times.

A list's addresses are not part of the object: read them with Get address list entries.

Pagination

List endpoints return one page at a time:

json{ "items": [ … ], "next_cursor": "…" }
ParameterTypeDescription
limitintegerPage size. Default 50, at most 200; a larger value is treated as 200. The delivery history defaults to 100, at most 999.
cursorstringThe next_cursor of the previous page. A cursor the endpoint did not issue answers 400 invalid_cursor.

The last page has no next_cursor.

Strict request bodies

Request bodies are JSON and are checked strictly: an unknown field is refused with 400 malformed_body rather than ignored, so a misspelt option is never dropped silently. Addresses may be sent in any case, EIP-55 checksummed included, and are always returned in lower case.

Ownership

A webhook or a list that belongs to someone else answers 404, exactly like an unknown or malformed id. The API never reveals whether another account's id exists.

Limits

LimitValue
Active webhooks, addresses per webhook, addresses per account, events per secondSet by your plan. See Plan limits or call GET /webhooks/limits.
Addresses written into one webhook's filter1,000
Address lists per webhook10
Address lists per account50
Addresses per list100,000
Filter tree8 levels deep, 256 nodes
Request bodyAbout 5 MiB. 100,000 addresses (about 4.6 MB) fit in one request.

A request over a plan limit is refused with 409 and the cap_* code of the limit reached.