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

EndpointMethodDescription
/meGETThe user id behind the API key

Access tokens

EndpointMethodDescription
/tokensGETList your access tokens, most recently updated first
/tokensPOSTCreate a Shared Node access token
/tokens/{id}GETGet one access token
/tokens/{id}DELETEDelete an access token
/tokens/{id}/rotatePOSTReplace a token with a new one of the same configuration

Dedicated Nodes

EndpointMethodDescription
/dedicatedGETList your Dedicated Nodes
/dedicated/{id}GETGet one Dedicated Node, with the APIs and add-ons it serves
/dedicated/{id}/tokensPOSTCreate an access token bound to a Dedicated Node

Limitless Nodes

EndpointMethodDescription
/limitlessGETList your Limitless Nodes
/limitless/{id}GETGet one Limitless Node
/limitless/{id}/tokensPOSTCreate an access token bound to a Limitless Node

Plan and subscriptions

EndpointMethodDescription
/subscriptionGETYour current plan and its limits
/subscriptionsGETYour plan, add-on, and package subscriptions
/subscriptions/{id}GETGet one subscription

Balance and pricing

EndpointMethodDescription
/balanceGETYour CU balance and prepaid USD credits
/pricingGETWhat each plan costs your account

Catalog

EndpointMethodDescription
/protocolsGETProtocols available on Shared Nodes
/protocols/{id}GETOne protocol's networks, sync modes, API types, regions, and add-ons
/addonsGETAdd-ons available on Shared Nodes

Choosing an endpoint

If you need toUse
Check that an API key worksGET /me
Find which networks, APIs, and regions a chain supportsGET /protocols/{id}
Create a Shared Node endpointPOST /tokens
Create an endpoint on a Dedicated or Limitless NodePOST /dedicated/{id}/tokens or POST /limitless/{id}/tokens
Replace a leaked endpoint URLPOST /tokens/{id}/rotate
Find every endpoint for one chainGET /tokens?protocol=eth
Check how many tokens your plan allowsGET /subscription
Alert before CU runs outGET /balance
Compare plans at the price your account would payGET /pricing

Reference

PageWhat it covers
Objects and ConventionsThe access token, node, and subscription objects, pagination, filters, ownership, and errors