API Reference
This section documents every endpoint of the GetBlock Platform API. 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 OpenAPI reference.
Quickstart
Create an archive JSON-RPC endpoint for Ethereum Mainnet:
bashcurl -X POST https://public-api.getblock.io/api/v1/tokens \
-H "Authorization: Bearer $GETBLOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"protocol":"eth","network":"mainnet","api":"json-rpc","mode":"archive"}'The API answers 201 Created with the token and its ready-to-use endpoint:
json{
"id": "9b2796d7b4c448de83b01644bb93f625",
"name": "eth-9b279",
"status": "active",
"namespace": "shared",
"protocol": "eth",
"network": "mainnet",
"api": "json-rpc",
"mode": "archive",
"region": "eu-central-1",
"addon": "",
"dedicated_node_id": "",
"limitless_node_id": "",
"endpoint": "https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/",
"created_at": "2026-10-02T13:19:13Z",
"updated_at": "2026-10-02T13:19:13Z"
}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 create and delete your access tokens. The examples on these pages read it from the GETBLOCK_API_KEY environment variable.
A missing or invalid key answers 401.
Account
| Endpoint | Method | Description |
|---|---|---|
/me | GET | The user id behind the API key |
Access tokens
| Endpoint | Method | Description |
|---|---|---|
/tokens | GET | List your access tokens, most recently updated first |
/tokens | POST | Create a Shared Node access token |
/tokens/{id} | GET | Get one access token |
/tokens/{id} | DELETE | Delete an access token |
/tokens/{id}/rotate | POST | Replace a token with a new one of the same configuration |
Dedicated Nodes
| Endpoint | Method | Description |
|---|---|---|
/dedicated | GET | List your Dedicated Nodes |
/dedicated/{id} | GET | Get one Dedicated Node, with the APIs and add-ons it serves |
/dedicated/{id}/tokens | POST | Create an access token bound to a Dedicated Node |
Limitless Nodes
| Endpoint | Method | Description |
|---|---|---|
/limitless | GET | List your Limitless Nodes |
/limitless/{id} | GET | Get one Limitless Node |
/limitless/{id}/tokens | POST | Create an access token bound to a Limitless Node |
Plan and subscriptions
| Endpoint | Method | Description |
|---|---|---|
/subscription | GET | Your current plan and its limits |
/subscriptions | GET | Your plan, add-on, and package subscriptions |
/subscriptions/{id} | GET | Get one subscription |
Balance and pricing
| Endpoint | Method | Description |
|---|---|---|
/balance | GET | Your CU balance and prepaid USD credits |
/pricing | GET | What each plan costs your account |
Catalog
| Endpoint | Method | Description |
|---|---|---|
/protocols | GET | Protocols available on Shared Nodes |
/protocols/{id} | GET | One protocol's networks, sync modes, API types, regions, and add-ons |
/addons | GET | Add-ons available on Shared Nodes |
Choosing an endpoint
| If you need to | Use |
|---|---|
| Check that an API key works | GET /me |
| Find which networks, APIs, and regions a chain supports | GET /protocols/{id} |
| Create a Shared Node endpoint | POST /tokens |
| Create an endpoint on a Dedicated or Limitless Node | POST /dedicated/{id}/tokens or POST /limitless/{id}/tokens |
| Replace a leaked endpoint URL | POST /tokens/{id}/rotate |
| Find every endpoint for one chain | GET /tokens?protocol=eth |
| Check how many tokens your plan allows | GET /subscription |
| Alert before CU runs out | GET /balance |
| Compare plans at the price your account would pay | GET /pricing |
Reference
| Page | What it covers |
|---|---|
| Objects and Conventions | The access token, node, and subscription objects, pagination, filters, ownership, and errors |