---
title: "GET /api/v1/github/repositories/folders"
method: GET
path: "/api/v1/github/repositories/folders"
---

# GET /api/v1/github/repositories/folders

`GET /api/v1/github/repositories/folders`

## Request

- Base URL: `https://falconer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://falconer.com/api/v1/github/repositories/folders`
- Auth: none declared

## Query parameters

- `repository` string, required: owner/repo
- `path` string: Folder to list; the repository root when omitted.
- `branch` string

## Headers

- `x-organization-id` string: Required when using OAuth bearer tokens.

## Response `200`

One level of the repository.

- GithubFolderList
  - `path` string, required
  - `folders` string[], required
  - `mdFiles` string[], required
  - `configFiles` string[], required

## Other responses

- `400`: Bad request, or a folder that is not the sync root
- `403`: Two-way sync is not enabled or permission is missing
- `404`: Folder or repository not found

---

[API](https://skmtc.dev/falconer/apis/falconer-public-api.md) · [All operations](https://skmtc.dev/falconer/apis/falconer-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/falconer/apis/falconer-public-api/revisions/c00420511526?raw)
