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

# Get compliance obligations and usage requirements for a specific license.

> Returns structured OSADL compliance data including use cases, obligations,
compatibility information, and patent hints for the specified license.



## OpenAPI

````yaml /api-reference/licenses-openapi.json get /v2/licenses/obligations
openapi: 3.0.0
info:
  title: SCANOSS License Service
  description: License service provides license intelligence for software components.
  version: '2.0'
  contact:
    name: scanoss-licenses
    url: https://github.com/scanoss/licenses
    email: support@scanoss.com
servers:
  - url: http://api.scanoss.com
  - url: https://api.scanoss.com
security: []
tags:
  - name: License
paths:
  /v2/licenses/obligations:
    get:
      tags:
        - License
      summary: >-
        Get compliance obligations and usage requirements for a specific
        license.
      description: >-
        Returns structured OSADL compliance data including use cases,
        obligations,

        compatibility information, and patent hints for the specified license.
      operationId: License_GetObligations
      parameters:
        - name: id
          description: >-
            SPDX identifier or licenseRef (e.g., "MIT",
            "licenseRef-GitLab-Enterprise")
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2ObligationsResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rpcStatus'
components:
  schemas:
    v2ObligationsResponse:
      type: object
      properties:
        obligations:
          $ref: '#/components/schemas/v2OSADL'
        status:
          $ref: '#/components/schemas/v2StatusResponse'
      description: >-
        Response message for GetObligations method.


        Contains structured compliance obligations and usage requirements from

        OSADL database including use cases, compatibility, and patent
        information.
    rpcStatus:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/protobufAny'
    v2OSADL:
      type: object
      properties:
        copyleft_clause:
          type: boolean
          title: >-
            Indicates whether the license contains copyleft obligations
            requiring derivative works to use the same license
        patent_hints:
          type: boolean
          title: >-
            Indicates whether the license contains patent-related clauses or
            considerations
        compatibility:
          type: array
          items:
            type: string
          title: >-
            List of licenses that are compatible for combination with this
            license
        depending_compatibility:
          type: array
          items:
            type: string
          title: >-
            List of licenses that are compatible when depending on components
            with this license
        incompatibility:
          type: array
          items:
            type: string
          title: >-
            List of licenses that are incompatible and cannot be combined with
            this license
        use_cases:
          type: array
          items:
            $ref: '#/components/schemas/OSADLOSADLUseCase'
          title: >-
            Structured use cases with specific obligations for different
            distribution scenarios
      description: >-
        OSADL compliance metadata providing license analysis and compatibility
        information.
    v2StatusResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/v2StatusCode'
        message:
          type: string
          title: Status message
        db:
          $ref: '#/components/schemas/StatusResponseDB'
        server:
          $ref: '#/components/schemas/StatusResponseServer'
      description: Detailed response details.
    protobufAny:
      type: object
      properties:
        '@type':
          type: string
      additionalProperties: {}
    OSADLOSADLUseCase:
      type: object
      properties:
        name:
          type: string
          title: '"Binary delivery", "Network service", "Source code delivery"'
        obligation_text:
          type: string
          title: Human-readable obligation text
        obligation_json:
          type: string
          title: >-
            Machine-readable structured obligations with Language/Action/Term
            breakdown
      description: OSADL use case with structured obligations.
    v2StatusCode:
      type: string
      enum:
        - UNSPECIFIED
        - SUCCESS
        - SUCCEEDED_WITH_WARNINGS
        - WARNING
        - FAILED
      default: UNSPECIFIED
      description: Status code Enum.
    StatusResponseDB:
      type: object
      properties:
        schema_version:
          type: string
          title: Semantic schema version (e.g., 'v1.0.0')
        created_at:
          type: string
          title: When this DB was built (ISO 8601 format)
      description: Database version information.
    StatusResponseServer:
      type: object
      properties:
        version:
          type: string
          title: Semantic version (e.g., 'v1.0.0')
      description: Server information.

````