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

# Validate License

> Returns validation status for the provided license key



## OpenAPI

````yaml GET /validate/{pluginId}/{key}
openapi: 3.0.1
info:
  title: MC License API
  description: API for validating and managing Minecraft plugin licenses
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: https://api.mclicense.org
    description: Production API Server
security:
  - apiKey: []
paths:
  /validate/{pluginId}/{key}:
    get:
      summary: Validate a license key
      description: Returns validation status for the provided license key
      parameters:
        - name: pluginId
          in: path
          description: Plugin ID on dashboard
          required: true
          schema:
            type: string
        - name: key
          in: path
          description: License key to validate (alphanumeric + hyphens, max 36 chars)
          required: true
          schema:
            type: string
        - name: sessionId
          in: query
          description: Unique ID for heartbeat tracking (UUID format)
          required: true
          schema:
            type: string
            format: uuid
        - name: nonce
          in: query
          description: Unique ID for request to prevent replay attacks (UUID format)
          required: true
          schema:
            type: string
      responses:
        '200':
          description: License validation response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationResponse'
      security: []
components:
  schemas:
    ValidationResponse:
      type: object
      required:
        - pluginId
        - message
        - key
        - status
        - nonce
        - signature
      properties:
        pluginId:
          type: string
          description: The plugin ID that was validated
        message:
          type: string
          description: Human-readable message about the validation result
        key:
          type: string
          description: >-
            The license key that was validated (alphanumeric + hyphens, max 36
            chars)
        status:
          type: string
          enum:
            - valid
            - invalid_format
            - not_found
            - expired
            - max_ips
            - blacklisted
            - disabled
            - invalid_polymart
            - server_error
          description: Status code of the validation result
        nonce:
          type: string
          format: uuid
          description: The nonce that was provided in the request
        signature:
          type: string
          description: Base64-encoded RSA signature of the response data
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: MCL-Key
      description: API key must start with 'mcl_'

````