---
title: "List Github Files"
method: POST
path: "/v1/datasets/import-from-github/list-files"
tags: ["datasets"]
---

# List Github Files

`POST /v1/datasets/import-from-github/list-files`

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/datasets/import-from-github/list-files`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/datasets/import-from-github/list-files/post.ts> (a function with typed inputs; its response is checked against the schema)

List importable data files in a GitHub repository.

Args:
    request: Contains ``repo`` (owner/repo or URL), optional ``branch``,
        optional ``github_token``.
    http_request: Raw request, read only to identify sandbox run keys.
    auth: Authenticated user context.

Returns:
    List of data files and the resolved default branch.

Raises:
    HTTPException: 400 on invalid repo, 403 on run-key token, 502 on
        GitHub API errors.

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/datasets/import-from-github/list-files/post.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) - [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/0e5e86e2bae5?raw)
