REST API endpoints for gist comments
Use the REST API to view and modify comments on a gist.
About gist comments
You can use the REST API to view and modify comments on a gist. For more information about gists, see Editing and sharing content with gists.
List gist comments
Lists the comments on a gist.
This endpoint supports the following custom media types. For more information, see "Media types."
application/vnd.github.raw+json: Returns the raw markdown. This is the default if you do not pass any specific media type.
Fine-grained access tokens for "List gist comments"
This endpoint works with the following fine-grained token types:
The fine-grained token does not require any permissions.
Parameters for "List gist comments"
| Name, Type, Description |
|---|
accept string Setting to |
| Name, Type, Description |
|---|
gist_id string RequiredThe unique identifier of the gist. |
| Name, Type, Description |
|---|
per_page integer The number of results per page (max 100). For more information, see "Using pagination in the REST API." Default: |
page integer The page number of the results to fetch. For more information, see "Using pagination in the REST API." Default: |
HTTP response status codes for "List gist comments"
| Status code | Description |
|---|---|
200 | OK |
304 | Not modified |
403 | Forbidden |