---
title: "Generate Single Use Codes"
method: POST
path: "/teacher/classes/{class_id}/generate-single-use-codes"
tags: ["Teacher"]
---

# Generate Single Use Codes

`POST /teacher/classes/{class_id}/generate-single-use-codes`

Generate multiple single-use codes for a class.

## Path parameters

- `class_id` string, required

## Request body

- GenerateCodesRequest
  - `count` integer, required — Number of codes to generate (1-100)

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/c407f3b5a05b/schema)
