List access tokens - Platform API

GET /tokens returns your access tokens, most recently updated first. Only usable tokens are listed: deleted tokens and tokens replaced by a rotation are left out.

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

Parameters

ParameterTypeRequiredDescription
limitintegerNoQuery parameter. Page size. Default 20, at most 100.
offsetintegerNoQuery parameter. Items to skip. Default 0.
namestringNoQuery parameter. Substring of the token name, such as eth-9ee4d.
protocolstringNoQuery parameter. Protocol id, such as eth.
networkstringNoQuery parameter. Network id, such as mainnet.
regionstringNoQuery parameter. Region, such as eu-central-1.
namespacestringNoQuery parameter. Access type, such as shared.

Filters combine with AND and are case-insensitive. See Pagination.

Request Example

bashcurl 'https://public-api.getblock.io/api/v1/tokens?protocol=eth' \
  -H "Authorization: Bearer $GETBLOCK_API_KEY"
javascriptconst response = await fetch('https://public-api.getblock.io/api/v1/tokens?protocol=eth', {
  headers: { Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}` }
});
const body = await response.json();

console.log(body.tokens.map((t) => t.endpoint));
pythonimport os
import requests

body = requests.get(
    "https://public-api.getblock.io/api/v1/tokens",
    headers={"Authorization": f"Bearer {os.environ['GETBLOCK_API_KEY']}"},
    params={"protocol": "eth"},
).json()

print([t["endpoint"] for t in body["tokens"]])

Response Example

json{
  "total": 2,
  "limit": 20,
  "offset": 0,
  "tokens": [
    {
      "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"
    },
    {
      "id": "e41a7c09d2b54f6e8a3c1b07f9d26e58",
      "name": "eth-e41a7",
      "status": "active",
      "namespace": "shared",
      "protocol": "eth",
      "network": "sepolia",
      "api": "json-rpc",
      "mode": "full",
      "region": "eu-central-1",
      "addon": "",
      "dedicated_node_id": "",
      "limitless_node_id": "",
      "endpoint": "https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/",
      "created_at": "2026-09-14T08:02:51Z",
      "updated_at": "2026-09-14T08:02:51Z"
    }
  ]
}

Response Parameters

FieldTypeDescription
totalintegerTokens matching the filters, before limit and offset.
limitintegerPage size applied.
offsetintegerItems skipped.
tokensarray of objectsThe tokens on this page. See The access token object.

Use Cases

  • Find every endpoint for one chain before migrating it
  • Audit which tokens exist and which are locked
  • Count tokens against the plan's max_tokens from GET /subscription

Error Handling

HTTPCause
401Missing or invalid API key.
502A GetBlock service behind the API did not answer. Retry later.

Error bodies carry an error message and a request_id. See Errors.