Group Metadata by invite
#
Method#
/group-invitation-metadataGET
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/group-invitation-metadata?url={ URL }
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis 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#
200Attributes | 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
#
405In 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.
#
415In 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”