Messages
Send Text Message
Send a plain text message.
Endpoint
Send a plain text message.
Request
POST /sendTextAuthentication
Every request must include a Bearer token in the Authorization header. Missing or invalid API keys return 401 Unauthorized.
Header
Authorization: Bearer YOUR_API_KEYRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
| session | string | Yes | Session ID |
| to | string | Yes | Recipient phone number |
| text | string | Yes | Message text content |
| replyTo | string | No | Message ID to reply to |
Response
| Field | Type | Description |
|---|---|---|
| id | string | Unique message identifier |
| to | string | Recipient phone number or group JID |
| content | string | Message content, media reference, or caption |
| type | string | Message type: text, image, video, document, or ptt |
| timestamp | string | ISO 8601 timestamp of when the message was sent |
| status | string | Delivery status such as sent, delivered, or read |
| fromMe | boolean | True when sent by the current session |
| sender | string | Sender phone number |
| recipient | string | Recipient 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"
}