Groups
Endpoints for managing WhatsApp groups
Retrieve list of active groups for a business phone number with pagination support.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Number of groups to fetch (1-1024, default 25)
Cursor for pagination
Cursor for pagination
Groups retrieved successfully
Response payload containing a paginated list of active groups
Unauthorized
Internal server error
GET /groups HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": {
"groups": [
{
"created_at": 1678900000,
"id": "1234567890",
"subject": "My Group"
}
]
},
"paging": {
"cursors": {
"after": "def456",
"before": "abc123"
},
"next": "https://graph.facebook.com/VERSION/PHONE_NUMBER_ID/groups?limit=25&after=MTAxNTExOTQ1MjAwNzI5NDE=",
"previous": "https://graph.facebook.com/VERSION/PHONE_NUMBER_ID/groups?limit=10&before=NDMyNzQyODI3OTQw"
}
}Create a new WhatsApp group with specified subject, description, and join approval mode.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Group creation payload
A group for friendsapproval_requiredwhatsappMy GroupGroup created successfully
Response payload for a successfully created group
1234567890Bad request
Unauthorized
Internal server error
POST /groups HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 130
{
"description": "A group for friends",
"join_approval_mode": "approval_required",
"messaging_product": "whatsapp",
"subject": "My Group"
}{
"id": "1234567890"
}Retrieve detailed metadata about a specific group including participants and settings.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Group ID
Comma-separated list of fields to return. Available fields: https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/reference#available-fields
Group information retrieved successfully
Response payload containing detailed group metadata
16789000001234567890approval_requiredwhatsappMy Groupfalse10Bad request
Unauthorized
Group not found
GET /groups/{group_id} HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"creation_timestamp": 1678900000,
"description": "text",
"id": "1234567890",
"join_approval_mode": "approval_required",
"messaging_product": "whatsapp",
"participants": [
{
"wa_id": "1234567890"
}
],
"subject": "My Group",
"suspended": false,
"total_participant_count": 10
}Update group subject, description, and profile picture.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Group ID
Update group settings payload
Join our community to discuss the latest timepieces.whatsapp/local/path/file.jpgWatch EnthusiastsGroup updated successfully
Response payload for a successful group update
trueBad request
Unauthorized
Group not found
POST /groups/{group_id} HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 177
{
"description": "Join our community to discuss the latest timepieces.",
"messaging_product": "whatsapp",
"profile_picture_file": "/local/path/file.jpg",
"subject": "Watch Enthusiasts"
}{
"success": true
}Delete the group and remove all participants permanently.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Group ID
Group deleted successfully
Response payload for successful group deletion
trueBad request
Unauthorized
Group not found
DELETE /groups/{group_id} HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"success": true
}Retrieve the current invite link for a group that allows users to join.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Group ID
Invite link retrieved successfully
Response payload containing the group invite link
https://chat.whatsapp.com/abc123whatsappBad request
Unauthorized
Group not found
GET /groups/{group_id}/invite_link HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"invite_link": "https://chat.whatsapp.com/abc123",
"messaging_product": "whatsapp"
}Reset the invite link for a group, invalidating previous links.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Group ID
Request body
whatsappInvite link reset successfully
Response payload containing the new group invite link
https://chat.whatsapp.com/xyz789whatsappBad request
Unauthorized
Group not found
POST /groups/{group_id}/invite_link HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"messaging_product": "whatsapp"
}{
"invite_link": "https://chat.whatsapp.com/xyz789",
"messaging_product": "whatsapp"
}Retrieve list of pending join requests for a group requiring approval.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Group ID
Join requests retrieved successfully
Response payload containing pending group join requests
Bad request
Unauthorized
Group not found
GET /groups/{group_id}/join_requests HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": [
{
"creation_timestamp": 1755548877,
"join_request_id": "1234567890",
"wa_id": "1234567890"
}
],
"paging": {
"cursors": {
"after": "def456",
"before": "abc123"
},
"next": "https://graph.facebook.com/VERSION/PHONE_NUMBER_ID/groups?limit=25&after=MTAxNTExOTQ1MjAwNzI5NDE=",
"previous": "https://graph.facebook.com/VERSION/PHONE_NUMBER_ID/groups?limit=10&before=NDMyNzQyODI3OTQw"
}
}Approve one or more pending join requests for a group.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Group ID
Join request approval payload
whatsappJoin requests approved successfully
Response payload for join request approval/rejection
whatsappBad request
Unauthorized
Group not found
POST /groups/{group_id}/join_requests HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"join_requests": [
"text"
],
"messaging_product": "whatsapp"
}{
"approved_join_requests": [
"text"
],
"errors": [
{
"code": 131203,
"error_data": {
"details": "Recipient has not accepted our new Terms of Service and Privacy Policy."
},
"message": "(#131203) Recipient has not accepted our new Terms of Service and Privacy Policy.",
"title": "Unable to add participant to group"
}
],
"failed_join_requests": [
{
"errors": [
{
"code": 131203,
"error_data": {
"details": "Recipient has not accepted our new Terms of Service and Privacy Policy."
},
"message": "(#131203) Recipient has not accepted our new Terms of Service and Privacy Policy.",
"title": "Unable to add participant to group"
}
],
"join_request_id": "1234567890"
}
],
"messaging_product": "whatsapp",
"rejected_join_requests": [
"text"
]
}Reject one or more pending join requests for a group.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Group ID
Join request rejection payload
whatsappJoin requests rejected successfully
Response payload for join request approval/rejection
whatsappBad request
Unauthorized
Group not found
DELETE /groups/{group_id}/join_requests HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"join_requests": [
"text"
],
"messaging_product": "whatsapp"
}{
"approved_join_requests": [
"text"
],
"errors": [
{
"code": 131203,
"error_data": {
"details": "Recipient has not accepted our new Terms of Service and Privacy Policy."
},
"message": "(#131203) Recipient has not accepted our new Terms of Service and Privacy Policy.",
"title": "Unable to add participant to group"
}
],
"failed_join_requests": [
{
"errors": [
{
"code": 131203,
"error_data": {
"details": "Recipient has not accepted our new Terms of Service and Privacy Policy."
},
"message": "(#131203) Recipient has not accepted our new Terms of Service and Privacy Policy.",
"title": "Unable to add participant to group"
}
],
"join_request_id": "1234567890"
}
],
"messaging_product": "whatsapp",
"rejected_join_requests": [
"text"
]
}Remove one or more participants from a group.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Group ID
Request body
whatsappParticipants removed successfully
Response payload for successful participant removal
trueBad request
Unauthorized
Group not found
DELETE /groups/{group_id}/participants HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"messaging_product": "whatsapp",
"participants": [
{
"user": "1234567890"
}
]
}{
"success": true
}Last updated
Was this helpful?