---
title: "Create Invite"
method: POST
path: "/api/auth/invites"
tags: ["auth"]
---

# Create Invite

`POST /api/auth/invites`

## Request

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

Create a new invite code (admin only).

## Request body

- CreateInviteRequest
  - `max_uses` integer

## Response `200`

Successful Response

- InviteResponse
  - `code` string, required
  - `max_uses` integer, required
  - `times_used` integer, required
  - `is_active` boolean, required
  - `created_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stremai/apis/strem-ai.md) · [All operations](https://skmtc.dev/stremai/apis/strem-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/stremai/apis/strem-ai/revisions/160e5f136d48?raw)
