Français
cURL
curl --request POST \ --url https://api.wachap.com/v1/whatsapp/groups \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "accountId": "<string>", "groupName": "<string>", "participants": [ "<string>" ] } '
Créez un nouveau groupe WhatsApp avec des participants
Bearer sk_...
curl -X POST https://api.wachap.com/v1/whatsapp/groups \ -H "Content-Type: application/json" \ -H "Authorization: Bearer VOTRE_CLE_SECRETE" \ -d '{ "accountId": "account_xxx", "groupName": "Mon Nouveau Groupe", "participants": ["+33612345678", "+22962861571"] }'
{ "success": true, "message": "Groupe créé avec succès", "group": { "jid": "[email protected]", "name": "Mon Nouveau Groupe", "owner": "[email protected]", "creation": 1702000000, "participants": [ "[email protected]", "[email protected]" ] } }
400
401
404
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK