---
title: "Execute a GraphQL query"
method: POST
path: "/graphql"
tags: ["GraphQL"]
---

# Execute a GraphQL query

`POST /graphql`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/graphql`
- Auth: HTTP bearer

## Request body

- object
  - `query` string, required: The GraphQL query or mutation string
  - `variables` object: The variables for the GraphQL operation
  - `operationName` string: The name of the operation to execute

## Response `200`

The result of the GraphQL operation

- object
  - `data` object: The data returned by the GraphQL operation
  - `errors` object[]: Any errors returned by the GraphQL operation
    - `message` string

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
