Every account has a connection page, protected by a one-time link. That is where you, or your customer, link a WhatsApp Business number.
Getting a link#
- From the portal, a member allowed to connect a number opens the page directly, or generates a link to share (valid for 7 days, one connection).
- From your product, call
POST /connect-linkswith a partner key: the response containsurlandexpiresAt. The link is valid for 60 minutes by default (expiresInMinutes, 10,080 at most) and works once.
An expired, already used or incorrect link shows an error: generate a new one.
The flow#
Hover or click a step to see what it does.
- You open the connection page.
- You sign in with Facebook: this is Meta's official flow, called Embedded Signup.
- You choose or create the WhatsApp Business account, then verify the number by SMS or call.
- The number appears in your portal with the Connected state.
The Meta token is stored encrypted on our side. It is never returned by the API nor shown in the portal.
Tie the connection to your customer#
To link the connection to your own customer identifier, pass externalRef when you create the link:
curl -X POST https://hira.localtechstudio.com/api/v1/connect-links \
-H "Authorization: Bearer pk_live_..." \
-H "Content-Type: application/json" \
-d '{"externalRef": "customer-4821"}'
You then find the connection with GET /connections?externalRef=customer-4821. This is the right way to offer WhatsApp to your own customers inside a product of yours. Redirect your customer to the returned url from your backend, after checking that they are allowed to do it.
Numbers that work#
- A number you control and that can receive an SMS or a call.
- A number already used in the WhatsApp Business app can be kept: see Keep the WhatsApp Business app.
Paying Meta for messages#
Meta bills messages directly to your WhatsApp Business account, not to your subscription with us. After connecting the number, add a payment method in Meta Business Suite (billing settings of the WhatsApp Business account). Meta help: add a card.
Meta mostly accepts bank cards; some local cards are declined — plan for a card that accepts international payments. Prices depend on the country and the message type.
Disconnecting a number#
From the portal (Disconnect on the home page) or via DELETE /connections/{id}, you remove the number from the platform: the token is cleared, the state becomes Disconnected, and the slot on your plan is freed. Messages and contacts stay in the database.
To resume sending, reconnect the same number (or another) through the Embedded Signup flow. Reconnecting the same phone_number_id does not use an extra slot.
After connecting#
The number's quality and its sending tier (how many people you may message in 24 hours) are decided by Meta and visible in the portal. A new number starts low, then goes up while quality stays good.