---
title: "Create a new license key"
method: POST
path: "/v1/licenses"
tags: ["licenses"]
---

# Create a new license key

`POST /v1/licenses`

## Request

- Base URL: `https://api.ditto.audio` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ditto.audio/v1/licenses`
- Auth: HTTP bearer

## Request body

- CreateLicenseDto
  - `tier` 'starter' | 'pro' | 'enterprise'
  - `productId` string
  - `maxActivations` number: Max simultaneous hardware activations
  - `expiresAt` string: Expiry date (null = perpetual)
  - `metadata` object: Arbitrary app-specific metadata stored on the license

## Response `201`

License created

---

[API](https://skmtc.dev/ditto/apis/ditto-audio-api.md) · [All operations](https://skmtc.dev/ditto/apis/ditto-audio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ditto/apis/ditto-audio-api/revisions/30c8d7c218da?raw)
