Français
cURL
curl --request POST \ --url https://api.wachap.com/v1/whatsapp/contacts/list \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "accountId": "<string>" } '
Récupérez tous les contacts enregistrés dans le store WhatsApp d’un compte
Bearer sk_...
curl -X POST https://api.wachap.com/v1/whatsapp/contacts/list \ -H "Content-Type: application/json" \ -H "Authorization: Bearer VOTRE_CLE_SECRETE" \ -d '{ "accountId": "account_xxx" }'
{ "success": true, "total": 150, "message": "150 contact(s) trouvé(s)", "contacts": [ { "jid": "[email protected]", "phoneNumber": "22962861571", "name": "John Doe", "businessName": "John's Business" }, { "jid": "[email protected]", "phoneNumber": "33612345678", "name": "Marie Dupont" } ] }
400
401
404
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK