By default, all requests to a relay receive the v1 version of the Public API. We encourage you to request this version via the API-Version header explicitly.

You can also set the API version by adding the v2 prefix:

GET /api/v2/blocks

API v1 has been officially deprecated. Documentation on this API may be found in the Archive. If you are running v1 nodes or services dependent on the v1 API; attempt to migrate as soon as possible. You can read more on migration here.