> ## Documentation Index
> Fetch the complete documentation index at: https://docs.patch.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# A license's name, URL, duties and full text



## OpenAPI

````yaml /api-reference/openapi.json get /assets/licenses/{spdx}
openapi: 3.1.0
info:
  title: Patch API
  version: 1.0.0
  description: >-
    The public API behind patch.gg, the desktop app and pch. Changes within v1
    are additive only. Errors are { error: { code, message, details } }; branch
    on code.
servers:
  - url: https://patch.gg/api/v1
security: []
paths:
  /assets/licenses/{spdx}:
    get:
      tags:
        - Assets
      summary: A license's name, URL, duties and full text
      parameters:
        - schema:
            type: string
            example: CC-BY-4.0
          required: true
          name: spdx
          in: path
      responses:
        '200':
          description: The license
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetLicenseText'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Not signed in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AssetLicenseText:
      allOf:
        - $ref: '#/components/schemas/AssetLicense'
        - type: object
          properties:
            text:
              type:
                - string
                - 'null'
          required:
            - text
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: version_exists
            message:
              type: string
            details: {}
          required:
            - code
            - message
      required:
        - error
    AssetLicense:
      type: object
      properties:
        spdx:
          type: string
        name:
          type: string
        url:
          type: string
        duties:
          type: array
          items:
            type: string
            enum:
              - attribute
              - link-license
              - indicate-changes
              - no-endorsement
              - no-added-restrictions
        text_url:
          type: string
      required:
        - spdx
        - name
        - url
        - duties
        - text_url

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.