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/v1Every 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
| Endpoint | Method | Description |
|---|---|---|
/webhooks | POST | Create a webhook and get its signing secret |
/webhooks | GET | List your webhooks, newest first |
/webhooks/limits | GET | Your plan's webhook limits and current usage |
/webhooks/{id} | GET | Get one webhook |
/webhooks/{id} | PATCH | Change some of a webhook's settings |
/webhooks/{id} | DELETE | Delete a webhook |
/webhooks/{id}/pause | POST | Stop deliveries |
/webhooks/{id}/resume | POST | Start deliveries again |
/webhooks/{id}/secret/rotate | POST | Issue a new signing secret |
/webhooks/{id}/test | POST | Send a free test event to the endpoint |
/webhooks/{id}/deliveries | GET | Failed delivery attempts, newest first |
/webhooks/{id}/stats | GET | Delivery totals and recent rates |
/webhooks/{id}/addresses | GET | The addresses the webhook was given in addresses |
Address lists
| Endpoint | Method | Description |
|---|---|---|
/address-lists | POST | Create a named list, optionally with its first addresses |
/address-lists | GET | List your address lists, newest first |
/address-lists/{id} | GET | Get one list, without its addresses |
/address-lists/{id} | PATCH | Rename a list |
/address-lists/{id} | DELETE | Delete a list |
/address-lists/{id}/entries | GET | The addresses in a list |
/address-lists/{id}/entries | POST | Add addresses |
/address-lists/{id}/entries | PUT | Replace all addresses |
/address-lists/{id}/entries/remove | POST | Remove addresses |
Choosing an endpoint
| If you need to | Use |
|---|---|
| Start receiving events for wallets, a contract, or confirmations | POST /webhooks |
| Check whether a new webhook fits your plan before creating it | GET /webhooks/limits |
| Change the endpoint URL, phases, or what a webhook watches | PATCH /webhooks/{id} |
| Stop deliveries for a while without losing the configuration | POST /webhooks/{id}/pause |
| Bring back a webhook paused after failures or an empty balance | POST /webhooks/{id}/resume |
| Replace a lost or leaked signing secret | POST /webhooks/{id}/secret/rotate |
| Check that your endpoint receives and verifies deliveries | POST /webhooks/{id}/test |
| Find out why deliveries fail | GET /webhooks/{id}/deliveries |
| Count delivered, failed, and rate-limited events | GET /webhooks/{id}/stats |
| Watch more than 1,000 addresses, or share addresses between webhooks | POST /address-lists, then list_refs on the webhook |
| Sync a list with your own database | PUT /address-lists/{id}/entries |
Reference
| Page | What it covers |
|---|---|
| Objects and Conventions | The webhook and address list objects, pagination, strict request bodies, ownership, and limits |
| Error Codes | The 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.