For SaaS Platforms, CRMs & Agencies
Embed a Whitelabel WhatsApp Inbox Inside Your Own App
Embed WhatsBox's official WhatsApp Business API Shared Inbox directly inside your SaaS application, CRM, or agency client portal via iframe URL parameters, Firebase custom token SSO, and a live postMessage API.
Zero WhatsBox Branding Programmatic SSO Login Live postMessage API Open-Source Starter Repo
Your SaaS / CRM App
app.yourcrm.com/customers/thr_9821 Host CRM Contacts
Live postMessage Bridge
← { "type": "EMBED_READY" }
→ { "action": "login", "data": { "token": "eyJhbG..." } }
← { "action": "inbox", "status": "ready" }
Acme CRM Messages • Sarah Jenkins
/embedded?thread_id=thr_9821Hi! Can you confirm our invoice #INV-4092 is marked paid?
+1 415-555-0192 • 10:14 AM
Confirmed! Your renewal is active and your PDF receipt is attached.
Sent via Embedded Inbox ✓✓
Type a WhatsApp reply as Acme CRM...
Built for Product Teams Who Want WhatsApp Without Rebuilding a Chat App
Focus on your core SaaS product while WhatsBox handles Meta Cloud API compliance, media, templates, and real-time inbox UX.
Ship Native WhatsApp in Days, Not Quarters
Skip months of engineering chat panes, media uploaders, voice notes, 24-hour session timers, and template selectors. Embed WhatsBox's battle-tested inbox right inside your UI.
Automatic Whitelabel Branding & Admin Lockout
When loaded inside an iframe or via /embedded, WhatsBox replaces its logo and title with your Business Name and automatically hides Billing, Team, API Keys, Webhooks, Sign Out, and Switch Org.
Seamless Custom Token SSO Authentication
Generate short-lived authentication tokens via POST /auth/generate-auth-token on your backend and pass them via ?token= or postMessage so your users never see a separate login screen.
Deep-Link Any Customer Thread or Route
Open a specific customer's WhatsApp conversation directly alongside their CRM record using ?thread_id= or live { action: "open-thread" } commands from your parent window.
Live Theme Sync & Chrome Controls
Match your host application's appearance using ?theme=light|dark|system, toggle chrome with ?hide_sidebar=true and ?hide_header=true, and switch themes dynamically via postMessage.
Pay-Per-Use Unit Economics for SaaS & Agencies
Zero per-seat SaaS fees means you can offer WhatsApp messaging to every user in your customer's org while keeping healthy unit margins ($0.0025/msg + 0% Meta markup).
Iframe URL Parameters & postMessage API
Control authentication, navigation, chrome visibility, and live theming straight from your host web application.
URL Query Parameters (/embedded)
| Parameter | Accepted Values | Behavior |
|---|---|---|
| token | Firebase custom token | Authenticates the embedded user immediately on load via signInWithCustomToken. |
| theme | light | dark | system | Sets the initial embedded UI color theme to match your host app. |
| thread_id | Thread ID string | Deep-links directly into /inbox/<thread_id> for a specific customer record. |
| route | App path (e.g. /compose) | Sets the initial route inside the embedded frame (defaults to /inbox). |
| hide_sidebar | true / 1 or false / 0 | Hides both the desktop navigation rail and mobile bottom bar for tight CRM panels. |
| hide_header | true / 1 | Hides the embedded header chrome where supported. |
Parent-to-Iframe postMessage Commands
| Action | Payload Example | Effect |
|---|---|---|
| login | { action: "login", data: { token: "<custom_token>" } } | Programmatically signs the user into WhatsBox without showing a login form. |
| logout | { action: "logout" } | Signs the user out and redirects the iframe cleanly to /embedded-login. |
| open-thread | { action: "open-thread", data: { thread_id: "123" } } | Navigates the embedded inbox immediately to /inbox/123. |
| set-theme | { action: "set-theme", data: { theme: "dark" } } | Switches light, dark, or system theme live when your host app theme toggles. |
Integrate Embedded Mode in 3 Steps
Clone our open-source starter repository and see a working whitelabel WhatsApp inbox in minutes.
01
Generate a Short-Lived Auth Token
From your backend, call POST /auth/generate-auth-token with your WhatsBox API key to mint a custom authentication token for the session.
02
Mount the /embedded Iframe
Render an iframe pointing to app.whatsbox.io/embedded with your desired ?theme=, ?hide_sidebar=, and ?thread_id= parameters.
03
Control Live via postMessage
Listen for EMBED_READY and send login, open-thread, set-theme, or logout commands from your host SaaS or CRM app.
Frequently Asked Questions
Answers for SaaS founders, product managers, and agency leaders embedding WhatsBox.
Launch Native WhatsApp Inside Your Product Faster
Ship a full whitelabel WhatsApp Business API inbox with zero per-seat fees and open-source reference code.