Skip to main content

Overview

The API v2 accepts an API key for all methods, including the JSON-RPC endpoint. Requests without an API key are limited to one request per second. To make more than one request per second, please include an API key. The key can be sent either in an HTTP header or as a query parameter. Only one of these is needed per request. To obtain an API key, see the TON Center API key guide.

Public hosts

REST endpoint authentication

Header authentication

Send the API key in the X-API-Key header:

Query parameter authentication

Pass the key as a query parameter named api_key:
Both forms are equivalent.

JSON-RPC endpoint authentication

Endpoint: POST /api/v2/jsonRPC The same API key rules apply. Example using header authentication:
Or using the query parameter:

API key error codes