Send newsletter admin invitation
Method#
/send-newsletter-admin-invite#
POST https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/send-newsletter-admin-invite
Header#
| Key | Value | 
|---|---|
| Client-Token | ACCOUNT SECURITY TOKEN | 
Concept#
In this method, you can send messages inviting people to become administrators of your newsletter on WhatsApp.

Attributes#
Mandatory#
| Attributes | 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#
200#
| Attributes | 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
405#
In 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.
415#
If 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 Response#
Link to the webhook response (upon receipt)