{
  "info": {
    "_postman_id": "541517fd-bcd2-40df-a178-8ae89227d616",
    "name": "GitHub Code of Conduct API",
    "description": "Use the REST API to get information about codes of conduct.\n\nContact Support:\n Name: Support",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-06-05T13:16:29.000Z",
    "updatedAt": "2026-06-05T13:16:29.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-541517fd-bcd2-40df-a178-8ae89227d616"
  },
  "item": [
    {
      "name": "codes_of_conduct",
      "item": [
        {
          "name": "{key}",
          "item": [
            {
              "name": "GitHub Get Code of Conduct",
              "id": "1c2443c9-b6bf-40de-9bf2-e167c9fa5cdb",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                },
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/codes_of_conduct/:key",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "codes_of_conduct",
                    ":key"
                  ],
                  "variable": [
                    {
                      "id": "9ce79119-4b4e-402d-bdc0-cb922f2fdc45",
                      "key": "key",
                      "value": "<string>",
                      "description": "(Required) "
                    }
                  ]
                },
                "description": "The GitHub Code of Conduct API endpoint `/codes_of_conduct/{key}` using the GET method retrieves detailed information about a specific code of conduct available on GitHub. By providing a unique key identifier in the path parameter, this operation returns comprehensive details about the selected code of conduct, including its name, full text content, URL, and other relevant metadata. This endpoint is useful for developers who want to programmatically access and display code of conduct information for their repositories, helping them understand the specific guidelines and behavioral expectations associated with a particular conduct policy that GitHub supports and makes available to the community."
              },
              "response": [
                {
                  "id": "f859c0c5-a240-4e00-8891-1be7a8fa145e",
                  "name": "Response",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/codes_of_conduct/:key",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "codes_of_conduct",
                        ":key"
                      ],
                      "variable": [
                        {
                          "key": "key"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"url\": \"<uri>\",\n  \"html_url\": \"<uri>\",\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"body\": \"<string>\"\n}",
                  "createdAt": "2026-06-05T13:16:29.000Z",
                  "updatedAt": "2026-06-05T13:16:29.000Z",
                  "uid": "35240-f859c0c5-a240-4e00-8891-1be7a8fa145e"
                },
                {
                  "id": "d180b8ea-39a4-4ac4-8706-674973ca333f",
                  "name": "Not modified",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/codes_of_conduct/:key",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "codes_of_conduct",
                        ":key"
                      ],
                      "variable": [
                        {
                          "key": "key"
                        }
                      ]
                    }
                  },
                  "status": "Not Modified",
                  "code": 304,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-06-05T13:16:29.000Z",
                  "updatedAt": "2026-06-05T13:16:29.000Z",
                  "uid": "35240-d180b8ea-39a4-4ac4-8706-674973ca333f"
                },
                {
                  "id": "1941a174-07ac-462f-a5e6-cd15a1425be2",
                  "name": "Resource not found",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/codes_of_conduct/:key",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "codes_of_conduct",
                        ":key"
                      ],
                      "variable": [
                        {
                          "key": "key"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"message\": \"<string>\",\n  \"documentation_url\": \"<string>\",\n  \"url\": \"<string>\",\n  \"status\": \"<string>\"\n}",
                  "createdAt": "2026-06-05T13:16:29.000Z",
                  "updatedAt": "2026-06-05T13:16:29.000Z",
                  "uid": "35240-1941a174-07ac-462f-a5e6-cd15a1425be2"
                }
              ],
              "createdAt": "2026-06-05T13:16:29.000Z",
              "updatedAt": "2026-06-05T13:16:29.000Z",
              "uid": "35240-1c2443c9-b6bf-40de-9bf2-e167c9fa5cdb"
            }
          ],
          "id": "4c6cc632-347a-4557-9398-8f346673dce9",
          "createdAt": "2026-06-05T13:16:29.000Z",
          "updatedAt": "2026-06-05T13:16:29.000Z",
          "uid": "35240-4c6cc632-347a-4557-9398-8f346673dce9"
        },
        {
          "name": "GitHub Get All Codes of Conduct",
          "id": "0a88718f-b67c-49a3-a5c5-aa9b9e3c2360",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/codes_of_conduct",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "codes_of_conduct"
              ]
            },
            "description": "The GitHub Code of Conduct API endpoint `/codes_of_conduct` with the GET method retrieves all available codes of conduct that can be applied to repositories on GitHub. This operation returns a list of codes of conduct templates that organizations and repository owners can use to establish community guidelines and behavioral expectations for their projects. Each code of conduct in the response typically includes metadata such as a unique key identifier, name, and URL where the full text can be accessed, allowing developers to programmatically discover and reference GitHub's standardized codes of conduct for implementation in their repositories."
          },
          "response": [
            {
              "id": "d43930b8-669d-49b2-9a88-7ab2b74d209c",
              "name": "Response",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/codes_of_conduct",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "codes_of_conduct"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "[\n  {\n    \"url\": \"<uri>\",\n    \"html_url\": \"<uri>\",\n    \"key\": \"<string>\",\n    \"name\": \"<string>\",\n    \"body\": \"<string>\"\n  },\n  {\n    \"url\": \"<uri>\",\n    \"html_url\": \"<uri>\",\n    \"key\": \"<string>\",\n    \"name\": \"<string>\",\n    \"body\": \"<string>\"\n  }\n]",
              "createdAt": "2026-06-05T13:16:29.000Z",
              "updatedAt": "2026-06-05T13:16:29.000Z",
              "uid": "35240-d43930b8-669d-49b2-9a88-7ab2b74d209c"
            },
            {
              "id": "4a21d496-60cd-4a6d-9744-c5627ee3f8d6",
              "name": "Not modified",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/codes_of_conduct",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "codes_of_conduct"
                  ]
                }
              },
              "status": "Not Modified",
              "code": 304,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-06-05T13:16:29.000Z",
              "updatedAt": "2026-06-05T13:16:29.000Z",
              "uid": "35240-4a21d496-60cd-4a6d-9744-c5627ee3f8d6"
            }
          ],
          "createdAt": "2026-06-05T13:16:29.000Z",
          "updatedAt": "2026-06-05T13:16:29.000Z",
          "uid": "35240-0a88718f-b67c-49a3-a5c5-aa9b9e3c2360"
        }
      ],
      "id": "eb3d4972-c5dc-468c-8400-af5558209650",
      "createdAt": "2026-06-05T13:16:29.000Z",
      "updatedAt": "2026-06-05T13:16:29.000Z",
      "uid": "35240-eb3d4972-c5dc-468c-8400-af5558209650"
    }
  ],
  "variable": [
    {
      "key": "hostname",
      "value": "HOSTNAME"
    },
    {
      "key": "protocol",
      "value": "http"
    },
    {
      "key": "baseUrl",
      "value": "{{protocol}}://{{hostname}}/api/v3"
    }
  ]
}