---
title: "Run any GraphQL query or mutation"
method: POST
path: "/graphql"
tags: ["GraphQL"]
---

# Run any GraphQL query or mutation

`POST /graphql`

## Request body

- GraphQLRequest
  - `query` string, required — Full GraphQL document—query, mutation, or subscription
  - `variables` object — Object containing values for the `$variables` declared in **query**
  - `operationName` string — Operation name to run when **query** contains multiple operations

## Response `200`

Standard GraphQL success envelope

- GraphQLResponse
  - `data` object — Present only when the operation has no top-level errors
  - `errors` GraphQLError[] — Present when GraphQL returns errors; each entry follows the GraphQL specification
    - `message` string
    - `locations` object[]
      - `line` integer
      - `column` integer
    - `path` string[]

## Other responses

- `4XX` — The request body is malformed or failed validation
- `5XX` — Unexpected server-side failure

---

[API](https://skmtc.dev/gluexprotocol/apis/gluex-tokens-graphql-api.md) · [All operations](https://skmtc.dev/gluexprotocol/apis/gluex-tokens-graphql-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gluexprotocol/gluex-tokens-graphql-api/revisions/4620e21aa2e8/schema)
