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

# Activate a license key

> Idempotent per `label`. 403 once the activation limit is reached or the key is revoked or expired.



## OpenAPI

````yaml /openapi.json post /api/v1/license-keys/activate
openapi: 3.1.0
info:
  title: SleetPay API
  version: 1.0.0
  description: >-
    Create checkouts, read customers, orders and subscriptions, ingest usage
    events, manage seats and validate license keys. Authenticate with an
    organization access token (`Authorization: Bearer sk_live_...`) created in
    Dashboard > API keys, or an OAuth access token. Each key carries scopes; an
    endpoint needing a scope the key lacks answers 403. Amounts are integers in
    the currency's minor unit (cents for USD). Lists return `{ items, pagination
    }` and take `page` and `limit` (max 100).
servers:
  - url: https://app.sleetpay.com
security: []
tags:
  - name: Checkouts
  - name: Products
  - name: Customers
  - name: Orders
  - name: Subscriptions
  - name: Seats
  - name: License keys
  - name: Usage
  - name: Credits
  - name: Customer sessions
paths:
  /api/v1/license-keys/activate:
    post:
      tags:
        - License keys
      summary: Activate a license key
      description: >-
        Idempotent per `label`. 403 once the activation limit is reached or the
        key is revoked or expired.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organization_id:
                  type: string
                key:
                  type: string
                label:
                  type: string
                meta:
                  type: object
                  additionalProperties:
                    type:
                      - string
                      - number
                      - boolean
                  description: Up to 20 flat keys. Echoed in webhooks.
              required:
                - organization_id
                - key
                - label
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/License'
        '400':
          description: The request body or parameters are invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. Retry after the `Retry-After` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    License:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          description: granted | revoked | disabled
        limit_activations:
          type:
            - integer
            - 'null'
        activations_count:
          type: integer
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          description: A human-readable message.
      required:
        - error

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.