Skip to Content
Public APISend Text Message

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://apis.splashifypro.com/api/v1/public/message

Headers

HeaderValue
AuthorizationBasic YOUR_API_KEY
Content-Typeapplication/json

Request body

{ "fullPhoneNumber": "919876543210", "callbackData": "order_12345", "type": "Text", "data": { "message": "This msg is sent via API" } }
FieldRequiredNotes
fullPhoneNumberone of fullPhoneNumber OR phoneNumber + countryCodeE.164 without + (e.g. 919876543210)
phoneNumberalternative to fullPhoneNumberPhone without country code, no leading 0
countryCoderequired when using phoneNumberE.164 country code with + (e.g. +91)
callbackDataoptionalUp to 512 chars — echoed in the delivery webhooks for correlation
typeyesMust be "Text"
data.messageyesThe text body. Supports WhatsApp formatting: *bold*, _italic_, ~strike~, ```code``` “

Example

curl -X POST https://apis.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

{ "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

{ "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.