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:
- GitHub App user access tokens
- GitHub App installation access tokens
- Fine-grained personal access tokens
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 code | Description |
|---|---|
200 | OK |
304 | Not modified |