---
title: "Create Code"
method: POST
path: "/dashboard/admin/codes"
tags: ["admin"]
---

# Create Code

`POST /dashboard/admin/codes`

## Request

- Base URL: `https://api.tickwire.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tickwire.io/dashboard/admin/codes`
- Auth: none declared

## Headers

- `Idempotency-Key` string, nullable
- `Authorization` string, nullable
- `X-Tickwire-CSRF` string, nullable

## Request body

- CreateCode
  - `code` string, required
  - `percent` number, required
  - `note` string
  - `starts_at` string, date-time, nullable
  - `ends_at` string, date-time, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tickwire/apis/tickwire-control-plane.md) · [All operations](https://skmtc.dev/tickwire/apis/tickwire-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/tickwire/apis/tickwire-control-plane/revisions/a4d1386fa23e?raw)
