---
search:
  tags:
    - licenseKeys
    - POST
seo:
  description: Reference for the POST /v1/license-keys endpoint in the Vortex Payments API.
sidebar:
  label: POST /v1/license-keys
  badge: POST
title: POST /v1/license-keys
type: openapi-operation
---
`POST /v1/license-keys`

**curl**

```bash
curl "https://api.vortex.nyc/v1/license-keys" \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

```ts
import { issueLicenseKey, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await issueLicenseKey({
  client: vortex,
  body: {...},
});
```

**Request body** (`application/json`, required)

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `customerId` (string, required)
- `billingAccountId` (string, required)
- `productRef` (string | null)
- `seatLimit` (number | null)
- `sourceRef` (string | null)
- `metadata` (object | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "customerId": "string",
  "billingAccountId": "string",
  "productRef": "string",
  "seatLimit": 0,
  "sourceRef": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  }
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "id": "string",
    "environment": "sandbox",
    "merchantAccountId": "string",
    "customerId": "string",
    "billingAccountId": "string",
    "productRef": "string",
    "serial": "string",
    "seatLimit": 0,
    "usesCount": 0,
    "status": "active",
    "disabledAt": "string",
    "sourceRef": "string",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "createdAt": "string",
    "updatedAt": "string"
  },
  "requestId": "string"
}
```
