Skip to main content
POST
https://backend.conversales.in
/
api
/
v1
/
sendTextMessage
curl -X POST "https://backend.conversales.in/api/v1/sendTextMessage" \
  -H "X-API-Key: 3kJ9mP2nQ8rT5vW7xY1zA4bC6dE8fG0hI" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "1234567890",
    "message": "Hello! This is a test message from Conversales AI.",
    "clientId": "client_ref_12345",
    "type":"text"
  }'
{
  "statusCode": 200,
  "message": "Text message sent successfully",
  "data": {
    "messageId": "wamid.HBgNMTIzNDU2Nzg5MA==",
    "status": "sent",
    "recipient": "1234567890"
  }
}

Authentication

X-API-Key
string
required
Your API key for authentication

Request Body

to
string
required
Recipient phone number (without + symbol, e.g., 1234567890)
message
string
required
Text message content
type
string
required
Message Type (e.g., Text)
replyToMessageId
string
WhatsApp message ID to reply to (optional)
clientId
string
Your custom reference ID for tracking (optional)

Response

statusCode
number
HTTP status code (200 for success)
message
string
Success or error message
data
object
curl -X POST "https://backend.conversales.in/api/v1/sendTextMessage" \
  -H "X-API-Key: 3kJ9mP2nQ8rT5vW7xY1zA4bC6dE8fG0hI" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "1234567890",
    "message": "Hello! This is a test message from Conversales AI.",
    "clientId": "client_ref_12345",
    "type":"text"
  }'
{
  "statusCode": 200,
  "message": "Text message sent successfully",
  "data": {
    "messageId": "wamid.HBgNMTIzNDU2Nzg5MA==",
    "status": "sent",
    "recipient": "1234567890"
  }
}
Use the clientId parameter to track messages in your own system. This ID will be returned in webhooks and status updates.