Français
cURL
curl --request GET \ --url https://api.wachap.com/v1/contact-groups/{id}/campaigns \ --header 'Authorization: Bearer <token>'
Récupérez toutes les campagnes utilisant une liste de contacts spécifique
Bearer sk_...
curl -X GET https://api.wachap.com/v1/contact-groups/65f1234567890abcdef12345/campaigns \ -H "Authorization: Bearer VOTRE_CLE_SECRETE"
{ "success": true, "listId": "65f1234567890abcdef12345", "total": 2, "campaigns": [ { "$id": "campaign_abc123", "name": "Campagne Promotionnelle Mars", "status": "completed", "sent": 148, "failed": 2 } ] }
401
404
500
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK