---
title: "Admin Generate Keys"
method: POST
path: "/api/admin/keys/generate"
---

# Admin Generate Keys

`POST /api/admin/keys/generate`

## Request

- Base URL: `https://yuanzizhiyi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://yuanzizhiyi.com/api/admin/keys/generate`
- Auth: none declared

## Cookies

- `admin_session` string, nullable

## Request body

- GenerateKeysRequest
  - `count` integer, required
  - `productCode` 'FULL_NATAL_REPORT' | 'CAREER_REPORT'
  - `channel` string, nullable
  - `note` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/yuanzizhiyi/apis/yuanzi-zhiyi.md) · [All operations](https://skmtc.dev/yuanzizhiyi/apis/yuanzi-zhiyi/llms.txt) · [OpenAPI document](https://skmtc.dev/yuanzizhiyi/apis/yuanzi-zhiyi/revisions/d063fae7ac16?raw)
