---
title: "GitHub OAuth callback"
method: GET
path: "/api/v1/github/callback"
tags: ["github"]
---

# GitHub OAuth callback

`GET /api/v1/github/callback`

Handles the OAuth callback from GitHub after user authorization.

## Query parameters

- `code` string, nullable — OAuth authorization code
- `state` string, required — State token for CSRF validation
- `installation_id` integer, nullable — GitHub App installation ID
- `error` string, nullable — OAuth error code from GitHub
- `error_description` string, nullable — OAuth error description

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Bad Request
- `422` — Validation Error
- `500` — Internal Server Error
- `502` — Bad Gateway

## Changes

- **2026-01-29** `5f4f08ff6556` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kater-ai/apis/kater-api/changes/api/v1/github/callback/get.md)

---

[API](https://skmtc.dev/kater-ai/apis/kater-api.md) · [All operations](https://skmtc.dev/kater-ai/apis/kater-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kater-ai/kater-api/revisions/d2a2a2d0775e/schema)
