TheDocumentation Index
Fetch the complete documentation index at: https://timelines.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
qr_link returned by Generate QR code for user opens a TimelinesAI-hosted page that walks the end user through connecting their WhatsApp account. Partners building white-label experiences typically embed this page in an iframe so the user never leaves the partner’s product.
This section covers everything that controls how that embedded experience looks and behaves: the URL parameter that styles the page for embedding, and a postMessage-based API for partners who want to drive the flow with their own UI.
Two integration modes
Default UI in an iframe
Embed the QR connection page in an iframe and let TimelinesAI render the QR code, phone-pairing fallback, and instructions. Minimal partner-side code. Use the
display_mode=embedding URL parameter for iframe-friendly styling — see Partner API Overview → QR code embedding.Fully custom UI
Hide the iframe entirely and drive the connection flow through the postMessage API. Receive the raw QR payload and pairing code as events, render them in your own design system, and listen for connection and error events.
qr_link URL — the difference is purely partner-side.
Prerequisite: register your embedding domain
Embedding the QR page in your application requires your partner record to have one or more embedding domains registered. This is the allowlist of parent-window origins to which TimelinesAI will dispatch outboundpostMessage events and from which it will accept inbound postMessage commands.
This applies in both integration modes — even a partner using the default UI inside an iframe receives the TIMELINES_QR_CONNECTED outbound event on successful connection, which requires the allowlist to be configured.
Contact TimelinesAI
Email support@timelines.ai with the list of origins where you will embed the iframe (e.g.
https://app.your-product.com, https://staging.your-product.com). Include exact scheme, host, and port for each.Confirmation
The TimelinesAI team registers the origins on your partner record. Multiple origins are supported.
Next
postMessage API
Inbound and outbound message catalog for driving the flow programmatically.

