---
title: "Create Enterprise Invite Code"
method: POST
path: "/enterprise/invite-codes"
---

# Create Enterprise Invite Code

`POST /enterprise/invite-codes`

## Request

- Base URL: `https://api.oxlo.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.oxlo.ai/enterprise/invite-codes`
- Auth: HTTP bearer

Create a new invite code for the current user's enterprise plan (owner only).

## Request body

- CreateEnterpriseInviteCodeRequest
  - `code` string, nullable
  - `company_prefix` string, nullable
  - `max_uses` integer, nullable
  - `expires_at` string, date-time, nullable

## Response `201`

Successful Response

- AppApiRoutesEnterpriseEnterpriseInviteCodeView
  - `code` string, required
  - `plan_id` string, required
  - `max_uses` integer, nullable, required
  - `uses_count` integer, required
  - `is_active` boolean, required
  - `is_expired` boolean, required
  - `can_use` boolean, required
  - `expires_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/oxlo/apis/oxlo-backend.md) - [All operations](https://skmtc.dev/oxlo/apis/oxlo-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/oxlo/apis/oxlo-backend/revisions/bc2ecdc94f31?raw)
