Documentation / API Whatixo
Statuts et session
Publier un statut
POSThttps://api.whatixo.com/api/whatsapp/status/publish
Publie un statut (« story ») visible 24 heures. Il est diffusé à votre numéro et aux contacts de votre CRM Whatixo.
| Champ | Type | Description |
|---|---|---|
deviceIdrequis | string | Numéro qui publie. |
textoptionnel* | string | Texte du statut, ou légende du média. |
mediaUrloptionnel* | string | Image ou vidéo (.mp4) en https://. |
backgroundColoroptionnel | string | Couleur de fond d’un statut texte, ex. #00D084 (par défaut). |
fontoptionnel | integer | Police du statut texte (1 à 5). |
* text ou mediaUrl est obligatoire.
curl -X POST https://api.whatixo.com/api/whatsapp/status/publish \
-H "x-api-key: $WHATIXO_API_KEY" -H "Content-Type: application/json" \
-d '{"deviceId":"8f2c1a7e-4b9d-4e21-9a6f-3c5d7e1b2a90","text":"🔥 Arrivage de nouveautés ce matin !","backgroundColor":"#0f172a","font":2}'curl -X POST https://api.whatixo.com/api/whatsapp/status/publish \
-H "x-api-key: $WHATIXO_API_KEY" -H "Content-Type: application/json" \
-d '{"deviceId":"8f2c1a7e-4b9d-4e21-9a6f-3c5d7e1b2a90","mediaUrl":"https://boutique-gombe.cd/img/promo.jpg","text":"-30 % ce week-end"}'Réponse 200JSON
{ "success": true, "message": "Statut texte publié avec succès !", "audienceCount": 841 }
audienceCount : nombre de destinataires du statut (vous + vos contacts).
Seuls les contacts qui ont votre numéro enregistré dans leur téléphone voient vos statuts : c’est une règle de WhatsApp.
Déconnecter un numéro
POSThttps://api.whatixo.com/api/whatsapp/accounts/logout
Ferme la session WhatsApp du numéro (équivaut à retirer l’appareil lié depuis le téléphone). Il faudra rescanner un QR code dans l’application pour le reconnecter.
RequêteJSON
{ "deviceId": "8f2c1a7e-4b9d-4e21-9a6f-3c5d7e1b2a90" }
Réponse 200JSON
{ "success": true, "message": "Appareil déconnecté avec succès." }
404 si le numéro est inconnu ou déjà déconnecté.
Cette action est irréversible depuis l’API : réservez-la à des cas précis (départ d’un employé, téléphone perdu).
Une question ? Écrivez-nous depuis l’application (Aide & support) ou à support@whatixo.com.Mis à jour : novembre 2026