White-Label WhatsApp for Your SaaS: The Lime API Partner Program · Lime API
Embed a full WhatsApp workspace inside your CRM, clinic, fitness or booking platform under your brand, and earn on every paying customer.
If your customers already run their business inside your product, WhatsApp is probably the one thing they still do somewhere else. They answer leads on their phone, copy messages into your CRM by hand, and ask you every few months when "the WhatsApp integration" is coming.
The Lime API partner program is built for that gap. You embed a complete WhatsApp workspace inside your app, under your brand. Your customer connects their own number in about a minute, and you earn on every customer who pays.
Who the program is for
The partner program fits platforms where the end customer is a small or mid-sized business that talks to its own clients:
- CRMs and sales tools
- Clinic, practice and therapist management systems
- Fitness studios, coaches and gym software
- Booking, scheduling and appointment platforms
- E-commerce back offices and order management tools
If you manage numbers for a handful of clients as a service provider rather than embedding WhatsApp in a product, the Agency plan is usually a better fit.
What your customer gets inside your app
The embed is not a "connect your number" widget. It is the full Lime workspace, scoped to one customer and shown inside an iframe in your product:
- Connection by QR code, pairing code (phone number) or a connect link
- Inbox with all chats, media and replies
- Automations: keyword replies, away messages, welcome messages, webhooks (how they work)
- Scheduled messages and broadcasts with safe delays between recipients
- Queue showing what is waiting to be sent
- Groups
- Webhooks, settings and API access, only if you choose to show them
That last point matters. Many of your customers will never touch an API. Others, usually the more technical ones, want their instance ID and token so they can plug WhatsApp into their own tools. A single setting, "Show API to customers", decides which experience they get.
How the integration works
The flow has two parts: your server creates a short-lived embed session for a customer, and your page mounts it.
1. Server side: create an embed session
Call the Partner API from your backend with your partner token. Never put the token in the browser.
curl -X POST "https://api.lime-api.com/partner/createEmbedSession/{partnerToken}" \
-H "Content-Type: application/json" \
-d '{"externalId":"cust_123","name":"Dana","email":"dana@example.com","locale":"he"}'
# -> { "url": "https://...", "expiresAt": 1730000000000 }
externalId is your own customer ID. The same ID always opens the same customer, so you never have to store a Lime customer ID on your side. The returned URL is short-lived and belongs to one customer only.
2. Client side: mount the embed
Load https://app.lime-api.com/embed.js with a script tag, add a container element, and pass it the URL your server received:
LimeEmbed.mount('#lime', {
url: EMBED_URL_FROM_YOUR_SERVER,
onEvent: (e) => console.log(e),
})
The onEvent callback lets your app react to what happens inside the embed. You can also lock the embed to your own domains with Allowed origins, so it cannot be framed anywhere else.
3. The customer connects and pays
Inside the embed, the customer picks a plan, pays, and connects their WhatsApp with a QR scan or a pairing code. Setup takes about two minutes. From then on, every message, automation and broadcast runs in the cloud on Cloudflare's global network, even when their phone is offline.
Branding
In the partner page you set:
- Brand name, shown in the embed instead of Lime API
- Logo (any https:// image URL)
- Brand color
- Allowed origins for the iframe
- Language: pass
locale per session. The panel is available in five languages, including Hebrew and Arabic with right-to-left layout.
Before going live, use Preview as customer to open the embed as a test customer and see exactly what your users will see.
Two ways to get paid
This is where the program differs from a plain reseller deal. You choose who collects from your customers.
| Lime collects | You collect |
|---|
| Who charges the customer | Lime, through a secure checkout | You, through your own payment account |
| Price the customer pays | Lime's Pro price, or a custom price agreed with Lime | Your price |
| Your revenue | A commission on every paid invoice | The full payment goes to your account |
| What you pay Lime | Nothing | A low wholesale price per instance-month |
Model 1: Lime collects, you earn a commission
Your customers pay Lime directly inside the embed. A commission is recorded for every paid invoice of every customer you brought, both the first purchase and each renewal. Your commission rate is set per partner by Lime and shown on your partner page, together with pending commission, paid commission and payouts.
This is the fastest way to start. You do not handle payments, refunds or card failures.
Model 2: your own payment account, you keep the revenue
Lime gives you a low wholesale price. You connect your own payment account on your partner page, set the price your customers see, and the money goes straight to you. Renewals are charged automatically, monthly or yearly.
You pay Lime per instance-month in one of two ways, agreed with Lime:
- Prepaid balance: each paid month uses one month of your balance, a yearly plan uses twelve. New purchases are blocked if the balance runs too low.
- Automatic card billing: every customer payment, both purchase and renewal, is charged right away to the card you saved, at your agreed price per instance-month. You get an invoice by email for every charge. Any prepaid balance you still have is used first.
There is also a third option for platforms that already bill their customers themselves: collect the payment in your own system, then call activateInstance to activate or extend the customer's number from your prepaid balance.
Partner webhooks
Set one webhook URL and Lime sends you billing events about your customers:
customer.paidpayment.failedsubscription.canceled
Every request is signed with your webhook secret in the x-lime-signature header (t=<unix>,v1=<hex HMAC-SHA256> over "<t>.<body>"). Verify it before you trust the payload:
import crypto from 'node:crypto'
function verifyLime(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')))
const expected = crypto.createHmac('sha256', secret).update(parts.t + '.' + rawBody).digest('hex')
if (!parts.v1 || parts.v1.length !== expected.length) return false
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1))
}
New customer numbers also get your webhook URL as their instance webhook, so instance events such as stateInstanceChanged and incoming messages reach your server too. That is how you sync WhatsApp conversations into your CRM timeline without extra work. You can rotate the secret at any time.
Partner API methods
All methods use the same pattern: POST https://api.lime-api.com/partner/{method}/{partnerToken}.
| Method | What it does |
|---|
createEmbedSession | Creates or updates the customer and returns a short-lived embed URL |
upsertCustomer | Creates or updates a customer by your own ID |
getCustomers | Lists your customers |
getCustomer | Returns one customer and their numbers |
createCheckout | Returns a checkout URL for a new or existing number |
getConnectLink | Returns a QR / connect link for a customer's number |
activateInstance | Activates or extends a number from your prepaid balance |
getBalance | Your prepaid balance and its movements |
getCommissions | Your commission rate and totals |
createEmbedSession also accepts idInstance and view to open a specific number or screen, and purchase: false to hide the purchase flow when you activate numbers yourself. Full details are in the partner section of the docs.
Because every customer number is a standard Lime instance, everything else in the WhatsApp API works on it too, including sendMessage, webhooks and the Make, Zapier and n8n integrations.
What you see as a partner
Your partner page shows customers, paying numbers, pending and paid commission, and the list of customers with each number's payment status and paid-until date. Workspace admins manage branding, payment settings and the webhook secret. Other team members can view.
A note on WhatsApp rules
Lime API is not affiliated with WhatsApp or Meta. Your customers connect their own numbers, and WhatsApp may block numbers that send spam. Lime includes sending protection (random delays, limits, sending windows) to reduce that risk, and we wrote a practical guide to avoiding blocks you can share with your users.
Become a partner
The partner program is not self-serve. We set up each partner with you, including the payment model and commission rate.
- Contact us to become a partner and tell us about your platform and customers.
- Create a Lime account for your company if you do not have one yet.
- Once your workspace is activated as a partner, generate your partner token, set your branding, and try the preview.
The technical part is two calls: one on your server, one on your page. Contact us and we will help you plan the rest.