List repos

List repositories for a team or user owner.

Endpoints

GET /api/v1/teams/{team_slug}/repos
GET /api/v1/users/{username}/repos
Authenticated

Request

Query parameters: page, per_page.

Usage

curl --header "Authorization: Bearer $GHIT_API_TOKEN" "$GHIT_API_URL/v1/teams/platform/repos?page=1"
curl --header "Authorization: Bearer $GHIT_API_TOKEN" "$GHIT_API_URL/v1/users/alice/repos?page=1"

Success

200 OK with a paginated repo list.

{
  "results": [
    {
      "uuid": "...",
      "name": "Website",
      "slug": "website",
      "visibility": "private",
      "default_branch": "main",
      "is_active": true,
      "created_at": "2026-03-09T12:00:00Z"
    }
  ],
  "next": null,
  "previous": null
}

Errors

  • 403 Forbidden when caller lacks access to the owner scope.
  • 404 Not Found when the owner user/team does not exist.

Common auth errors are documented on the API overview page.