Skip to main content
Partner invitations allow you to generate links that your clients can use to connect a Meta channel to your project. When a client completes the flow, a new sender is automatically created in your project.

Channels

connectionType picks what the client connects. One invitation connects one channel; create one invitation per channel to onboard a client on several.
A Facebook Page can only be connected to one Zavu project at a time. If your client picks a Page that another project already connected, the newer connection wins and the older one is disconnected.

Phone Number Options

These apply to whatsapp_waba only. A Facebook Page has no phone number, so sending phoneNumberId or allowedPhoneCountries with connectionType: "messenger" returns 400.
  1. Client provides their own number: The client uses their existing phone number to register for WhatsApp Business
  2. Pre-assign a Zavu number: You purchase a phone number from Zavu and assign it to the invitation. The client registers this number under their WhatsApp Business Account

Use Cases

  • Agencies: Onboard client WhatsApp accounts without accessing their Facebook credentials
  • SaaS platforms: Let customers self-service WhatsApp setup
  • Resellers: Manage multiple client WhatsApp accounts under one project
  • Managed services: Provision phone numbers and let clients complete the WhatsApp verification

How It Works

Create an Invitation

Client provides their own number

Pre-assign a Zavu phone number

First, purchase a phone number from Zavu, then create the invitation with the phoneNumberId:
When a phone number is pre-assigned, the client will see the number on the invitation page and use it during the WhatsApp registration. The verification code will be received via phone call to that number.

Connect a Facebook Page (Messenger)

The client authorizes with Facebook, picks a Page they administer, and the resulting sender lands in your project with the Messenger channel enabled.

Response

Share the url with your client. They complete Meta’s authorization to connect the channel. Once done, status is completed, senderId points at the new sender, and connectedAccount reports what was linked: the WhatsApp number or the Facebook Page.

Invitation Lifecycle

List Invitations

Filter by status:

Get Invitation Details

Cancel an Invitation

Cancel an active invitation to prevent the client from using it:
You cannot cancel a completed invitation. Once a sender is created, you can delete it through the senders API.

After Completion

When a client completes the signup flow:
  1. A new sender is created in your project with WhatsApp enabled
  2. The sender’s phone number is the client’s registered WhatsApp number
  3. The invitation status changes to completed
  4. The senderId field contains the ID of the created sender
You can then use this sender to send WhatsApp messages on behalf of your client:

SDK Examples

Best Practices

  1. Set appropriate expiration: Use shorter expirations (3-7 days) for urgent onboarding
  2. Track client info: Include clientName and clientEmail for easier management
  3. Monitor status: Check for expired or cancelled invitations and resend if needed
  4. Webhooks: Configure webhooks on the resulting sender to receive inbound messages