Skip to content

Gist

Full gist representation including file contents, commits and forks. Returned by the create, get and update endpoints.

FieldTypeDescription
idstring
slug_urlstring
ownerSimpleUser
titlestring
html_urlstring <uri>
descriptionstring
publicbooleanTrue only when visibility is public.
visibilitystring: public | unlisted | private
like_countinteger
fork_countinteger
clone_urlstring <uri>
ssh_urlstring
topicsstring[]
archivedbooleanTrue when the gist is archived (read-only).
created_atstring <date-time>
updated_atstring <date-time>
expires_atstring <date-time>When the gist will be automatically deleted, or null when the gist never expires.
fork_ofGistSimple | nullThe parent gist when this is a fork, otherwise null.
forksGistSimple[]
filesmap<string, GistFile>
commitsGistCommit[]
truncatedboolean