Create Dedicated Node token - Platform API

POST /dedicated/{id}/tokens creates an access token bound to one of your Dedicated Nodes and returns it with its endpoint URL. The node fixes the protocol, network, and region, so the request chooses only the API type and an optional add-on.

POST https://public-api.getblock.io/api/v1/dedicated/{id}/tokens

Send api and addon values exactly as the node lists them in apis and addons from GET /dedicated/{id}.

Parameters

ParameterTypeRequiredDescription
idstringYesPath parameter. The node's id.
apistringYesBody parameter. One of the node's apis, such as jsonrpc.
addonstringNoBody parameter. One of the node's addons.

Request Example

bashcurl -X POST https://public-api.getblock.io/api/v1/dedicated/abc123/tokens \
  -H "Authorization: Bearer $GETBLOCK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"jsonrpc"}'
javascriptconst nodeId = 'abc123';

const response = await fetch(`https://public-api.getblock.io/api/v1/dedicated/${nodeId}/tokens`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ api: 'jsonrpc' })
});
const body = await response.json();

console.log(body.endpoint);
pythonimport os
import requests

node_id = "abc123"

body = requests.post(
    f"https://public-api.getblock.io/api/v1/dedicated/{node_id}/tokens",
    headers={"Authorization": f"Bearer {os.environ['GETBLOCK_API_KEY']}"},
    json={"api": "jsonrpc"},
).json()

print(body["endpoint"])

Response Example

201 Created:

json{
  "id": "7d0e3b5a91c24f8e9b6a2d4c08f1e357",
  "name": "eth-7d0e3",
  "status": "active",
  "namespace": "dedicated",
  "protocol": "eth",
  "network": "mainnet",
  "api": "jsonrpc",
  "mode": "archive",
  "region": "eu-central-1",
  "addon": "",
  "dedicated_node_id": "abc123",
  "limitless_node_id": "",
  "endpoint": "https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/",
  "created_at": "2026-10-15T09:41:07Z",
  "updated_at": "2026-10-15T09:41:07Z"
}

Response Parameters

FieldTypeDescription
idstringThe access token, the credential inside endpoint. Treat it as a secret.
namestringGenerated name, such as eth-9b279.
statusstringactive, or locked when suspended by plan or billing state.
namespacestringAccess type the token was issued for, such as shared.
protocolstringProtocol id.
networkstringNetwork id.
apistringAPI type served on the endpoint.
modestringSync mode. Empty when it does not apply.
regionstringRegion serving the endpoint.
addonstringAdd-on bound to the token. Empty when none.
dedicated_node_idstringSet only for tokens bound to a Dedicated Node.
limitless_node_idstringSet only for tokens bound to a Limitless Node.
endpointstringReady-to-use RPC URL.
created_at, updated_atstringRFC 3339 UTC times.

Use Cases

  • Issue separate endpoints on one node for each service, so each can be rotated alone
  • Add a WebSocket endpoint to a node that so far only has JSON-RPC

Error Handling

HTTPCause
400api is missing, or the node does not serve it.
401Missing or invalid API key.
403Your plan does not allow it.
404No such node among your Dedicated Nodes.
429Too many requests. Wait and retry.
502A GetBlock service behind the API did not answer. Retry later.

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