---
title: "POST /api/v1/license-keys"
method: POST
path: "/api/v1/license-keys"
tags: ["Licensing"]
---

# POST /api/v1/license-keys

`POST /api/v1/license-keys`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/license-keys`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Create a new license key

## Request body

- ApiCreateLicenseKeyRequest
  - `customerOrganizationId` string, nullable
  - `description` string, nullable
  - `expiresAt` string, date-time
  - `licenseTemplateId` string, nullable
  - `name` string
  - `notBefore` string, date-time
  - `payload` string, byte

## Response `200`

OK

- TypesLicenseKey
  - `createdAt` string, date-time
  - `customerOrganizationId` string, nullable
  - `description` string, nullable
  - `expiresAt` string, date-time, nullable
  - `id` string
  - `lastRevisedAt` string, date-time, nullable
  - `licenseTemplateId` string, nullable
  - `name` string
  - `notBefore` string, date-time, nullable
  - `payload` string, byte

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
