Get a gist at a revision
GET
/gists/{uuid}/{sha}Returns a gist as it stood at the given commit SHA, with the same shape
as GET /gists/{uuid}.
Visibility rules match the gist endpoint: public and unlisted gists are
readable by anyone; a private gist resolves only for its owner with a
gist:read-capable token, otherwise 404. An unknown revision also
returns 404 so the gist's commit history is not disclosed.
Request
Headers
| Name | Type | Scopes |
|---|---|---|
Authorizationoptional | string |
Path parameters
| Name | Type | Description |
|---|---|---|
uuidrequired | string | The gist's UUID. |
sharequired | string | A full or partial commit SHA (hex, 4–40 characters). (pattern: ^[0-9a-fA-F]{4,40}$) |
Responses
| Status | Body | Description |
|---|---|---|
200 | Gist | The gist at the requested revision. |
400 | Error | The request was malformed. |
404 | Error | The requested resource does not exist (or is not visible to the caller). |