> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tuturuuu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Meet event rooms

> Operate persistent Meet links for platform events.

A platform admin can reserve a Meet link for an event and choose how attendees join. Event rooms have no tier-based call duration or idle timeout. Each room has its own participant limit, 100 by default. Standard meetings retain their existing limits. The platform owns infrastructure costs for event rooms. Meet AI uses the root workspace as the staff payer.

Keep the feature off during deployment and apply the event-room database migration before enabling it. The feature is off unless `MEET_EVENT_ROOMS_ENABLED=true` is set on the Web, Meet, and Meet Realtime services. Only platform admins with the root workspace's `admin` permission may create, change, archive, or delete event rooms. Hosts and co-hosts manage the call. They cannot administer the event room record unless they are also platform admins.

## API contract

Admin requests go to `/api/v1/admin/meet/event-rooms` on Web. Use a same-origin admin browser session or a CLI app-session Bearer token. Browser mutations require a trusted Origin. Responses use `Cache-Control: private, no-store`. Error bodies have an `error` machine code.

| Method and path | Request | Success |
| - | - | - |
| `GET /` | Optional UUID `after` query parameter | `200 { rooms, nextCursor }` |
| `POST /` | Create fields below | `201 { room }` |
| `GET /people?query=…` | Trimmed display name or email search | `200 { people }` |
| `GET /{slug}` | Stable event slug | `200 { room }` |
| `PATCH /{slug}` | Partial mutable fields | `200 { room }` |
| `POST /{slug}/archive` | No body | `200 { room }` |
| `DELETE /{slug}` | No body | `204` |

The people lookup supplies account IDs for the host, co-host, and allowlist fields. It searches active platform accounts by case-insensitive display name or email substring and returns up to 20 distinct matches with only `id`, `displayName`, and `email`. Display names and emails may be null. Queries must contain 3–160 characters after trimming. An asterisk or a control character within the trimmed text returns `400 invalid_input`. The lookup has no pagination or total count. `GET /people` without a `query` parameter reads the room with the slug `people`.

The lookup uses the same root workspace admin, trusted session, and required MFA checks as room administration. It works with the event-room flag off. In addition to shared session and IP protection, the lookup allows up to 30 searches per admin account per minute. Quota exhaustion returns `429 rate_limited` with `Retry-After`. If the lookup or its limiter is unavailable, the response is `503 unavailable`.

Create requires `slug`, `wsId`, `title`, and `hostIds` (one or more UUIDs). The remaining fields are optional.

| Field | Type and default |
| - | - |
| `slug` | Immutable lowercase kebab-case, 3–64 characters. Reserved words include `admin`, `api`, `auth`, `e`, `help`, `login`, `meet`, `new`, `r`, `settings`, and `support`. |
| `wsId` | UUID of an existing owning workspace. Fixed at creation. The backing meeting and any replacement meetings belong to this workspace. |
| `title` | 1–160 characters after trimming |
| `hostIds`, `coHostIds` | Account UUID arrays, at most 20 each. Co-hosts default to empty. |
| `accessMode` | `link`, `signed_in`, or `allowlist`. Default `signed_in`. |
| `allowlistUserIds` | Up to 100 account UUIDs. Default empty. Listed hosts and co-hosts can always enter active rooms. |
| `waitingRoom` | Boolean, default true |
| `recording`, `transcription`, `mira`, `pinnedQr` | Booleans, default false |
| `defaultActivities` | Array of activity keys, default empty. Supported keys are `polls`, `forms`, `timer`, and `whiteboard`. |
| `capacity` | Integer from 1 to 100, default 100 |
| `enabled` | Boolean, default true |
| `shortSlug` | Immutable alias, lowercase kebab-case, 3–32 characters. Defaults to the room slug when it fits. |
| `shortLinkMode` | Create-only. `ensure` creates a missing alias or adopts a matching alias. `adopt` requires an existing matching alias. Default `ensure`. |

PATCH accepts only `title`, `hostIds`, `coHostIds`, `accessMode`, `allowlistUserIds`, `waitingRoom`, `recording`, `transcription`, `mira`, `pinnedQr`, `defaultActivities`, `capacity`, and `enabled`. The room includes those fields, `id`, `slug`, `wsId`, `shortSlug`, `shortUrl`, `joinUrl`, `meetingId`, `archivedAt`, `createdAt`, `updatedAt`, `createdBy`, and `updatedBy`. Use `shortUrl` as the admin QR destination.

Admin errors include `invalid_input` (400), `unauthorized` (401), `forbidden`, `csrf_rejected`, and `mfa_required` (403), `not_found` and `alias_not_found` (404), `slug_taken`, `alias_conflict`, and `room_archived` (409), `payload_too_large` (413), `rate_limited` (429), and `feature_disabled` and `unavailable` (503). Admin rate-limit responses include `Retry-After` in whole seconds. Add `?dryRun=1` to validate a mutation without writing. A successful preview returns `200 { dryRun: true }`.

