Onboard customers with a WhatsApp connect link
How a connect link lets customers authorize their own WhatsApp number in your SaaS: flow, expiry, states, failure handling and what to store afterwards.
Every product that sells WhatsApp capability to other businesses faces the same step: getting a customer's number connected without asking for their Meta password and without a support call. A connect link solves it. The customer opens a URL, authorises the number with Meta and returns to a success state, while the product receives the identifiers it needs. This article walks through the flow, the states to model and the failure paths worth handling.
What is a connect link and why use one?
A connect link is a single-use, expiring URL that sends the customer through Meta's authorisation flow for their own WhatsApp number. It exists so that the customer proves ownership directly to Meta, and your platform never handles their Meta login or password.
The underlying mechanism on Meta's side is Embedded Signup. Meta describes it as an authorisation interface that collects business information, generates the WhatsApp assets the platform needs and grants your app access to them. Customers onboarded this way own all their WhatsApp assets and keep full access through WhatsApp Manager, and the provider cannot restrict that access. That ownership is a feature for the customer and a boundary for you: you operate the connection, you do not own the account. Meta also notes that Embedded Signup versions 2 and 3 were deprecated on October 15, 2026, and version 5 followed on October 20, so any in-house implementation should target version 4 or later.
What does the end-to-end flow look like?
The flow has five steps: create a channel, generate a link, send it to the customer, let the customer authorise with Meta, then confirm the channel is active. Only the third step needs a human on your side, and even that can be automated by email or in-app messaging.
- Create the channel in your provider account; it starts in a draft state with no number attached.
- Generate a connect link for that channel and show it to the customer in your onboarding screen.
- The customer opens the link, signs in with the company's Meta account and picks the number.
- If the number is not yet registered on the Cloud API, the flow asks for a PIN at the end; with several numbers, it asks which one to use.
- Your webhook or polling confirms the channel is connected, and the onboarding screen flips to done.
With CRPRO Hub the endpoint is POST /api/v1/channels/{id}/connect-link, authenticated with a key that holds channels:write. The response carries connect_token, expires_at and connect_url. The link is valid for 7 days, and each call produces a new token that invalidates any earlier link that was not yet used, so a link cannot be recovered, only replaced. The quickstart shows how to authenticate the first call.
curl -X POST https://crprohub.com/api/v1/channels/CHANNEL_UUID/connect-link \
-H "Authorization: Bearer $HUB_API_KEY"
# {
# "data": {
# "connect_token": "hub_link_...",
# "expires_at": "2026-11-07T12:00:00.000Z",
# "connect_url": "https://crprohub.com/connect/hub_link_..."
# }
# }Which states should the onboarding model track?
Model at least five states: not started, link issued, authorising, registration pending and connected, plus an explicit expired state. Each state tells support exactly what to do next, and missing states are why teams end up asking customers to start over.
| State | Meaning | Next action |
|---|---|---|
| Link issued | A link exists and has not been opened | Remind the customer before the expiry; offer to issue a new link |
| Authorising | The customer has started the Meta flow | Wait; do not issue another link, which would invalidate the open one |
| Registration pending | The number is linked but not yet registered on the Cloud API | Resume registration without repeating the Meta authorisation |
| Connected | The channel is active and can send | Register webhooks, sync templates, run a test send |
| Expired | The 7-day window passed | Issue a fresh link and tell the customer the old one is dead |
Registration pending deserves attention. On the Hub, when the customer exhausts the PIN attempts or skips the PIN, the link between the number and the channel is saved anyway and the registration can be resumed without redoing the Meta authorisation. Designing the UI around that state avoids a frustrating loop.
What can go wrong and how should it be handled?
The common failures are an expired link, the wrong person opening it, a number already connected elsewhere and rate-limited retries. All of them are recoverable if the product explains what happened in plain language rather than showing a raw error.
- Expired link: issue a new one; never extend the old one in your own database.
- Wrong person: the person opening the link needs admin access to the company's Meta account; say so in the email that carries the link.
- Number already connected to another channel: the Hub answers 409 PHONE_ALREADY_CONNECTED; ask whether the number was connected before and disconnect that channel first.
- Repeated attempts: public link resolution is limited to 20 requests per IP and link every 15 minutes and completion to 15, so show a calm "try again shortly" message rather than retrying in a loop.
- Customer abandons at the PIN step: on the Hub nothing is saved on the channel and the link stays unused, so the same link keeps working until it expires.
Meta also has requirements of its own. A new business portfolio can register only two phone numbers until it is verified or reaches a messaging limit of 2,000, so a customer connecting a third line to a fresh portfolio hits a ceiling that no link can fix. Mention verification in the pre-onboarding email for customers who plan several numbers.
What should happen right after the customer connects?
Run a short post-connect checklist automatically: confirm the channel is active, register the customer's webhook endpoint, run a diagnostics check and send a test message to an internal number. A connected state that was never exercised is the source of most first-week support tickets.
- Call the channel diagnostics endpoint, which validates the token, the number and the webhook subscription against Meta without exposing secrets.
- Register or confirm the webhook endpoint and verify the signature with the test delivery; see the webhooks reference.
- Sync templates so the customer sees what can be sent outside the 24-hour window.
- Record the connection timestamp, the channel id and the number in your tenant record.
- Remind the customer that a payment method must be on file with Meta for their account; Tech Providers cannot extend a credit line, and the customer is billed by Meta directly.
That last item is documented in Meta's provider overview: Tech Providers have no credit line, so clients add their own payment method and Meta bills them for API usage. Surface it during onboarding rather than at the first failed send. If the customer's number is already used in the WhatsApp Business app, read about coexistence, which allows the same number in both places with its own limits.
How should the link itself be protected?
Treat the link as a bearer credential: send it only to the verified customer contact, never log it in full, and never put it in analytics events. Whoever holds an unused link can start the authorisation flow.
The Hub protects the public resolve and complete routes with a single-use, time-limited token and no other credential, and it rate-limits both routes. On your side, avoid pasting the link into shared chat channels, mask it in application logs and consider showing it only inside an authenticated onboarding screen. If a link is exposed, issue a new one: that invalidates the old token immediately.
Frequently asked questions
How long is a connect link valid?
On CRPRO Hub a link expires after 7 days, and generating a new link invalidates any earlier link that has not been used yet.
Does the customer need an account in my product?
The customer needs admin access to their company's Meta account to authorise the number. Whether they also need an account in your product is your own design decision; the link itself does not require one.
Who owns the WhatsApp account after onboarding?
The customer. Meta states that customers onboarded through Embedded Signup own their WhatsApp assets and keep full access in WhatsApp Manager, which the provider cannot restrict.
What if the number is already in the WhatsApp Business app?
Read about coexistence, which lets the same number run in the app and on the API, with throughput fixed at 20 messages per second. See /en/whatsapp-coexistence for the details.
Fontes
Documentação oficial da Meta, conferida em 31 de outubro de 2026.