---
title: "Create Assistant Enrollment Code"
method: POST
path: "/api/v1/assistant-groups/{group_id}/enrollment-codes"
tags: ["assistant"]
---

# Create Assistant Enrollment Code

`POST /api/v1/assistant-groups/{group_id}/enrollment-codes`

## Request

- Base URL: `https://api.getanana.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getanana.com/api/v1/assistant-groups/{group_id}/enrollment-codes`
- Auth: none declared

A code to print in a room or put on a poster (PR 17).

## Path parameters

- `group_id` string, uuid, required

## Request body

- EnrollmentCodeCreate
  - `purpose` 'room_qr' | 'generic', required
  - `property_id` string, uuid, nullable
  - `expires_at` string, date-time, nullable

## Response `200`

Successful Response

- EnrollmentCodeRead
  - `code` string, required
  - `purpose` string, required
  - `property_id` string, uuid, nullable, required
  - `expires_at` string, date-time, nullable, required
  - `start_url` string, required

## Other responses

- `400`: A room code without a hotel of this workspace
- `404`: No assistant here, or the feature is off for this workspace
- `409`: Refused: an assistant already exists, a name is taken, or phone-number identities are off
- `422`: Validation Error

## Changes

> 55 revisions in range; 1 not diffed.

- **2026-10-14** `94fc7fe82074`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/assistant-groups/:group_id/enrollment-codes/post.md)

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getanana/apis/cleon-api/revisions/4d9d38769a75?raw)
