# Hosted chat page and public widget API (/docs/developers/hosted-page-and-public-api)

> Link to a full-page hosted chat, and an overview of the public endpoints the Loopwix widget uses, with their stability.

Type: reference | Status: beta | Last reviewed: 2026-11-21 | Minimum role: builder

## Hosted chat page [#hosted-chat-page]

Loopwix can serve the chat as a full page, for a link or QR code, without embedding anything. Use the hosted-page address in **Channels → Website chat → Install** (built from your public key). It uses the same configuration as the widget (appearance, messages, verification).

## Public widget API [#public-widget-api]

The widget talks to a small public API under `/public/widget/v2`, authenticated by your **public key** and the allowed sites you configured. These endpoints are made for the Loopwix widget:

<Callout type="warn">They are **beta** and may change without notice. Prefer the [widget script and JavaScript API](/docs/developers/embed-the-widget#javascript-api). Request and response formats are not published here; there is no versioned, documented REST API for building your own chat client yet.</Callout>

| Area | Endpoints (under `/public/widget/v2`) |
|---|---|
| **Bootstrap** | `bootstrap` (configuration for the widget), `i18n/:lang` (UI text) |
| **Sessions** | `session`, `conversations`, `conversations/:id/messages` |
| **Chat** | `turns/:turnId`, `events` (streamed events), message feedback |
| **Verification** | `session/otp/start`, `…/otp/resend`, `…/otp/confirm`, `session/magic-link/start`, `…/magic-link/resend` |
| **Files** | `uploads` (create, complete, delete), `attachments/config`, attachment content |
| **Citations** | `citations/:ref` |
| **Paused workspace** | `paused-contact` |

Other public routes: the hosted page (`/public/widget/page`), plans (`/public/plans`), invitations and email-verification confirmation used by the dashboard.

## Rules [#rules]

- Keys are public (`lwix_pub_…`); never put a secret key in a browser.
- Calls from sites that are not in your allowed sites are refused.
- Rate limits and error formats are not documented; handle non-2xx responses gracefully.

For the verification flow from your own site, see [Security](/docs/security/trust-and-verification).
