---
title: "GitHub GraphQL Proxy"
method: POST
path: "/github/graphql"
---

# GitHub GraphQL Proxy

`POST /github/graphql`

Forward GraphQL queries to GitHub API using internal token management. Credits are based on GitHub rate limit cost (variable per query). Requires GITHUB_GRAPHQL service.

## Request body

- GraphQLRequest
  - `query` string, required — The GraphQL query string
  - `variables` object — Optional variables for the GraphQL query
  - `operationName` string — Optional operation name if query contains multiple operations

## Response `200`

GraphQL response from GitHub (may include data and/or errors)

- GraphQLResponse
  - `data` unknown
  - `errors` object[] — GraphQL errors if any
    - `message` string, required
    - `locations` object[]
      - `line` number, required
      - `column` number, required
    - `path` union[]
      - union
        - string
        - number

## Other responses

- `400` — Invalid request - malformed query or mutations not allowed
- `401` — Unauthorized - API key missing
- `403` — Forbidden - Invalid API key or GITHUB_GRAPHQL service access denied
- `429` — Too Many Requests - Hourly credit limit exceeded
- `500` — Internal server error - unexpected error processing GraphQL request
- `503` — Service unavailable - GitHub API rate limited or temporarily unavailable

---

[API](https://skmtc.net/bountylaboratories/apis/bounty-lab-public-api.md) · [All operations](https://skmtc.net/bountylaboratories/apis/bounty-lab-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bountylaboratories/bounty-lab-public-api/versions/910f8a49ca9e/schema)
