Aller au contenu principal

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/Texte
  • call - Appel vocal
  • whatsapp_audio - Message vocal WhatsApp
  • whatsapp_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

Prochaines Étapes​