Skip to main content
The REST API is now versioned. For more information, see "About API versioning."

REST API endpoints for codes of conduct

Use the REST API to get information about codes of conduct.

Get all codes of conduct

Returns array of all GitHub's codes of conduct.

Fine-grained access tokens for "Get all codes of conduct"

This endpoint works with the following fine-grained token types:

The fine-grained token does not require any permissions.

This endpoint can be used without authentication if only public resources are requested.

HTTP response status codes for "Get all codes of conduct"

Status codeDescription
200

OK

304

Not modified

Code samples for "Get all codes of conduct"

Request example

get/codes_of_conduct