---
title: "Add new license"
method: POST
path: "/api/v2/licenses"
tags: ["Enterprise"]
---

# Add new license

`POST /api/v2/licenses`

## Request body

- CodersdkAddLicenseRequest
  - `license` string, required

## Response `201`

Created

- CodersdkLicense
  - `claims` object — Claims are the JWT claims asserted by the license. Here we use a generic string map to ensure that all data from the server is parsed verbatim, not just the fields this version of Coder understands.
  - `id` integer
  - `uploaded_at` string, date-time
  - `uuid` string, uuid

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/50a77af44008/schema)
