List a gist's forks
GET
/gists/{uuid}/forksLists the gists that fork the targeted gist, filtered to what the caller may see: public forks plus the caller's own private/unlisted forks. Anonymous callers see public forks only.
The targeted gist follows the usual visibility rules: a private gist
resolves only for its owner with a gist:read-capable token, otherwise
404.
Results are a JSON array; pagination is conveyed via the Link and
X-* response headers (see the response headers below).
Request
Headers
| Name | Type | Scopes |
|---|---|---|
Authorizationoptional | string |
Path parameters
| Name | Type | Description |
|---|---|---|
uuidrequired | string | The gist's UUID. |
Query parameters
| Name | Type | Description |
|---|---|---|
page | integer | Page number, 1-based. (default: 1, min: 1) |
per_page | integer | Items per page. (default: 30, min: 1, max: 100) |
Responses
| Status | Body | Description |
|---|---|---|
200 | GistSimple[] | A list of forks. |
Headers:LinkX-PageX-Per-PageX-TotalX-Total-Pages | ||
404 | Error | The requested resource does not exist (or is not visible to the caller). |