The admin API rejects a declared body over 8,192 bytes before session authentication. Shared IP protection can also reject a request at that stage. After session authentication and shared session protections, the admin guard checks the mutation Origin, root workspace permission, session credential binding, and required MFA, in that order. A missing session therefore wins over invalid Origin, missing MFA, a disabled flag, and room state. With a valid session, Origin and root workspace permission win over MFA. Authenticated create and PATCH requests with JSON content are also checked against the 8,192-byte limit while reading the stream.

Once those checks pass, create and PATCH validate their JSON. A create or an explicit `enabled: true` update checks the global flag before consulting room state, except on a dry run. Admin reads, archive, delete, and updates that omit `enabled: true` remain available with the flag off.

Only root workspace members with the `admin` permission may administer event rooms. The create field `wsId` becomes the stored `ws_id` and selects the owning workspace. It grants no event-room administration rights. Ownership or membership in that workspace is neither required nor sufficient for administration. The workspace-scoped Web token endpoint also requires its workspace to match the event room's stored `ws_id` and checks attendee access separately.

The database write RPC checks root workspace permission again, including for dry runs. A revocation visible to that check causes `403 forbidden`, even if the Web check passed. An in-flight write can finish if revocation commits after the RPC's permission check. The RPC serializes room writes by slug. The room, call, alias, and audit writes share one transaction. An audit insert failure rolls back the mutation and returns `503 unavailable`. Dry runs and successful no-op retries create no audit entry.

### Join resolution

Meet's shareable path is `https://tuturuuu.com/meet/e/{slug}`. The join page uses `GET /api/v1/meet/event-rooms/{slug}/join`. Success returns `200 { slug, title, accessMode, meetingId, callPath }` with `callPath` relative to the Meet app root. The endpoint checks the global flag first (`503 feature_disabled`), then the slug and room existence (`404 not_found`), then archive and disabled state (respectively `410 room_archived` and `410 room_disabled`). Active rooms enforce access mode (`401 sign_in_required` or `403 access_denied`). A lookup failure returns `503 unavailable`. The call page and token endpoints recheck access when a direct meeting link is used. Realtime join tokens expire 10 minutes after issuance. Realtime still checks the event policy and call state before admitting a token holder.

Link access uses Meet's guest identity and verification flow. Verification is required by default and when policy lookup fails. Verified root staff can inspect overrides via the Admin app's `GET /api/v1/infrastructure/guest-verification?product=meet`. Override records have `active`, `revoked`, or `expired` status and an `expiresAt` timestamp. Overrides last two hours by default and accept durations from five minutes to 24 hours. Ordinary signed guest sessions are valid for up to 12 hours and are scoped to the meeting ID.

## Admin console

Platform admins manage event rooms in Admin under **Meet**, **Event rooms** (`/{wsId}/meet/event-rooms`). Everyone else gets the standard not-found page, and the navigation group is hidden. When the API refuses a request, the console shows an access-denied state, or a verification prompt for `mfa_required`, and no room data.

| Rule | Decision |
| - | - |
| List | Pages of 50 rooms with **Load more**. Search and the Active, Paused, Archived and All filter apply to the loaded rooms. Rooms link to their detail view by slug. |
| Create | Requires an owning workspace, picked from the admin's workspaces, a title, a slug and at least one host. The slug is suggested from the title (diacritics removed). Defaults match the API. `slug_taken`, `alias_conflict` and `alias_not_found` mark the slug or short link field; other errors show their own message. |
| Edit | The owning workspace, slug and short link cannot change. Saving sends only edited settings; an unchanged form closes without a request. Archived rooms cannot be edited. |
| People | Hosts, co-hosts and the allowlist use a people search by name or email. Input waits 300 ms and sends nothing below 3 characters. Pasted account UUIDs are added directly without a search. Picked accounts show as removable chips with name and email; Accounts not picked in the current tab show as their UUID. A `429` shows the `Retry-After` wait and is not retried. |
| QR code | Encodes `shortUrl`, falling back to `joinUrl` if the short link is blank. PNG (2048 px) and SVG downloads use the same link. Modules stay black on white in both themes. |
| Accepting joins | Sets `enabled`. Turning it off stops the room; people in the call are disconnected when its policy lease next renews. |
| Archive and delete | Each needs a confirmation. Archive is permanent and has no restore. |

## Join page

`/e/{slug}` in Meet is public, so each room decides its own access. The page calls the join endpoint with the viewer's session and redirects a joinable room to its `callPath` (`/r/{meetingId}`), which owns guest admission, the waiting room and device checks. A `callPath` outside `/r/` is treated as a failure. Refusals render in the endpoint's order: `feature_disabled` (unavailable, with retry), `not_found` (not-found page), `room_archived` (event ended), `room_disabled` (joins paused, with retry), `sign_in_required` (sign-in link that returns to the event) and `access_denied` (not on the guest list, with a switch-account link). A malformed or reserved slug shows not-found without a request. `503 unavailable` goes to the error page.

## Operate an event room

Sign in to `ttr` with a platform-admin session. Use `--json` for scripts and `--dry-run` to check a proposed mutation. Every committed change records the acting account and action in the event room audit table.

