Start indexing a GitHub repository. The repository must be public or the request must include a GitHub token with appropriate access rights. Supports indexing specific folders within a repository by providing a path like “owner/repo/tree/branch/folder”.
API key must be provided in the Authorization header
Optional GitHub token for private repository access
Repository identifier in owner/repo format or full GitHub URL (supports folder paths like owner/repo/tree/branch/folder)
"microsoft/vscode"
Branch to index (defaults to repository's default branch)
"main"
Git ref to index (branch, tag, or commit SHA). Takes precedence over branch.
"v1.2.3"