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

# Validate a License Key

> Validates a license key by checking its status, expiration, and activation limits. Requires `license_key` in the request body. The `x-store-id` header must be provided to ensure the key belongs to the store.



## OpenAPI

````yaml /api-reference/blink-api.json post /license-keys/validate
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - storeIdHeader: []
tags:
  - name: Invoices
    description: Unified merchant of record invoices for products and subscriptions.
  - name: Geo Pricing
    description: Resolve Purchasing Power Parity (PPP) localized pricing.
paths:
  /license-keys/validate:
    post:
      tags:
        - Deliverables
      summary: Validate a License Key
      description: >-
        Validates a license key by checking its status, expiration, and
        activation limits. Requires `license_key` in the request body. The
        `x-store-id` header must be provided to ensure the key belongs to the
        store.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateLicenseKeyRequest'
      responses:
        '200':
          description: License key validated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LicenseKeyValidationResponse'
        '400':
          description: Bad Request - Invalid license key or validation conditions not met.
        '401':
          description: Unauthorized - Store ID header missing.
        '404':
          description: License key not found.
      security:
        - storeIdHeader: []
components:
  schemas:
    ValidateLicenseKeyRequest:
      type: object
      properties:
        license_key:
          type: string
      required:
        - license_key
    LicenseKeyValidationResponse:
      type: object
      properties:
        valid:
          type: boolean
        meta:
          type: object
          properties:
            key:
              type: string
            activations:
              type: integer
            activation_limit:
              type: integer
            expires_at:
              type: string
              format: date-time
            customer_id:
              type: string
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````