Skip to main content
POST
/
api
/
{session}
/
groups
/
refresh
Update groups from server
curl --request POST \
  --url https://{host}/api/{session}/groups/refresh \
  --header 'apikey: <api-key>'
{
  "success": true,
  "message": "Groups updated successfully",
  "count": 15
}

Description

This endpoint forces the synchronization/update of groups with the WhatsApp server, ensuring you have the most recent information.

URL Parameters

session
string
required
WhatsApp unique session ID

Response

{
  "success": true,
  "message": "Groups updated successfully",
  "count": 15
}

Status Codes

  • 200 - Update performed successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized

Usage Example

curl -X POST https://api.wappfy.com.br/api/my-session/groups/refresh

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

session
string
required

Session name (instanceName)

I