Skip to content

Get a gist

GET/gists/{uuid}

Returns a single gist with its file contents, commits and forks.

Public and unlisted gists are readable by anyone, including anonymous callers. A private gist resolves only for its owner using a token with the gist:read scope; every other caller receives 404 so the gist's existence is not revealed.

Request

Headers

NameTypeScopes
Authorizationoptionalstring

Path parameters

NameTypeDescription
uuidrequiredstringThe gist's UUID.

Responses

StatusBodyDescription
200GistThe gist.
404ErrorThe requested resource does not exist (or is not visible to the caller).