---
title: "Graphql Endpoint"
method: POST
path: "/api/v1/graphql"
tags: ["graphql"]
---

# Graphql Endpoint

`POST /api/v1/graphql`

Execute a GraphQL query.

Accepts a standard GraphQL request body and resolves the query
against the in-memory task store.

Args:
    req: GraphQL request body with query, optional variables and operationName.
    request: FastAPI request (provides access to app state).

Returns:
    GraphQL response with ``data`` or ``errors``.

## Request body

- GraphQLRequest — GraphQL request body.
  - `query` string, required
  - `variables` object, nullable
  - `operationName` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/revisions/86f514b4e920/schema)
