---
title: "Create a License Key"
method: POST
path: "/api/accesskeys/{orgId}"
---

# Create a License Key

`POST /api/accesskeys/{orgId}`

## Request

- Base URL: `https://core.serverless.com`
- URL: `https://core.serverless.com/api/accesskeys/{orgId}`
- Auth: HTTP bearer

Creates a License Key for an organization. Requires an org-scoped Access Key.

## Request body

- object
  - `label` string, required: Human-readable label for the new key.

## Response `200`

The created License Key.

- object
  - `data` LicenseKey
    - `key` string: The license key material.
    - `label` string: Human-readable label.
    - `orgId` string
    - `subscriptionId` string
    - `version` string
    - `createdAt` integer: Creation time (Unix epoch milliseconds).
    - `updatedAt` integer: Last update time (Unix epoch milliseconds).

## Other responses

- `401`: Missing or invalid Access Key.

---

[API](https://skmtc.dev/serverless/apis/serverless-framework-serverless-com.md) - [All operations](https://skmtc.dev/serverless/apis/serverless-framework-serverless-com/llms.txt) - [OpenAPI document](https://skmtc.dev/serverless/apis/serverless-framework-serverless-com/revisions/3eaea5299640?raw)
