---
title: "Get User Repositories"
method: GET
path: "/api/user/repositories"
---

# Get User Repositories

`GET /api/user/repositories`

## Query parameters

- `sort` string
- `selected_provider` 'github' | 'gitlab' | 'bitbucket' | 'enterprise_sso'
- `page` integer, nullable
- `per_page` integer, nullable
- `installation_id` string, nullable

## Response `200`

Successful Response

- Repository[]
  - `id` string, required
  - `full_name` string, required
  - `git_provider` 'github' | 'gitlab' | 'bitbucket' | 'enterprise_sso', required
  - `is_public` boolean, required
  - `stargazers_count` integer, nullable
  - `link_header` string, nullable
  - `pushed_at` string, nullable
  - `owner_type` 'user' | 'organization'
  - `main_branch` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/all-hands/apis/openhands.md) · [All operations](https://skmtc.dev/all-hands/apis/openhands/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/all-hands/openhands/revisions/4daa2bb4dbf1/schema)
