GET
/codes_of_conduct/{key}Get a code of conduct
Retrieves a specific code of conduct by its key. Supply key to select the code you want to inspect, including its name, URLs, and body when available.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
keystringrequired
The key identifying the code of conduct to retrieve.
200Returns a code of conduct object with the required `key`, `name`, `url`, and `html_url` fields and may include `body`.
keystringrequired
namestringrequired
urlstringrequired
bodystringoptional
html_urlstringrequired
304Returned when the requested code of conduct has not changed.
404Returned when no code of conduct exists for the supplied `key`.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 404 is returned when no code of conduct exists for the supplied key. key must identify the code of conduct you want to retrieve.