Send Text Message
Send a free-form text message to a customer. Free-form messages can only be sent inside the 24-hour customer service window — i.e. the customer must have messaged your WABA at least once in the past 24 hours. If the window is closed, use a template message instead.
Endpoint
POST
https://api.splashifypro.com/api/v1/public/message
Headers
Request body
json
{
"fullPhoneNumber": "919876543210",
"callbackData": "order_12345",
"type": "Text",
"data": {
"message": "This msg is sent via API"
}
}Example
bash
curl -X POST https://api.splashifypro.com/api/v1/public/message \
-H "Authorization: Basic YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fullPhoneNumber": "919876543210",
"callbackData": "some_callback_data",
"type": "Text",
"data": { "message": "This msg is sent via API" }
}'Successful response — 201 Created
json
{
"result": true,
"message": "Message queued for sending via Splashify Pro. Check webhook for delivery status",
"id": "d58aeff7-a81c-47a7-9b67-f381e13f6c4e"
}The id is your Splashify message id — use it to correlate with message.sent, message.delivered, message.read, message.failed webhooks.
Error — 400 Bad Request
json
{
"result": false,
"message": "Please correct the following error - Customer has not messaged within last 24 hours"
}When the 24-hour window has expired, switch to a template send. The error message names the exact reason — log it on your side for debugging.