Get Common Groups with Contact
Supported & TestedReturn WhatsApp groups shared between the connected account and a contact.
POSThttps://api.waplix.io/api/v1/contacts/common-groups
Authentication
Authorization: Bearer YOUR_API_KEY Parameters Specification
| Parameter | Type | Required | Description |
|---|---|---|---|
| instance_id | string | Required | Required Waplix instance id |
| contact_id | string | Required | Required phone number or contact id |
instance_id
stringReq Required Waplix instance id
contact_id
stringReq Required phone number or contact id
Usage Notes
Returns WhatsApp groups shared between the connected account and the contact. An empty groups array with count 0 is valid when no shared groups exist.
Request Payload Example
Request
curl -X POST "https://api.waplix.io/api/v1/api/v1/contacts/common-groups" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"instance_id": "demo_instance",
"contact_id": "15551234567"
}'Success Response
Response · 200 OK
{
"success": true,
"data": {
"instance_id": "demo_instance",
"contact_id": "15551234567",
"groups": [
{
"group_id": "120363000000000000@g.us",
"subject": "Demo Group",
"participants_count": 25
}
],
"count": 1
}
} Was this page helpful?