List a gist's commits
GET
/gists/{uuid}/commitsLists the commits of a gist's repository, most recent first. Each commit's author is resolved to an Opengist account when one matches the commit email.
Public and unlisted gists are readable by anyone; 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. Unlike the other list endpoints, commits omit
X-Total / X-Total-Pages (computing the total would require an extra
git call).
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 | GistCommit[] | A list of commits. |
Headers:LinkX-PageX-Per-Page | ||
404 | Error | The requested resource does not exist (or is not visible to the caller). |