---
title: "List repos for a pending GitHub OAuth session"
method: GET
path: "/sources/oauth/github/pending/{pendingId}/repos"
tags: ["Sources"]
---

# List repos for a pending GitHub OAuth session

`GET /sources/oauth/github/pending/{pendingId}/repos`

## Request

- Base URL: `https://api.untools.co/api`
- URL: `https://api.untools.co/api/sources/oauth/github/pending/{pendingId}/repos`
- Auth: HTTP bearer

After the GitHub callback has completed, call this to fetch the authenticated user's repositories so they can pick one for the connection.

## Path parameters

- `pendingId` string, uuid, required

## Response `200`

OK

- object
  - `login` string
  - `repos` object[]
    - `id` integer
    - `name` string
    - `fullName` string
    - `private` boolean
    - `owner` string
    - `defaultBranch` string
    - `description` string, nullable

## Other responses

- `400`: OAuth not completed
- `404`: Pending session not found
- `502`: GitHub error

---

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