---
title: "Validate Github Repo Endpoint"
method: POST
path: "/v1/connectors/validate-github-repo"
tags: ["v1-connectors"]
---

# Validate Github Repo Endpoint

`POST /v1/connectors/validate-github-repo`

## Request

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

Validate if a GitHub repository exists and is accessible.

This endpoint proxies the GitHub API check to avoid CORS issues from the frontend.
Validates repository format and checks accessibility via GitHub API.

Args:
    repo: Repository in format "username/repo"
    github_token: Optional GitHub personal access token for private repos

Returns:
    {
        "valid": bool,
        "status": "valid" | "private" | "invalid" | "error",
        "message": str
    }

## Request body

- ValidateGitHubRepoRequest
  - `repo` string, required
  - `github_token` string, nullable

## Response `200`

Successful Response

- GitHubRepoValidationResponse
  - `valid` boolean, required
  - `status` 'valid' | 'private' | 'invalid' | 'error', required
  - `message` string, required

## Other responses

- `422`: Validation Error

---

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