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.

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.

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

How the client connects WhatsApp. whatsapp_waba (default) runs Meta's embedded signup to link an official WhatsApp Business Account. whatsapp_alt links the number by scanning a QR code — available only to teams with the WhatsApp Alternative feature enabled.

Available options:
whatsapp_waba,
whatsapp_alt

Response

Invitation created.

invitation
object
required