API Reference

This section documents every endpoint of the GetBlock Public API for webhooks and address lists. Everything you do on the Webhooks page of the dashboard, you can also do through these endpoints.

The API has two groups of endpoints: webhooks, which say what to watch and where to deliver it, and address lists, which hold large or shared sets of addresses that webhooks reference. Each endpoint has its own page covering its parameters, a sample request and response, and every field it returns. The interactive schema is in the Public API reference.

Quickstart

Create a webhook that delivers every USDT Transfer on Ethereum Mainnet to your endpoint:

bashcurl -X POST https://public-api.getblock.io/api/v1/webhooks \
  -H "Authorization: Bearer $GETBLOCK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "usdt-transfers",
    "chain": "eth",
    "network": "mainnet",
    "trigger_type": "log_event",
    "phases": ["unconfirmed", "confirmed"],
    "target_url": "https://hooks.example.io/getblock",
    "filters": {
      "all": [
        { "type": "contract", "in": ["0xdac17f958d2ee523a2206206994597c13d831ec7"] },
        { "type": "topic", "position": 0, "in": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"] }
      ]
    }
  }'

The API answers 201 Created with the webhook and its signing secret. GetBlock then sends each matching event to target_url as a signed POST:

json{
  "id": "wh_4Qk7Xz9pLm2R",
  "name": "usdt-transfers",
  "status": "active",
  "chain": "eth",
  "network": "mainnet",
  "trigger_type": "log_event",
  "filters": { "all": [ { "type": "contract", "in": ["0xdac17f958d2ee523a2206206994597c13d831ec7"] }, { "…": "…" } ] },
  "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",
  "secret": "whsec_5Hk9pQ2rT7vX1mN4bC8dF3gJ6"
}

Base URL

https://public-api.getblock.io/api/v1

Every path on these pages is relative to this base URL.

Authentication

Every request needs a GetBlock API key in the Authorization header:

Authorization: Bearer <API-KEY>

Getting your API key

Create a key under Settings → API Keys in your GetBlock account. Keys start with gb_. Treat the key as a secret: anyone who holds it can manage your webhooks and spend your CU. The examples on these pages read it from the GETBLOCK_API_KEY environment variable.

A missing or invalid key answers 401.

Webhooks

EndpointMethodDescription
/webhooksPOSTCreate a webhook and get its signing secret
/webhooksGETList your webhooks, newest first
/webhooks/limitsGETYour plan's webhook limits and current usage
/webhooks/{id}GETGet one webhook
/webhooks/{id}PATCHChange some of a webhook's settings
/webhooks/{id}DELETEDelete a webhook
/webhooks/{id}/pausePOSTStop deliveries
/webhooks/{id}/resumePOSTStart deliveries again
/webhooks/{id}/secret/rotatePOSTIssue a new signing secret
/webhooks/{id}/testPOSTSend a free test event to the endpoint
/webhooks/{id}/deliveriesGETFailed delivery attempts, newest first
/webhooks/{id}/statsGETDelivery totals and recent rates
/webhooks/{id}/addressesGETThe addresses the webhook was given in addresses

Address lists

EndpointMethodDescription
/address-listsPOSTCreate a named list, optionally with its first addresses
/address-listsGETList your address lists, newest first
/address-lists/{id}GETGet one list, without its addresses
/address-lists/{id}PATCHRename a list
/address-lists/{id}DELETEDelete a list
/address-lists/{id}/entriesGETThe addresses in a list
/address-lists/{id}/entriesPOSTAdd addresses
/address-lists/{id}/entriesPUTReplace all addresses
/address-lists/{id}/entries/removePOSTRemove addresses

Choosing an endpoint

If you need toUse
Start receiving events for wallets, a contract, or confirmationsPOST /webhooks
Check whether a new webhook fits your plan before creating itGET /webhooks/limits
Change the endpoint URL, phases, or what a webhook watchesPATCH /webhooks/{id}
Stop deliveries for a while without losing the configurationPOST /webhooks/{id}/pause
Bring back a webhook paused after failures or an empty balancePOST /webhooks/{id}/resume
Replace a lost or leaked signing secretPOST /webhooks/{id}/secret/rotate
Check that your endpoint receives and verifies deliveriesPOST /webhooks/{id}/test
Find out why deliveries failGET /webhooks/{id}/deliveries
Count delivered, failed, and rate-limited eventsGET /webhooks/{id}/stats
Watch more than 1,000 addresses, or share addresses between webhooksPOST /address-lists, then list_refs on the webhook
Sync a list with your own databasePUT /address-lists/{id}/entries

Reference

PageWhat it covers
Objects and ConventionsThe webhook and address list objects, pagination, strict request bodies, ownership, and limits
Error CodesThe error format and every error code, with its HTTP status

Pricing

Webhooks are billed per delivery attempt: 25 CU per attempt, from the same CU balance as your RPC requests. Test deliveries are free. See Pricing and Limits.