POST
/api/send-message
Sends a plain text message to a recipient.
Send Basic Text Messages
Use this endpoint to send basic text messages. You can specify a single recipient phone number (E.164 format) .
Parameters
Name | Type | Required | Description |
---|---|---|---|
to | string | Yes | Recipient phone number in E.164 format or, Group JID, or Community Channel JID. |
text | string | Yes | The text content of the message. Required if no media/contact/location is sent. |
Code Examples
curl -X POST "https://www.wasenderapi.com/api/send-message"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"to": "+1234567890",
"text": "Hello, this is your requested update."
}'
Response Examples
{
"success": true,
"data": {
"msgId": 100000,
"jid": "+123456789",
"status": "in_progress"
}
}