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

# Graphql Endpoint

`POST /api/v1/graphql`

## Request

- Base URL: `http://127.0.0.1:8052`
- URL: `http://127.0.0.1:8052/api/v1/graphql`
- Auth: none declared

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.dev/bernstein/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/bernstein/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc.dev/bernstein/apis/bernstein-task-server/revisions/2a20a34ad2eb?raw)
