> ## 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.

# Activate a License Key

> Activates a specified license key by incrementing its activation count. Requires `license_key` in the request body. The `x-store-id` header must be provided to ensure store association. Validates the activation limit and expiration before processing.



## OpenAPI

````yaml /api-reference/blink-api.json post /license-keys/activate
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/activate:
    post:
      tags:
        - Deliverables
      summary: Activate a License Key
      description: >-
        Activates a specified license key by incrementing its activation count.
        Requires `license_key` in the request body. The `x-store-id` header must
        be provided to ensure store association. Validates the activation limit
        and expiration before processing.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActivateLicenseKeyRequest'
      responses:
        '200':
          description: License key activated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LicenseKeyActivationResponse'
        '400':
          description: Bad Request - Invalid license key or activation conditions not met.
        '401':
          description: Unauthorized - Store ID header missing.
        '404':
          description: License key not found.
      security:
        - storeIdHeader: []
components:
  schemas:
    ActivateLicenseKeyRequest:
      type: object
      properties:
        license_key:
          type: string
      required:
        - license_key
    LicenseKeyActivationResponse:
      type: object
      properties:
        activated:
          type: boolean
        meta:
          type: object
          properties:
            key:
              type: string
            activations:
              type: integer
            activation_limit:
              type: integer
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````