Français
cURL
curl --request POST \ --url https://api.wachap.com/v1/whatsapp/groups/list \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "accountId": "<string>" } '
Récupérez tous les groupes WhatsApp d’un compte
Bearer sk_...
curl -X POST https://api.wachap.com/v1/whatsapp/groups/list \ -H "Content-Type: application/json" \ -H "Authorization: Bearer VOTRE_CLE_SECRETE" \ -d '{ "accountId": "account_xxx" }'
{ "success": true, "total": 5, "groups": [ { "jid": "[email protected]", "name": "Mon Groupe", "owner": "[email protected]", "participantsCount": 15 } ] }
400
401
404
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK