+
📤 Testing Outgoing WhatsApp Messages
+
Quick Test: Use these endpoints to send WhatsApp messages immediately:
+
+
+
📱 Send Text Message
+
URL: POST http://localhost:3978/api/test/whatsapp/text
+
Parameters: ?to=447123456789&message=Hello from bot!
+
+curl -X POST "http://localhost:3978/api/test/whatsapp/text?to=447123456789&message=Hello%20World%20from%20Infobip%20Bot"
+
+
+
+
+
🔘 Send Button Message
+
URL: POST http://localhost:3978/api/test/whatsapp/buttons
+
Parameters: ?to=447123456789
+
+curl -X POST "http://localhost:3978/api/test/whatsapp/buttons?to=447123456789"
+
+
+
+
+
⚙️ Check Configuration
+
URL: GET http://localhost:3978/api/test/config
+
Verify your bot configuration and sender settings
+
+curl "http://localhost:3978/api/test/config"
+
+
+
+
+
+
🔗 Available Webhook Endpoints
+
+
+
📋 Main Infobip Webhook Endpoint
+
URL: http://localhost:3978/api/infobip
+
Method: POST
+
Purpose: Unified endpoint for all Infobip channels with automatic channel detection
+
+
+
📱 Channel-Specific Webhook Endpoints
+
+
+
WhatsApp Webhook
+
URL: http://localhost:3978/api/infobip/whatsapp
+
Purpose: Dedicated WhatsApp webhook endpoint
+
+
+
+
SMS Webhook
+
URL: http://localhost:3978/api/infobip/sms
+
Purpose: Dedicated SMS webhook endpoint
+
+
+
+
Viber Webhook
+
URL: http://localhost:3978/api/infobip/viber
+
Purpose: Dedicated Viber webhook endpoint
+
+
+
+
RCS Webhook
+
URL: http://localhost:3978/api/infobip/rcs
+
Purpose: Dedicated RCS webhook endpoint
+
+
+
+
Dynamic Channel Webhook
+
URL: http://localhost:3978/api/infobip/channel/{channelType}
+
Purpose: Dynamic endpoint where {channelType} can be whatsapp, sms, viber, etc.
+
Examples:
+
+ /api/infobip/channel/whatsapp
+ /api/infobip/channel/sms
+ /api/infobip/channel/viber
+
+
+
+
+
🤖 Bot Framework Emulator Endpoint
+
URL: http://localhost:3978/api/messages
+
Method: POST
+
Purpose: Connect with Bot Framework Emulator for local testing
+
+
+
+