Send newsletter admin invitation
#
Method#
/send-newsletter-admin-invitePOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/send-newsletter-admin-invite
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptIn this method, you can send messages inviting people to become administrators of your newsletter on WhatsApp.
#
Attributes#
MandatoryAttributes | Type | Description |
---|---|---|
phone | string | Recipient's phone number in the format DDI DDD NUMBER E.g., 551199999999. IMPORTANT Send only numbers, without formatting or mask |
adminInviteMessage | object | Object with the necessary data for sending the invitation message |
Object (adminInviteMessage)
Attributes | Type | Description |
---|---|---|
newsletterId | string | Id of the newsletter to which the invitation belongs. E.g., 999999999999999999@newsletter. |
caption | object | Invitation message text |
#
Request Body#
Response#
200Attributes | Type | Description |
---|---|---|
zaapId | string | id in z-api |
messageId | string | id in WhatsApp |
id | string | Added for compatibility with Zapier, it has the same value as messageId |
Example
#
405In this case, make sure you are correctly sending the method specification, i.e., check if you sent the POST or GET as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" of the object you are sending to the headers of the request, mostly "application/json."
#
Webhook ResponseLink to the webhook response (upon receipt)