Skip to main content

Accept group invite

Method#

/accept-invite-group?url={{INVITATION_URL}}#

GET https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/accept-invite-group?url={{INVITATION_URL}}

Header#

KeyValue
Client-TokenACCOUNT SECURITY TOKEN

Concept#

This method is responsible for accepting an invitation you received to join a group.


Attributes#

Required#

AttributesTypeDescription
urlstringInvitation URL of the group. Could be received on (this webhook)

URL#

GET https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/accept-invite-group?url=https://chat.whatsapp.com/bh8XyNrIUj84YZoy5xcaa112


Response#

200#

AttributesTypeDescription
successbooleantrue if successful, false otherwise

Example

{
"success": true
}

405#

Make sure you are correctly sending the method specification, i.e., check if you sent the 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 in the request headers, mostly "application/json".


Webhook Response#

Link to the webhook response (upon receiving) invitation message

Webhook


Code#