Communications
Send AI-powered messages via multiple channels.
Endpoint​
POST https://admin.yodi.tg/api/ai/{contactMethod}/communication
Contact Methods​
sms- SMS/Text messagecall- Voice callwhatsapp_audio- WhatsApp voice messagewhatsapp_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