Group Metadata by invite
Method#
/group-invitation-metadata#
GET https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/group-invitation-metadata?url={ URL }
Header#
| Key | Value | 
|---|---|
| Client-Token | ACCOUNT SECURITY TOKEN | 
Concept#
This method returns the group metadata with all information about the group and its participants.
Attention
On November 4, 2021 whatsapp changed the format of creating new groups. before: "phone": "5511999999999-1623281429" now: "phone": "120363019502650977-group"
Response#
200#
| Attributes | Type | Description | 
|---|---|---|
| phone | string | Group ID/phone | 
| owner | string | Group creators number | 
| subject | string | Group’s name | 
| creation | timestamp | Group creation date timestamp | 
| participants | array string | with participant data | 
Array String (participants)
| Atributos | Tipo | Descrição | 
|---|---|---|
| phone | string | Participants phone | 
| isAdmin | string | Indicates if the participant is the group’s admin | 
| isSuperAdmin | string | Indicates whether you are the creator of the group | 
| short | string | Participant’s short name | 
| name | string | Participant’s name | 
Example
405#
In this case certify that you are sending the correct specification of the method. This means, verify if you sent a POST or GET as specified at the beginning of this topic.
415#
In case you receive 415 error, make sure to add the “Content-Type” of the object you are sending in the request headers, mostly “application/json”