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

# Deactivate License



## OpenAPI

````yaml /api-reference/openapi.json post /license/deactivate/
openapi: 3.0.0
info:
  title: kelviq API
  version: 1.0.0
  description: >-
    API for interacting with kelviq services, derived from Python SDK
    documentation.
servers:
  - url: https://api.kelviq.com/api/v1
    description: kelviq API Server (General - specific operations might override)
security:
  - bearerAuth: []
tags:
  - name: Products
    description: Catalog products.
  - name: Product Settings
    description: Per-product settings (currency, VPN/Tor/proxy, product URL).
  - name: Product Files
    description: Product images and downloadable assets.
  - name: Features
    description: Catalog features that can be granted as plan entitlements.
  - name: Plans
    description: Catalog plans (CRUD, publish, versions, prices).
  - name: Plan Entitlements
    description: Feature entitlements attached to a plan.
  - name: Plan Files
    description: Files attached to plans, and signed download links.
  - name: Media
    description: Generate presigned S3 upload URLs for product/plan images and files.
  - name: Partner
    description: Partner integration APIs (organization provisioning, lookup).
  - name: Charges
    description: >-
      One-time payments charged immediately against a customer's default payment
      method.
paths:
  /license/deactivate/:
    post:
      tags:
        - License
      summary: Deactivate License
      operationId: licenseDeactivate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LicenseDeactivation'
            example:
              licenseKey: KLVQ-PRO-1234-ABCD-9999
              instanceId: 8f3e2b1a-5c6d-4e9f-8a0b-1c2d3e4f5g6h
      responses:
        '200':
          description: Deactivation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LicenseDeactivationResponse'
              example:
                message: License instance deactivated successfully.
                deactivatedAt: '2026-01-27T10:35:00Z'
        '400':
          description: Bad Request - Validation error (e.g., missing required fields).
          content:
            application/json:
              example:
                licenseKey:
                  - This field is required.
                instanceId:
                  - This field is required.
        '404':
          description: >-
            Not Found - The combination of licenseKey and instanceId does not
            exist.
          content:
            application/json:
              example:
                error: Invalid license key or instance ID.
components:
  schemas:
    LicenseDeactivation:
      type: object
      properties:
        licenseKey:
          type: string
        instanceId:
          type: string
          format: uuid
      required:
        - instanceId
        - licenseKey
      example:
        licenseKey: KLVQ-PRO-1234-ABCD-9999
        instanceId: 8f3e2b1a-5c6d-4e9f-8a0b-1c2d3e4f5g6h
    LicenseDeactivationResponse:
      type: object
      properties:
        message:
          type: string
        deactivatedAt:
          type: string
          format: date-time
      example:
        message: License instance deactivated successfully.
        deactivatedAt: '2026-01-27T10:35:00Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        The Server API Key obtained from the kelviq application. Pass as a
        Bearer token in the Authorization header. Example: 'Authorization:
        Bearer __YOUR_API_KEY__'

````