Get webhook - Webhooks

GET /webhooks/{id} returns one of your webhooks. The signing secret is never included.

GET https://public-api.getblock.io/api/v1/webhooks/{id}

Parameters

ParameterTypeRequiredDescription
idstringYesPath parameter. The webhook's id (wh_…).

Request Example

bashcurl https://public-api.getblock.io/api/v1/webhooks/wh_4Qk7Xz9pLm2R \
  -H "Authorization: Bearer $GETBLOCK_API_KEY"
javascriptconst id = 'wh_4Qk7Xz9pLm2R';

const response = await fetch(`https://public-api.getblock.io/api/v1/webhooks/${id}`, {
  headers: { Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}` }
});
const webhook = await response.json();

console.log(webhook.status);
pythonimport os
import requests

webhook_id = "wh_4Qk7Xz9pLm2R"

webhook = requests.get(
    f"https://public-api.getblock.io/api/v1/webhooks/{webhook_id}",
    headers={"Authorization": f"Bearer {os.environ['GETBLOCK_API_KEY']}"},
).json()

print(webhook["status"])

Response Example

json{
  "id": "wh_4Qk7Xz9pLm2R",
  "name": "treasury-wallets",
  "status": "active",
  "chain": "eth",
  "network": "mainnet",
  "trigger_type": "address_activity",
  "filters": {
    "type": "address",
    "dir": "any",
    "list_refs": ["al_2bQ4rTz9KmNp"],
    "src": "sugar"
  },
  "confirm_depth": null,
  "phases": ["unconfirmed", "confirmed"],
  "target_url": "https://hooks.example.io/getblock",
  "endpoint_hash": "3f2a9c0e5b7d41a8c6e2f0b9d8a7c6e5f4d3c2b1a0918273645546372819aabb",
  "batching": { "max_events": 0, "max_wait_ms": 0, "gzip": false },
  "version": 1,
  "created_at": "2026-09-25T10:00:00Z",
  "updated_at": "2026-09-25T10:00:00Z"
}

Response Parameters

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.
filtersobjectThe filter tree. A leaf with "src": "sugar" was built from addresses or list_refs.
confirm_depthinteger or nullBlocks before the confirmed delivery. null means the chain default, 96.
phasesarray of stringsunconfirmed, confirmed, or both.
target_urlstringYour endpoint, in canonical form.
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.
batchingobjectStored, but has no effect in this version.
versionintegerGrows by one on every change, including pause, resume, and secret rotation.
created_at, updated_atstringRFC 3339 times.

Before you send filters back in a PATCH, remove any leaf that carries "src": "sugar". The marker is reserved, and a tree that contains it is refused with 400 filter_reserved_field.

Use Cases

  • Check a webhook's status after a balance top-up or an endpoint outage
  • Read the current filter before you change it
  • Confirm a change took effect by comparing version

Error Handling

HTTPCodeCause
404not_foundNo such webhook among yours. A deleted webhook, another account's webhook, and a malformed id answer the same way.