provider gists POST /gists
@utdk/github /gists
Create a gist
Allows you to add a new gist with one or more files. > [!NOTE] > Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.

Try it

Authentication
Configure credentials for GitHub v3 REST API
gists.create
POST/gists
Allows you to add a new gist with one or more files. > [!NOTE] > Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.

Input

Description of the gist

required

Names and content for the files that make up the gist

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.gists.create()