Sample - GitHub REST API
GET/codes_of_conduct

List all codes of conduct

Lists all of GitHub's available codes of conduct. Use the returned collection to inspect each code's key, name, url, body, and html_url values.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 status codes
200Returns an array of code of conduct objects; each object includes the required `key`, `name`, `url`, and `html_url` fields and may include `body`.
keystringrequired
namestringrequired
urlstringrequired
bodystringoptional
html_urlstringrequired
304Returned when the requested codes of conduct have not changed.