---
title: "Create invite codes"
method: POST
path: "/admin/invite/codes"
tags: ["Admin"]
---

# Create invite codes

`POST /admin/invite/codes`

## Request

- Base URL: `https://api.testnet.rise.trade`
- URL: `https://api.testnet.rise.trade/admin/invite/codes`
- Auth: none required
- TypeScript: <https://skmtc.dev/rise/apis/risex-rest-api/docs/admin/invite/codes/post.ts> (a function with typed inputs; its response is checked against the schema)

Create invite codes. If address is provided, issues codes to that account. If empty, creates a system access code.

## Request body

- ApiCreateInviteCodesRequest
  - `address` string: Target account address. If empty, creates a system access code (owned by zero address).
  - `count` integer: Number of codes to create (1-1000, default 1). Mutually exclusive with 'code'.
  - `description` string
  - `code` string: Specific code to create. Mutually exclusive with 'count'.
  - `created_by` string: Name of the admin operator who created the codes (e.g. "Avi", "Sam"). Optional.

## Response `200`

A successful response.

- ApiCreateInviteCodesResponse
  - `codes` string[]
  - `count` integer

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-11-03** `98eabcd6a6ad`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rise/apis/risex-rest-api/changes/admin/invite/codes/post.md)

---

[API](https://skmtc.dev/rise/apis/risex-rest-api.md) - [All operations](https://skmtc.dev/rise/apis/risex-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rise/apis/risex-rest-api/revisions/98eabcd6a6ad?raw)
