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 token" \ -d '{ "accountId": "a1233b-a1233b-a1233b-a1233b-a1233bcdjdg9878", "groupName": "Mon Nouveau Groupe", "participants": ["+33612345678", "+2290112345678"] }'
{ "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