Pass the owning workspace UUID with `--workspace`. The EduFest seed uses the IEEAI workspace. Set the CLI environment to the intended validation environment and resolve the host account UUIDs there. Set `EVENT_HOST_IDS` to the comma-separated list. Run the command with `--dry-run` before provisioning.

```sh theme={null}
ttr meet rooms create edufest-2026-workshop-4 \
  --workspace a65cebd7-3a8c-4883-a3d9-82f9703d652f \
  --title 'EduFest 2026 — Workshop 4' \
  --host-ids "${EVENT_HOST_IDS:?Resolve host account UUIDs first}" \
  --access signed_in \
  --short-slug edufest-meet \
  --short-link-mode ensure \
  --json
```

The alias `edufest-meet` is created if free. Both ensure and adopt can reuse an existing alias only if it belongs to the root workspace, has the `tuturuuu.com` storage domain used for these `ttr.gg` links, and points to the same event URL. Aliases with a password, an expiry, or an existing Meet binding conflict. The `edufest` alias belongs to the Upskii class and is reserved from Meet event alias allocation.

Use `ttr meet rooms update <slug> --settings '{"enabled":false}'` to stop one room. Archive is permanent and keeps the slug reserved. Use `MEET_EVENT_ROOMS_ENABLED=false` on Meet Realtime and Web to stop all event rooms. Set `MEET_EVENT_ROOMS_POLICY_WEB_ORIGIN` on Meet Realtime to the matching Web origin and configure the existing shared `MEET_REALTIME_TOKEN_SECRET` on all three services.

An occupied event call renews its policy lease at most once a minute, with one request in flight. A Web `410` or the Realtime kill switch permanently stops that call. A temporary failure keeps the call running until its third consecutive failed renewal or until four minutes have elapsed since the last successful policy check, whichever comes first. When that grace period runs out, Realtime ends the call, closes sockets, and queues media cleanup. The next attendee can join only after Web returns a fresh `204`. Empty rooms stop renewing and validate the policy when people return.

A Web policy `401` counts as a temporary failure and emits a warning. If it follows a secret rotation, check that Web and Meet Realtime use the same `MEET_REALTIME_TOKEN_SECRET`.

When a host ends the call, an otherwise eligible attendee with an account or a valid guest session sees Meet's ended-call screen at the direct link. A new anonymous guest in link mode can still see the guest form. Realtime sends `room.ended` and disconnects anyone attempting to join the ended call, even if a token endpoint issued a token. The event slug continues to resolve to that call until a platform admin disables and re-enables the room or changes its settings while enabled. This creates a fresh call. The retired direct link then shows a not-found page for signed-in callers, and an otherwise eligible signed-in request to Meet's token API returns `410` with `code: "room_disabled"`.

Recording, transcription, and Mira settings gate eligibility for those features. Existing consent requirements, provider limits, and feature-specific flags still apply. Rooms start with the first configured default activity and can open the remaining activities from the call tools. Anonymous users in link mode complete Meet's guest verification and wait for manual admission even when the waiting room is off. Signed-in attendees follow the waiting-room setting. The participant limit includes the waiting room and reserves space for a host.

## Regression coverage

* Admin console form rules, payloads and list, detail and access states: `apps/admin/src/app/[locale]/(dashboard)/[wsId]/meet/event-rooms/_lib/event-room-form-schema.test.ts` and `.../_components/event-rooms-client.test.tsx`
* QR destination: `.../_components/event-room-qr.test.tsx`
* People picker debounce, minimum query, pasted IDs, empty, error and rate-limit states: `.../_components/event-room-people-picker.test.tsx`
* Client routes and error codes: `packages/internal-api/src/infrastructure/meet-event-rooms.test.ts`
* Join resolution order and states: `packages/meet-core/src/features/event-rooms/*.test.ts(x)`
* [Workspace ownership, database privileges, alias adoption, and create retries](https://github.com/tutur3u/platform/blob/main/apps/database/supabase/tests/meet-event-rooms.sql)
* [Admin authorization and feature flag](https://github.com/tutur3u/platform/blob/main/apps/web/src/app/api/v1/admin/meet/event-rooms/route.test.ts)
* [People lookup authorization, rate limiting, and response fields](https://github.com/tutur3u/platform/blob/main/apps/web/src/app/api/v1/admin/meet/event-rooms/people.test.ts)
* [Room page admission, rollout switch, and attendee data projection](https://github.com/tutur3u/platform/blob/main/apps/meet/src/runtime/page-model.server.test.ts)
* [Workspace-scoped event tokens and tier-limit policy](https://github.com/tutur3u/platform/blob/main/apps/web/src/app/api/v1/workspaces/%5BwsId%5D/meetings/%5BmeetingId%5D/realtime-token/route.test.ts)
* [Realtime duration, capacity, and stop fences](https://github.com/tutur3u/platform/blob/main/apps/meet-realtime/src/room-do-empty-lifecycle.test.ts)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.