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

# Validate Github Auth Endpoint

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

## 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-auth`
- Auth: none declared

Validate GitHub authentication credentials.

For PAT auth, this verifies the token is valid and retrieves the authenticated user.
For OAuth/GitHub App auth, this validates the app credentials.

Args:
    auth_type: "pat" or "oauth"
    access_token: GitHub Personal Access Token (for PAT auth)
    app_id, installation_id, private_key: GitHub App credentials (for OAuth)

Returns:
    {
        "valid": bool,
        "status": "valid" | "invalid" | "error",
        "message": str,
        "username": str | None  # The authenticated user/app name
    }

## Request body

- ValidateGitHubAuthRequest
  - `auth_type` 'pat' | 'oauth'
  - `access_token` string, nullable
  - `app_id` string, nullable
  - `installation_id` string, nullable
  - `private_key` string, nullable

## Response `200`

Successful Response

- GitHubAuthValidationResponse
  - `valid` boolean, required
  - `status` 'valid' | 'invalid' | 'error', required
  - `message` string, required
  - `username` string, nullable, 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)
