Get access token - Platform API

GET /tokens/{id} returns one of your access tokens. The response has the same shape as one element of GET /tokens.

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

Parameters

ParameterTypeRequiredDescription
idstringYesPath parameter. The token's id.

Request Example

bashcurl https://public-api.getblock.io/api/v1/tokens/9b2796d7b4c448de83b01644bb93f625 \
  -H "Authorization: Bearer $GETBLOCK_API_KEY"
javascriptconst tokenId = '9b2796d7b4c448de83b01644bb93f625';

const response = await fetch(`https://public-api.getblock.io/api/v1/tokens/${tokenId}`, {
  headers: { Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}` }
});
const body = await response.json();

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

token_id = "9b2796d7b4c448de83b01644bb93f625"

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

print(body["status"])

Response Example

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"
}

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

  • Check whether a token is active or locked
  • Look up the endpoint URL and configuration of a token found in a log

Error Handling

HTTPCause
401Missing or invalid API key.
404No such token among yours. A deleted token, a rotated-away token, and another account's token answer the same way.
502A GetBlock service behind the API did not answer. Retry later.

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