Skip to main content

GraphQL Endpoint

All GraphQL queries are sent to a single endpoint:
Both POST and GET methods are supported.
Use POST for production workloads. GET requests encode the query in the URL, which has length limits and makes complex queries unwieldy.

Authentication

Authenticate by passing your API Key in the X-API-KEY header. This is the same API Key used for the REST Data API — no separate credentials needed.
Get your API Key from ChainStream DashboardApplicationsCreate New App. The key starts with cs_live_....

Required Headers


Request Format

A GraphQL request body is a JSON object with two fields:

POST Example

GET Example


Supported Networks

Wrap Cube queries in the appropriate Chain Group to select the network:

Response Format

All responses are JSON with the following structure:
The extensions.credits field is included when credits are consumed. See Billing & Credits for details on how credits are calculated.

Error Response

When a query is malformed or fails, the response includes an errors array:
Use the GraphQL IDE to validate queries interactively before integrating them into your application. The IDE provides auto-complete and inline error highlighting.

Next Steps

Run Your First Query

Follow the step-by-step tutorial to run a real query from the IDE or cURL.

Explore the Schema

Dive into the 25 Cubes, field types, filtering operators, and aggregation functions.