Repositories
List forks
A repository's forks that you can see, newest first, each with parent naming the repository. limit is at most 100, 30 when left out.
GET
/repos/{owner}/{name}/forksForks of its forks are listed on them.
Only the forks you can read, newest first: a private repository’s forks are listed for people who can read them. Forks of a fork are listed on that fork. See Forks.
- Authentication: Optional. Public data can be read without a token; send one to see what is private.
- MCP tool:
repositorywithactionforks, and the same inputs - Scope: An access token needs
repo:read.
Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
owner |
string | Yes | The workspace that owns the repository. |
name |
string | Yes | The repository’s name. |
Query parameters
Section titled “Query parameters”| Name | Type | Required | Description |
|---|---|---|---|
limit |
integer | No | At most this many; 30 when left out. |
Example request
Section titled “Example request”curl "https://api.g1t.sh/repos/flagon-io/hello/forks?limit=30" \ -H "Authorization: Bearer $G1T_TOKEN"Example response
Section titled “Example response”A successful request answers 200 with:
[ { "id": "rep_01m4b7k2v9c3tq8x5n6d0fr1hz", "namespace": "ada", "name": "hello", "is_private": false, "owner_id": "usr_01kq3r8w2m6vd5e9t0hy7jx4cb", "default_branch": "main", "fork_of": null, "parent_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr", "parent": { "namespace": "flagon-io", "name": "hello" }, "allow_forking": false, "protected": false, "created_at": "2026-10-14T09:30:12.418Z", "website": null, "archived_at": null }]Errors
Section titled “Errors”A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See errors.
| Status | Code | When |
|---|---|---|
| 401 | unauthenticated |
A token is required, or the one sent is not valid. |
| 403 | forbidden |
The token is valid but not allowed to do this, such as a member-only change, or a token without the scope it needs. |
| 404 | not_found |
It does not exist, or you cannot see it. |
| 422 | invalid |
The input is not valid. message says which field and why. |