---
title: "Start GitHub source OAuth flow"
method: GET
path: "/sources/oauth/github/start"
tags: ["Sources"]
---

# Start GitHub source OAuth flow

`GET /sources/oauth/github/start`

## Request

- Base URL: `https://api.untools.co/api`
- URL: `https://api.untools.co/api/sources/oauth/github/start`
- Auth: HTTP bearer

Generates a pending OAuth session and returns the GitHub authorization URL for the frontend to redirect to. The callback at /sources/oauth/github/callback will store the access token, then the frontend creates the permanent connection via POST /sources with { oauthPendingId }.

## Response `200`

OK

- object
  - `pendingId` string, uuid
  - `authUrl` string, uri

## Other responses

- `500`: OAuth not configured

---

[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)
