Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
clientName
string

Name of the client being invited.

Maximum string length: 100
Example:

"Acme Corp"

clientEmail
string<email>

Email of the client being invited.

Example:

"contact@acme.com"

clientPhone
string

Phone number of the client in E.164 format.

Example:

"+14155551234"

phoneNumberId
string

ID of a Zavu phone number to pre-assign for WhatsApp registration. If provided, the client will use this number instead of their own. Only valid when connectionType is whatsapp_waba — sending it with messenger returns 400, since a Facebook Page has no phone number.

Example:

"pn_abc123"

expiresInDays
integer
default:7

Number of days until the invitation expires.

Required range: 1 <= x <= 30
allowedPhoneCountries
string[]

ISO country codes for allowed phone numbers. Only valid when connectionType is whatsapp_waba — sending it with messenger returns 400.

Required string length: 2
Example:
connectionType
enum<string>
default:whatsapp_waba

Which Meta channel the client connects, and how.

  • whatsapp_waba (default): Meta's embedded signup links an official WhatsApp Business Account. Accepts phoneNumberId and allowedPhoneCountries.
  • messenger: the client authorizes with Facebook and picks a Facebook Page they administer. The Page's Messenger inbox — including Marketplace chats — is routed to Zavu. They must be an admin of at least one Page. A 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.

One invitation connects one channel. To onboard a client on several channels, create one invitation per channel; each completes into its own sender.

Available options:
whatsapp_waba,
messenger

Response

Invitation created.

invitation
object
required