Group invitation message
POST
/Documentation Group invitation incoming message
To receive this type of notification, you must enable the "incomingWebhook" setting: "yes" in your personal account or using the SetSettings method
Request
Body Params application/json
typeWebhook
string
required
instanceData
object
required
idInstance
integer
required
wid
string
required
typeInstance
string
required
timestamp
integer
required
idMessage
string
required
senderData
object
required
chatId
string
required
chatName
string
required
sender
string
required
senderName
string
required
senderContactName
string
required
messageData
object
required
typeMessage
string
required
groupInviteMessageData
object
required
Example
{
"typeWebhook": "incomingMessageReceived",
"instanceData": {
"idInstance": 1101000001,
"wid": "71231234567@c.us",
"typeInstance": "whatsapp"
},
"timestamp": 1705896948,
"idMessage": "8C62934E3081DFAA260878818B922DA4",
"senderData": {
"chatId": "71234567890@c.us",
"chatName": "Green API",
"sender": "71234567890@c.us",
"senderName": "Green API",
"senderContactName": "Green API inContacts"
},
"messageData": {
"typeMessage": "groupInviteMessage",
"groupInviteMessageData": {
"groupJid": "120363207042056874@g.us",
"inviteCode": "ceUpGy2XACDmR4HQ",
"inviteExpiration": {
"low": 1706156142,
"high": 0,
"unsigned": false
},
"groupName": "Drawing school",
"caption": "Invitation to my WhatsApp group",
"jpegThumbnail": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BthDJFFGML/9k="
}
}
}
Request samples
Responses
Group invitation message in the journal(200)
Group invitation message in the journal
HTTP Code: 200
Content Type : Rawtext/plain
Example
Not configured
Last modified: 19 days ago