The embed script
QUE serves a per-tenant booking widget as a plain JavaScript file. The script URL is formed from the tenant's slug and accepts configuration through query parameters.
<script src="/api/public/embed/your-slug.js?mode=inline&color=%23d2ff3f&label=Book%20now"></script>
<!-- Mount points (mode=inline) -->
<div data-que-booking="your-slug"></div>
<!-- Popup trigger (mode=popup) -->
<button data-que-popup="your-slug">Book an appointment</button>The three modes
| Mode | Behavior |
|---|---|
| inline | Automatically mounts an iframe into any element with data-que-booking matching the slug (default) |
| popup | Exposes window.QueBooking.open(); attach to any element with data-que-popup matching the slug |
| floating | Renders a fixed bottom-right button that opens the booking popup |
Parameters and validation
The script accepts color (branded button/widget color), label (call-to-action text), and prefill — a JSON-encoded parameter forwarded into the iframe so a host page can pre-select service or time context. The slug is validated against the published tenant before any JavaScript is emitted: an unknown or malformed slug returns a no-op response rather than an error page. Embedding runs inside an iframe, so the host page's styles cannot bleed into the booker and the booker cannot reach the host's DOM.
Same product, any surface
The embedded booker is the same public booking surface, not a reduced copy. Availability computation, forms, reminders, and payments behave identically whether the customer books on que.qubickle.com or inside your own site.