Messages
Send a WhatsApp text message
POST
https://api.hello24.in/prod/v1/sendTextMessageSends a plain text WhatsApp message to a recipient.
Text messages can only be sent when there is an active customer service conversation with the recipient. The conversation remains active for 24 hours after the customer's last message.
If no active conversation exists, use the Send Template Message endpoint to initiate a new conversation.
Recipient Number
Provide the recipient's WhatsApp number in international format without spaces or special characters.
Example:
Text
919876543210Response
An HTTP 200 OK response only confirms that Hello24 successfully received your request.
Always inspect the response body:
code = SUCCESSindicates the message was accepted for delivery.code = FAILUREindicates the message could not be sent.
Request
Headers
HELLO24_API_KEYstringrequired- Your Hello24 API key. See Authentication.
Content-Typestringrequiredapplication/json
Body
messageTextstringrequired- Plain text message to send to the recipient.
phonestringrequired- Recipient's WhatsApp number including country code.
Examples
cURL
curl -X POST 'https://api.hello24.in/prod/v1/sendTextMessage' \
-H 'HELLO24_API_KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"messageText": "Hi. I am a plain text message.",
"phone": "919876543210"
}'Responses
200 OK
Message request processed successfully.
Response fields
SendMessageSuccessResponse
codestring (SUCCESS)requireddataobjectrequireddata.contactsarray of Contactrequireddata.contacts[].inputstringrequired- Phone number provided in the request.
data.contacts[].wa_idstringrequired- WhatsApp ID of the recipient.
data.messagesarray of Messagerequireddata.messages[].idstringrequired- Unique WhatsApp message identifier.
data.metaMetarequireddata.meta.api_statusstringrequireddata.meta.versionstringrequired
When code is FAILURE
codestring (FAILURE)requirederrorstringrequired
When code is FAILURE
codestring (FAILURE)requireddatastringrequired
When code is FAILURE
codestring (FAILURE)requireddataobjectrequireddata.errorsarray of ApiErrordata.errors[].codeintegerrequireddata.errors[].titlestringrequireddata.errors[].detailsstringrequireddata.metaMetadata.meta.api_statusstringrequireddata.meta.versionstringrequired
200 OK · Successful request
{
"code": "SUCCESS",
"data": {
"contacts": [
{
"input": "919876543210",
"wa_id": "919876543210"
}
],
"messages": [
{
"id": "gBEGkXQRF3gGAgl4jbPFezZT6XX"
}
],
"meta": {
"api_status": "stable",
"version": "2.43.2"
}
}
}200 OK · Request validation failed
{
"code": "FAILURE",
"error": "The provided input parameters are invalid."
}403 Forbidden
Invalid API key or unauthorized request.