Hosted chat page and public widget API
Link to the full-page hosted Loopwix chat, and see an overview of the public endpoints the chat widget uses, with how stable each one is today.
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
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:
| 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
- 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.