Communications
Envoyez des messages IA via plusieurs canaux.
Endpointâ
POST https://admin.yodi.tg/api/ai/{contactMethod}/communication
MĂ©thodes de Contactâ
sms- Message SMS/Textecall- Appel vocalwhatsapp_audio- Message vocal WhatsAppwhatsapp_sms- Message texte WhatsApp
Exemple de RequĂȘteâ
curl -X POST "https://admin.yodi.tg/api/ai/sms/communication" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone": "+22890123456",
"input": "Your appointment is tomorrow at 10am"
}'
Exemple de RĂ©ponseâ
{
"message": "CALL_SENT_SUCCESS",
"error": false,
"data": {
"success": true,
"messageId": "msg_abc123"
},
"status": 200
}
Cas d'Usageâ
- Emails transactionnels
- Notifications SMS
- Notifications push
- Messages marketing