Create invitation
Changed onCreate a partner invitation link for a client to connect a Meta channel. The client opens the returned url and authorizes with Meta; the resulting sender is created in your project when they finish, and the invitation transitions to completed.
connectionType picks the channel:
- whatsapp_waba (default): Meta's embedded signup links an official WhatsApp Business Account.
- messenger: the client picks a Facebook Page they administer; its Messenger inbox (including Marketplace chats) is routed to Zavu.
One invitation connects one channel — create one per channel to onboard a client on several. phoneNumberId and allowedPhoneCountries apply to whatsapp_waba only.
Request
- Base URLhttps://api.zavu.dev
- URLhttps://api.zavu.dev/v1/invitations
- AuthHTTP bearer
Request body
Example request
{
"clientName": "Acme Corp",
"clientEmail": "contact@acme.com",
"clientPhone": "+14155551234",
"phoneNumberId": "pn_abc123",
"allowedPhoneCountries": [
"US",
"MX"
]
}Response
Invitation created.
Example response
{
"invitation": {
"id": "inv_abc123",
"url": "https://dashboard.zavu.dev/invite/abc123xyz"
}
}Changes
- warning
added the new
failedenum value to the/response property for the response status - warning
added the new
messengerenum value to the/response property for the response status - info
added the new
messengerenum value to the request property - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- warning
- breaking
removed the enum value
whatsapp_altof the request property - info
removed the
whatsapp_altenum value from the/response property for the response status
- breaking