---
title: "Github App Callback"
method: GET
path: "/auth/github-app/callback"
tags: ["auth"]
---

# Github App Callback

`GET /auth/github-app/callback`

## Request

- Base URL: `https://api.claimkit.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.claimkit.co/auth/github-app/callback`
- Auth: none declared

Handle the GitHub user-authorization callback (legacy, non-Nango path).

Exchanges the code for a user-to-server token and checks for installations.
GitHub also appends ``installation_id``/``setup_action`` when the
authorization was triggered by an App install; both are ignored here — the
install itself is bookkept by the webhook, and the install prompt is driven
by ``has_installations`` below.

## Query parameters

- `code` string
- `state` string
- `error` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/claimkit/apis/claimkit-api.md) - [All operations](https://skmtc.dev/claimkit/apis/claimkit-api/llms.txt) - [OpenAPI document](https://skmtc.dev/claimkit/apis/claimkit-api/revisions/94dc85ba5326?raw)
