---
title: "Get My Repos"
method: GET
path: "/v1/github/repos/mine"
tags: ["v1-github"]
---

# Get My Repos

`GET /v1/github/repos/mine`

## 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/github/repos/mine`
- Auth: none declared

Get the current user's GitHub repositories.

Requires GitHub connection. Returns both public and private repos
if the 'repo' scope was granted.

Query params:
    per_page: Number of results (default 30, max 100)

## Query parameters

- `per_page` integer

## Response `200`

Successful Response

- GitHubUserReposResponse: Response for GET /v1/github/repos/mine.
  - `repos` object[], required
  - `count` integer, required
  - `github_username` 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)
