# API Reference

> Full reference for the GetBlock Webhooks API: base URL, authentication, every webhook and address-list endpoint, pagination, limits, and error codes.

This section documents every endpoint of the GetBlock Public API for webhooks and address lists. Everything you do on the [Webhooks page](https://account.getblock.io/products/webhooks) of the dashboard, you can also do through these endpoints.

The API has two groups of endpoints: [**webhooks**](/webhooks/api-reference/#webhooks), which say what to watch and where to deliver it, and [**address lists**](/webhooks/api-reference/#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](https://public-api.getblock.io/docs/v1).

### Quickstart

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

#### Request

```bash
curl -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"] }
      ]
    }
  }'
```

#### Response

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>
```

> **Info:** **Getting your API key**\
> \
> Create a key under [**Settings → API Keys**](https://account.getblock.io/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`](/webhooks/api-reference/create-webhook/) | `POST` | Create a webhook and get its signing secret |
| [`/webhooks`](/webhooks/api-reference/list-webhooks/) | `GET` | List your webhooks, newest first |
| [`/webhooks/limits`](/webhooks/api-reference/get-webhook-limits/) | `GET` | Your plan's webhook limits and current usage |
| [`/webhooks/{id}`](/webhooks/api-reference/get-webhook/) | `GET` | Get one webhook |
| [`/webhooks/{id}`](/webhooks/api-reference/update-webhook/) | `PATCH` | Change some of a webhook's settings |
| [`/webhooks/{id}`](/webhooks/api-reference/delete-webhook/) | `DELETE` | Delete a webhook |
| [`/webhooks/{id}/pause`](/webhooks/api-reference/pause-webhook/) | `POST` | Stop deliveries |
| [`/webhooks/{id}/resume`](/webhooks/api-reference/resume-webhook/) | `POST` | Start deliveries again |
| [`/webhooks/{id}/secret/rotate`](/webhooks/api-reference/rotate-webhook-secret/) | `POST` | Issue a new signing secret |
| [`/webhooks/{id}/test`](/webhooks/api-reference/send-test-event/) | `POST` | Send a free test event to the endpoint |
| [`/webhooks/{id}/deliveries`](/webhooks/api-reference/get-webhook-deliveries/) | `GET` | Failed delivery attempts, newest first |
| [`/webhooks/{id}/stats`](/webhooks/api-reference/get-webhook-stats/) | `GET` | Delivery totals and recent rates |
| [`/webhooks/{id}/addresses`](/webhooks/api-reference/get-webhook-addresses/) | `GET` | The addresses the webhook was given in `addresses` |

### Address lists

| Endpoint | Method | Description |
| --- | --- | --- |
| [`/address-lists`](/webhooks/api-reference/create-address-list/) | `POST` | Create a named list, optionally with its first addresses |
| [`/address-lists`](/webhooks/api-reference/list-address-lists/) | `GET` | List your address lists, newest first |
| [`/address-lists/{id}`](/webhooks/api-reference/get-address-list/) | `GET` | Get one list, without its addresses |
| [`/address-lists/{id}`](/webhooks/api-reference/rename-address-list/) | `PATCH` | Rename a list |
| [`/address-lists/{id}`](/webhooks/api-reference/delete-address-list/) | `DELETE` | Delete a list |
| [`/address-lists/{id}/entries`](/webhooks/api-reference/get-address-list-entries/) | `GET` | The addresses in a list |
| [`/address-lists/{id}/entries`](/webhooks/api-reference/add-address-list-entries/) | `POST` | Add addresses |
| [`/address-lists/{id}/entries`](/webhooks/api-reference/replace-address-list-entries/) | `PUT` | Replace all addresses |
| [`/address-lists/{id}/entries/remove`](/webhooks/api-reference/remove-address-list-entries/) | `POST` | Remove addresses |

### Choosing an endpoint

| If you need to | Use |
| --- | --- |
| Start receiving events for wallets, a contract, or confirmations | [`POST /webhooks`](/webhooks/api-reference/create-webhook/) |
| Check whether a new webhook fits your plan before creating it | [`GET /webhooks/limits`](/webhooks/api-reference/get-webhook-limits/) |
| Change the endpoint URL, phases, or what a webhook watches | [`PATCH /webhooks/{id}`](/webhooks/api-reference/update-webhook/) |
| Stop deliveries for a while without losing the configuration | [`POST /webhooks/{id}/pause`](/webhooks/api-reference/pause-webhook/) |
| Bring back a webhook paused after failures or an empty balance | [`POST /webhooks/{id}/resume`](/webhooks/api-reference/resume-webhook/) |
| Replace a lost or leaked signing secret | [`POST /webhooks/{id}/secret/rotate`](/webhooks/api-reference/rotate-webhook-secret/) |
| Check that your endpoint receives and verifies deliveries | [`POST /webhooks/{id}/test`](/webhooks/api-reference/send-test-event/) |
| Find out why deliveries fail | [`GET /webhooks/{id}/deliveries`](/webhooks/api-reference/get-webhook-deliveries/) |
| Count delivered, failed, and rate-limited events | [`GET /webhooks/{id}/stats`](/webhooks/api-reference/get-webhook-stats/) |
| Watch more than 1,000 addresses, or share addresses between webhooks | [`POST /address-lists`](/webhooks/api-reference/create-address-list/), then `list_refs` on the webhook |
| Sync a list with your own database | [`PUT /address-lists/{id}/entries`](/webhooks/api-reference/replace-address-list-entries/) |

### Reference

| Page | What it covers |
| --- | --- |
| [Objects and Conventions](/webhooks/api-reference/objects-and-conventions/) | The webhook and address list objects, pagination, strict request bodies, ownership, and limits |
| [Error Codes](/webhooks/api-reference/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](/webhooks/pricing-and-limits/).
