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

# Create, renew or regenerate an SDK license

> Issue, renew, or regenerate a license with `sdk:{sdk}:write`. See [SDK licenses](/guides/sdk-licenses).

<Note>
Requires confirmed paid entitlement and an available slot for a new SDK attribution. Production and staging share slots. Regeneration does not extend expiry.
</Note>




## OpenAPI

````yaml openapi.yaml POST /v1/sdk-licenses/{sdk}
openapi: 3.1.0
info:
  title: CarHub API
  version: 2026-11-15-contracts-2
  summary: Automotive inference endpoints with asynchronous jobs.
  description: >
    Submit inference requests with an organization API key. Media inputs use an
    ordered inputs array and endpoint options use params. Each result includes
    its recorded result_schema_version. Read GET /v1/endpoints for current
    availability and prices. See the inference conventions for geometry,
    analysis outcomes, retries, and per-input results.
  termsOfService: https://trycarhub.com/terms
  contact:
    name: CarHub API support
    url: https://docs.trycarhub.com
    email: api@trycarhub.com
  license:
    name: Proprietary
    identifier: LicenseRef-CarHub-Commercial
servers:
  - url: https://api.trycarhub.com
    description: Production (EU)
security:
  - ApiKeyAuth: []
tags:
  - name: Vehicle understanding
    description: Vehicle pose, identity, segmentation, and text extraction.
  - name: Damage and condition
    description: Damage detection, severity, tire inspection, and hotspots.
  - name: Parts
    description: Component recognition, segmentation, and decomposition.
  - name: Pricing
    description: Vehicle valuation and repair estimates.
  - name: Image production
    description: Image editing, backgrounds, plate artwork, spins, and video.
  - name: Jobs
    description: Asynchronous status, results, and history.
  - name: Uploads
    description: Reusable media inputs and storage management.
  - name: Outputs
    description: Generated files, current download access, and public sharing.
  - name: Assets
    description: Permanent artwork and custom backgrounds.
  - name: SDK licenses
    description: Signed SDK usage rights and public verification keys.
  - name: Catalog
    description: Endpoint availability, prices, and public plans.
externalDocs:
  description: CarHub developer documentation
  url: https://docs.trycarhub.com
paths:
  /v1/sdk-licenses/{sdk}:
    parameters:
      - name: sdk
        in: path
        required: true
        schema:
          type: string
          enum:
            - player
            - capture
            - review
            - report
    post:
      summary: Create, renew or regenerate an SDK license
      description: >
        Issue, renew, or regenerate a license with `sdk:{sdk}:write`. See [SDK
        licenses](/guides/sdk-licenses).


        <Note>

        Requires confirmed paid entitlement and an available slot for a new SDK
        attribution. Production and staging share slots. Regeneration does not
        extend expiry.

        </Note>
      operationId: issueSDKLicense
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                regenerate:
                  type: boolean
                  default: false
                  description: >-
                    Sign a current paid-period license again without extending
                    expiry or consuming a slot; otherwise returns
                    sdk_license_not_current
      responses:
        '200':
          description: License and derived quota; Cache-Control no-store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SDKLicenseView'
        '400':
          description: Unknown SDK or malformed request
        '401':
          description: Invalid API key
        '403':
          description: scope_not_granted or license_environment_forbidden
        '409':
          description: subscription_unpaid, sdk_quota_exceeded or sdk_license_not_current
        '503':
          description: license_signing_unconfigured
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SDKLicenseView:
      type: object
      required:
        - sdk
        - state
        - max_sdks
        - consumed
        - available
        - license
      properties:
        sdk:
          type: string
          enum:
            - player
            - capture
            - review
            - report
        state:
          type: string
          enum:
            - unassigned
            - active
            - expired
        max_sdks:
          type: integer
          minimum: 0
        consumed:
          type: integer
          minimum: 0
        available:
          type: integer
          minimum: 0
        license:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SDKLicense'
    SDKLicense:
      type: object
      required:
        - id
        - organization_id
        - sdk
        - created_at
        - issued_at
        - valid_from
        - expires_at
        - proof
      properties:
        id:
          type: string
          format: uuid
        organization_id:
          type: string
        sdk:
          type: string
          enum:
            - player
            - capture
            - review
            - report
        created_at:
          type: string
          format: date-time
        issued_at:
          type: string
          format: date-time
        valid_from:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
        proof:
          type: string
          description: >-
            EdDSA JWT for offline verification; never an API authentication
            credential
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: CarHub API key
      description: >
        Send `Authorization: Bearer YOUR_API_KEY`.

        Use `chk_test_` for fixture results and test credits, `chk_stg_` for
        staging,

        and `chk_live_` for production. Production and staging share live
        credits.

        Keys require explicit operation permissions. Store secrets on your
        backend.

````

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