Skip to content

Check if a gist is liked

GET/gists/{uuid}/like

Returns 204 No Content when the authenticated caller has liked the gist, and 404 when they have not - or when the gist isn't visible to them, so the two cases are indistinguishable by design.

This like endpoint also accepts star in the path as an alias to keep GitHub compatibility - e.g. /gists/{uuid}/star. The behavior is the same.

Request

Headers

NameTypeScopes
Authorizationrequiredstring

Path parameters

NameTypeDescription
uuidrequiredstringThe gist's UUID.

Responses

StatusBodyDescription
204The caller has liked the gist.
401ErrorMissing or invalid credentials.
404ErrorThe requested resource does not exist (or is not visible to the caller).