---
title: "Create Activation Code"
method: POST
path: "/api/admin/activation-codes"
---

# Create Activation Code

`POST /api/admin/activation-codes`

## Request body

- CreateActivationCodeRequest
  - `label` string, nullable
  - `kind` string
  - `trial_days` integer
  - `max_redemptions` integer, nullable
  - `expires_in_days` integer, nullable
  - `code` string, nullable

## Response `201`

Successful Response

- object

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-18** `64da737bcc9e` — 1 warning, 3 info
  - changed the pattern of the request property `kind` from `^(trial|team_monthly_checkout|enterprise_contract|team_annual_deal)$` to `^(team_monthly_checkout|enterprise_contract)$`
  - the `kind` request property default value changed from `trial` to `team_monthly_checkout`
  - the `expires_in_days` request property default value `7` was removed
  - the `max_redemptions` request property default value `1` was removed
- **2026-08-16** `44d8ea826f48` — 1 warning, 3 info
  - changed the pattern of the request property `kind` from `^(team_monthly_checkout|enterprise_contract)$` to `^(trial|team_monthly_checkout|enterprise_contract|team_annual_deal)$`
  - the `expires_in_days` request property default value `7` was added
  - the `max_redemptions` request property default value `1` was added
  - the `kind` request property default value changed from `team_monthly_checkout` to `trial`
- **2026-08-13** `d80008a9efc6` — 1 warning, 1 info
  - changed the pattern of the request property `kind` from `^(trial|team_annual_deal)$` to `^(team_monthly_checkout|enterprise_contract)$`
  - the `kind` request property default value changed from `trial` to `team_monthly_checkout`
- …earlier changes not shown

[Full history](https://skmtc.dev/codag/apis/infra-logs-templater/changes/api/admin/activation-codes/post.md)

---

[API](https://skmtc.dev/codag/apis/infra-logs-templater.md) · [All operations](https://skmtc.dev/codag/apis/infra-logs-templater/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codag/infra-logs-templater/revisions/a4b69f6d2450/schema)
