Messages

Send Text Message

Send a plain text message.

Home/Docs/Send Text Message

Endpoint

Send a plain text message.

Request
POST /sendText

Authentication

Every request must include a Bearer token in the Authorization header. Missing or invalid API keys return 401 Unauthorized.

Header
Authorization: Bearer YOUR_API_KEY

Request Body

FieldTypeRequiredDescription
sessionstringYesSession ID
tostringYesRecipient phone number
textstringYesMessage text content
replyTostringNoMessage ID to reply to

Response

FieldTypeDescription
idstringUnique message identifier
tostringRecipient phone number or group JID
contentstringMessage content, media reference, or caption
typestringMessage type: text, image, video, document, or ptt
timestampstringISO 8601 timestamp of when the message was sent
statusstringDelivery status such as sent, delivered, or read
fromMebooleanTrue when sent by the current session
senderstringSender phone number
recipientstringRecipient identifier

Examples

cURL
curl -X POST "https://api.example.com/sendText" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "id": "msg_123",
  "to": "+1234567890",
  "content": "Hello",
  "type": "text",
  "timestamp": "2026-04-15T10:00:00.000Z",
  "status": "sent",
  "fromMe": true,
  "sender": "+1234567890",
  "recipient": "+1234567890"
}