Forward a GraphQL query to the Midnight indexer
Indexer
Forward a GraphQL query to the Midnight indexer
Body is a standard GraphQL request envelope ({query, variables?, operationName?}). Response is the indexer's verbatim JSON response.
POST
Forward a GraphQL query to the Midnight indexer
Authorizations
API key (programmatic access — recommended)
Send your API key in the X-Api-Key header. Keys start with nxs_ and are
created in the dashboard (or via POST /api/keys with a session JWT).
Each key is scoped to one chain and one network (for example
cardano-mainnet), fixed at creation time. It cannot query a different network
on the same chain, and it cannot query a different chain at all. A mismatched
network parameter returns 400 Network Mismatch. Create one key per chain
and network under the same account.
This is the credential most integrations should use.
Path Parameters
Body
application/json
The body is of type string<byte>.
Response
200 - application/json
OK
The response is of type string<byte>.