Skip to main content
GET
/
instances
/
{instanceId}
/
token
/
{token}
/
light-group-metadata
/
{phone}
Group metadata (light)
curl --request GET \
  --url https://api.z-api.io/instances/{instanceId}/token/{token}/light-group-metadata/{phone} \
  --header 'Client-Token: <api-key>'

Overview

This method returns the group metadata with all group information and its participants except for the group invitation link.
The only difference between this method and the Group Metadata is that this one does not return the group invitation link, as obtaining that link can be costly and slightly slow at times. If you need the link, use the Get group invitation link method.

Attributes

instanceId
string
required
Your instance ID. Available in the Z-API panel under Instances.
token
string
required
Your Z-API instance token.

Path

phone
string
required
Group ID/Phone

Response

200

{
  "phone": "120363019502650977-group",
  "description": "Z-API Group",
  "owner": "5511999999999",
  "subject": "My group on Z-API",
  "creation": 1588721491000,
  "invitationLink": null,
  "communityId": null,
  "adminOnlyMessage": false,
  "adminOnlySettings": false,
  "requireAdminApproval": false,
  "isGroupAnnouncement": false,
  "participants": [
    {
      "phone": "5511888888888",
      "isAdmin": false,
      "isSuperAdmin": false
    },
    {
      "phone": "5511777777777",
      "isAdmin": true,
      "isSuperAdmin": false,
      "short": "ZAPIs",
      "name": "ZAPIs Boys"
    }
  ],
  "subjectTime": 1617805323000,
  "subjectOwner": "554497050785"
}

405

Make sure you are correctly sending the method specification, that is, verify that you sent 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” header to your request, which in most cases is “application/json”.