Overview
The Partner Invitations API allows you to:- Create invitation links programmatically
- Onboard a client on WhatsApp (
whatsapp_waba) or Messenger (messenger) - Integrate client onboarding into your own application
- Optionally pre-assign phone numbers to WhatsApp invitations
- Track invitation status and completion
Choosing a channel
connectionType decides what the client connects. It defaults to whatsapp_waba, so existing integrations keep working unchanged.
One invitation connects one channel. To onboard a client on both, create two invitations; each completes into its own sender.
Creating an Invitation
Basic Invitation
Create an invitation where the client provides their own phone number:Response
With Pre-assigned Phone Number
Pre-assign a Zavu phone number that the client will register with WhatsApp:When you pre-assign a phone number, the invitation page will show the number and automatically display the verification code when it’s received via phone call.
Messenger Invitation
Create an invitation for a Facebook Page. There is no phone number involved, so the WhatsApp-only options are rejected with400.
A Facebook Page can only be connected to one Zavu project at a time. If the client picks a Page that another project already connected, the newer connection wins and the older one is disconnected.
Create Parameters
Listing Invitations
Retrieve all invitations for your project:List Parameters
Getting Invitation Details
Retrieve details for a specific invitation:Response Fields
Cancelling an Invitation
Cancel an invitation to prevent it from being used:You cannot cancel a completed invitation. Once a sender is created, manage it through the Senders API instead.
Invitation Lifecycle
Afailed invitation is not dead: the link stays usable and moves back to in_progress when the client tries again. failureReason carries a stable code — fb_cancelled, fb_not_authorized, signup_abandoned, meta_no_pages (the client administers no Facebook Page), and others. Treat unknown codes as a generic failure.
Integration Examples
SaaS Onboarding Flow
Integrate WhatsApp setup into your SaaS onboarding:Polling for Completion
Check if a client has completed the setup:Webhook Integration
Set up a webhook to be notified when invitations are completed:Error Handling
Common Errors
Best Practices
Store Invitation IDs
Save the invitation ID in your database to track status and link to your customer records.
Set Reminders
If an invitation is pending for several days, send a reminder to your client.
Handle Expiration
Monitor for expired invitations and automatically create new ones if needed.
Use Webhooks
Set up webhooks to get real-time notifications when senders are created.
Rate Limits
The Invitations API has the following rate limits:Next Steps
Dashboard Guide
Learn to create invitations from the dashboard
Senders API
Work with senders created from invitations
Send WhatsApp Messages
Start sending messages through your new senders
Phone Numbers
Purchase phone numbers to pre-assign to invitations
