---
title: "License"
url: "https://kiwi.arashsheyda.me/apis/git-hub-v3-rest-api-1/versions/4cb06d26-20a0-409c-8492-8406889b7eb4/schemas/license"
---

> Full API specification: https://kiwi.arashsheyda.me/apis/git-hub-v3-rest-api-1/versions/4cb06d26-20a0-409c-8492-8406889b7eb4.md

# License

License

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: GitHub v3 REST API
  version: 1.1.4
servers:
  - url: "{protocol}://{hostname}/api/v3"
    variables:
      hostname:
        description: Self-hosted Enterprise Server or Enterprise Cloud hostname
        default: HOSTNAME
      protocol:
        description: Self-hosted Enterprise Server or Enterprise Cloud protocol
        default: http
components:
  schemas:
    license:
      title: License
      description: License
      type: object
      properties:
        key:
          type: string
          example: mit
        name:
          type: string
          example: MIT License
        spdx_id:
          type: string
          example: MIT
          nullable: true
        url:
          type: string
          format: uri
          example: https://api.github.com/licenses/mit
          nullable: true
        node_id:
          type: string
          example: MDc6TGljZW5zZW1pdA==
        html_url:
          type: string
          format: uri
          example: http://choosealicense.com/licenses/mit/
        description:
          type: string
          example: A permissive license that is short and to the point. It lets people do
            anything with your code with proper attribution and without
            warranty.
        implementation:
          type: string
          example: Create a text file (typically named LICENSE or LICENSE.txt) in the root
            of your source code and copy the text of the license into the file.
            Replace [year] with the current year and [fullname] with the name
            (or names) of the copyright holders.
        permissions:
          type: array
          example:
            - commercial-use
            - modifications
            - distribution
            - sublicense
            - private-use
          items:
            type: string
        conditions:
          type: array
          example:
            - include-copyright
          items:
            type: string
        limitations:
          type: array
          example:
            - no-liability
          items:
            type: string
        body:
          type: string
          example: >
            

            The MIT License (MIT)


            Copyright (c) [year] [fullname]


            Permission is hereby granted, free of charge, to any person
            obtaining a copy

            of this software and associated documentation files (the
            "Software"), to deal

            in the Software without restriction, including without limitation
            the rights

            to use, copy, modify, merge, publish, distribute, sublicense, and/or
            sell

            copies of the Software, and to permit persons to whom the Software
            is

            furnished to do so, subject to the following conditions:


            The above copyright notice and this permission notice shall be
            included in all

            copies or substantial portions of the Software.


            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
            EXPRESS OR

            IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
            MERCHANTABILITY,

            FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
            SHALL THE

            AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
            OTHER

            LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
            ARISING FROM,

            OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
            DEALINGS IN THE

            SOFTWARE.
        featured:
          type: boolean
          example: true
      required:
        - key
        - name
        - url
        - spdx_id
        - node_id
        - html_url
        - description
        - implementation
        - permissions
        - conditions
        - limitations
        - body
        - featured
```
