Cancel invitation
Cancel an active invitation. The client will no longer be able to use the invitation link.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
invitationIdstringrequired
Responses
200Invitation cancelled.
invitationobjectrequired19 properties
idstringrequiredurlstringrequiredFull URL to share with the client.
tokenstringrequiredUnique invitation token.
clientNamestringclientEmailstringclientPhonestringphoneNumberIdstringID of a pre-assigned Zavu phone number for WhatsApp registration. Always null for
messengerinvitations.connectionTypestringWhich Meta channel the client connects:
whatsapp_waba(official WhatsApp Cloud API via embedded signup) ormessenger(a Facebook Page's Messenger inbox, including Marketplace chats).One ofwhatsapp_wabamessengerstatusstringrequiredCurrent status of the partner invitation.
failedmeans the client started the connection and it did not finish (they cancelled Meta's dialog, denied a permission, or abandoned the tab). A failed invitation is still usable: the same link can be retried, and it moves back toin_progresswhen the client tries again.One ofpendingin_progresscompletedexpiredcancelledfailedsenderIdstringID of the sender created when invitation is completed.
connectedAccountobjectThe account the client linked, populated once the invitation is
completed. Null before that. Use it to show the partner what was connected without fetching the sender.3 properties
channelstringrequiredOne ofwhatsappmessengeridstringrequiredProvider-side identifier: the WhatsApp phone number ID, or the Facebook Page ID.
namestringDisplay name of the connected account: the WhatsApp verified name, or the Facebook Page name.
failureReasonstringStable code for why the last attempt failed, present when
statusisfailed. Values includefb_cancelled(client closed Meta's dialog),fb_not_authorized(permission denied),signup_abandoned(started but never finished),meta_no_pages(the client administers no Facebook Page), andinternal_error. Treat unknown codes as a generic failure.failedAtstring<date-time>expiresAtstring<date-time>requiredviewedAtstring<date-time>startedAtstring<date-time>completedAtstring<date-time>createdAtstring<date-time>requiredupdatedAtstring<date-time>required
400Cannot cancel this invitation (already completed or cancelled).
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Invitation not found.
codestringrequiredmessagestringrequireddetailsobject