---
title: "Get a code of conduct"
method: GET
path: "/codes_of_conduct/{key}"
tags: ["codes-of-conduct"]
---

# Get a code of conduct

`GET /codes_of_conduct/{key}`

Returns information about the specified GitHub code of conduct.

## Path parameters

- `key` string, required

## Response `200`

Response

- CodeOfConduct — Code Of Conduct
  - `key` string, required
  - `name` string, required
  - `url` string, uri, required
  - `body` string
  - `html_url` string, uri, nullable, required

## Other responses

- `304` — Not modified
- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
