Aller au contenu principal

Communications

Send AI-powered messages via multiple channels.

Endpoint​

POST https://admin.yodi.tg/api/ai/{contactMethod}/communication

Contact Methods​

  • sms - SMS/Text message
  • call - Voice call
  • whatsapp_audio - WhatsApp voice message
  • whatsapp_sms - WhatsApp text message

Example Request​

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"
}'

Example Response​

{
"message": "CALL_SENT_SUCCESS",
"error": false,
"data": {
"success": true,
"messageId": "msg_abc123"
},
"status": 200
}

Use Cases​

  • Transactional emails
  • SMS notifications
  • Push notifications
  • Marketing messages

Next Steps​