---
title: "GitHub OAuth callback (called by GitHub — do not call directly)"
method: GET
path: "/sources/oauth/github/callback"
tags: ["Sources"]
---

# GitHub OAuth callback (called by GitHub — do not call directly)

`GET /sources/oauth/github/callback`

## Request

- Base URL: `https://api.untools.co/api`
- URL: `https://api.untools.co/api/sources/oauth/github/callback`
- Auth: none declared

Public endpoint. GitHub redirects here with ?code=...&state=... The server exchanges the code, stores the access token in the pending session, and redirects to the frontend /settings page.

## Other responses

- `302`: Redirect to /settings

---

[API](https://skmtc.dev/untools/apis/ai-note-taker-api.md) - [All operations](https://skmtc.dev/untools/apis/ai-note-taker-api/llms.txt) - [OpenAPI document](https://skmtc.dev/untools/apis/ai-note-taker-api/revisions/e2fd4308c6c3?raw)
