Objects and Conventions

These objects and rules apply to every endpoint of the Platform API. Each endpoint page links here for the details it shares with the others.

The access token object

Every endpoint that returns an access token returns this object: list, details, create, and rotate.

FieldTypeDescription
idstringThe access token itself, the credential inside endpoint. Treat it as a secret.
namestringGenerated when the token is created. It cannot be chosen.
statusstringactive for a usable token; locked for one suspended by plan or billing state.
namespacestringAccess type the token was issued for, such as shared.
protocolstringProtocol id, such as eth.
networkstringNetwork id, such as mainnet.
apistringAPI type served on the endpoint, such as json-rpc.
modestringSync mode, full or archive. Empty when it does not apply.
regionstringRegion serving the endpoint, such as eu-central-1 for Frankfurt, us-east-1 for New York, ap-southeast-1 for Singapore
addonstringAdd-on bound to the token. Empty when none.
dedicated_node_idstringSet only for tokens bound to a Dedicated Node. Empty otherwise.
limitless_node_idstringSet only for tokens bound to a Limitless Node. Empty otherwise.
endpointstringReady-to-use RPC URL for the token.
created_at, updated_atstringRFC 3339 UTC times.

The Dedicated Node object

FieldTypeDescription
idstringThe node id, used in the /dedicated/{id} routes.
namestringThe node's name.
statusstringcreated, deploying, active, or disabled.
protocolstringProtocol id.
networkstringNetwork id.
sync_modestringfull or archive.
clientstringThe node's client software, such as geth.
regionstringRegion the node runs in.
performance_gradestringstandard or high. See Dedicated node performance tiers.
apisarray of stringsAPI types the node serves: the valid values of api when creating a token for it.
addonsarray of stringsAdd-ons the node serves: the valid values of addon when creating a token for it.
created_at, updated_atstringRFC 3339 UTC times.

The Limitless Node object

FieldTypeDescription
idstringThe node id, used in the /limitless/{id} routes.
statusstringThe node subscription's status, such as active or pending.
protocolstringProtocol id.
networkstringNetwork id.
regionstringRegion serving the node.
modestringSync mode, full or archive.
rps_limitintegerThe node's guaranteed requests per second.
gradestringThe node's tier, such as full-growth.
apisarray of stringsAPI types your existing tokens on the node serve. Not the full set: any API in the catalog for the node's protocol may be requested.

The subscription object

A subscription is a plan, an enterprise plan, or a request package. Each is its own record, told apart by product_type. Dedicated and Limitless Nodes are not subscriptions in this API: they are under /dedicated and /limitless.

FieldTypeDescription
idstringThe subscription record, unique per subscription.
product_typestringplan, enterprise_plan, or request_package.
product_idstringThe product, such as pro for a plan. Shared by everyone on the same product.
statusstringactive and grace_period are serving; cancelled and awaiting_render are not.
periodstringBilling period, such as 1m or 12m.
typestringregular or trial.
started_at, paid_until, current_period_endstringRFC 3339 UTC times.

Pagination

List endpoints page with limit and offset and return a total:

json{ "total": 18, "limit": 20, "offset": 0, "tokens": [ … ] }
ParameterTypeDescription
limitintegerPage size. Default 20, at most 100; a larger value is treated as 100.
offsetintegerNumber of matching items to skip. Default 0.

total counts every item that matches the filters, before limit and offset. More pages exist while offset + limit < total.

paginate.js

javascriptconst tokens = [];
let offset = 0;
let total;

do {
  const response = await fetch(`https://public-api.getblock.io/api/v1/tokens?limit=100&offset=${offset}`, {
    headers: { Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}` }
  });
  const page = await response.json();
  tokens.push(...page.tokens);
  total = page.total;
  offset += page.limit;
} while (offset < total);

Filters

List endpoints accept filters as query parameters, such as protocol, network, region, and status. Filters combine with AND and are case-insensitive. Each endpoint page lists the filters it accepts.

Ownership

Responses cover only the account behind the API key. A token, node, or subscription that belongs to another account answers 404, exactly like an unknown id. The API never reveals whether another account's id exists.

Creation rules

Node endpoints have no create or delete: Dedicated and Limitless Nodes are ordered in the dashboard. The API lists and inspects them, and issues tokens bound to them.

Your plan limits what you can create. It caps the number of tokens and decides which networks and regions are open to you. The max_tokens limit is in GET /subscription; paid-only regions are flagged per network in GET /protocols/{id}.

Errors

Error responses are JSON with an error message that explains the refusal:

json{ "error": "missing user identity", "request_id": "de53c89b-4ee1-413e-805f-a285ad3e7376" }

Include request_id when you contact support.

HTTPWhen
400A required field is missing, or the requested combination of protocol, network, API, mode, and region is not served
401Missing or invalid API key
403Your plan does not allow it: the token limit is reached, or the network or region requires a paid plan
404No such token, node, subscription, or protocol among yours; also another account's resource
429Too many requests. Wait and retry
502A GetBlock service behind the API did not answer or returned an error. Retry later