Sending Text Messages with HiBot Official WhatsApp API
- Bot Automation

- Apr 11
- 2 min read
In today’s fast-paced digital world, businesses rely heavily on instant communication. WhatsApp has become one of the most powerful channels for customer engagement, and with the HiBot Official WhatsApp API, sending automated and scalable messages is easier than ever.
This guide walks you through how to send text messages using the HiBot API, including request structure, parameters, and examples.
🚀 What Are Text Messages in HiBot API?
Text messages are the simplest form of communication via the WhatsApp API. They consist of:
A text body
An optional link preview
These messages are ideal for:
Notifications
Alerts
Customer support replies
Marketing messages (within policy limits)
📡 API Endpoint
To send a text message, use the following endpoint:
POST /<WHATSAPP_BUSINESS_PHONE_NUMBER_ID>/messages
Example Request (cURL)
curl 'https://graph.facebook.com/<API_VERSION>/<WHATSAPP_BUSINESS_PHONE_NUMBER_ID>/messages' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-d '
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "<WHATSAPP_USER_PHONE_NUMBER>",
"type": "text",
"text": {
"preview_url": <ENABLE_LINK_PREVIEW>,
"body": "<BODY_TEXT>"
}
}'
đź§© Request Parameters Explained
Parameter | Type | Required | Description | Example |
ACCESS_TOKEN | String | Yes | Authentication token | EAAAN6tcBzA... |
API_VERSION | String | No | Graph API version | v25.0 |
WHATSAPP_BUSINESS_PHONE_NUMBER_ID | String | Yes | Business phone number ID | 106540352242922 |
WHATSAPP_USER_PHONE_NUMBER | String | Yes | Recipient’s number | +16505551234 |
BODY_TEXT | String | Yes | Message content (max 4096 chars) | Product link |
ENABLE_LINK_PREVIEW | Boolean | No | Enable link preview | true |
đź”— Link Preview Feature
HiBot allows you to enhance messages with link previews, making them more engaging.
Key Points:
Only the first URLÂ in the message is previewed
URLs must start with http://Â or https://
If preview fails, a clickable link is still shown
đź’ˇ Example: Sending a Message with Link Preview
curl 'https://graph.facebook.com/v25.0/106540352242922/messages' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer EAAJB...' \
-d '
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "+16505551234",
"type": "text",
"text": {
"preview_url": true,
"body": "As requested, here's the link to our latest product: https://www.meta.com/quest/quest-3/"
}
}'
âś… Example Response
{
"messaging_product": "whatsapp",
"contacts": [
{
"input": "+16505551234",
"wa_id": "16505551234"
}
],
"messages": [
{
"id": "wamid.HBgLMTY0NjcwNDM1OTUVAgARGBI1RjQyNUE3NEYxMzAzMzQ5MkEA"
}
]
}
🛠️ Best Practices
Keep messages clear and concise
Use link previews for better engagement
Ensure valid phone number formatting
Avoid sending unsolicited messages (follow WhatsApp policies)
Monitor responses using message IDs
🎯 Why Use HiBot Official API?
Scalable messaging infrastructure
Reliable delivery via WhatsApp Cloud API
Easy integration with backend systems
Supports automation and chatbots
📌 Conclusion
The HiBot Official API makes sending WhatsApp text messages straightforward and powerful. Whether you're sending notifications, updates, or links, this API provides all the flexibility you need to build seamless communication workflows.
Start integrating today and take your customer engagement to the next level!
If you need help integrating HiBot API into your system, feel free to reach out or explore more advanced messaging features like templates, media messages, and automation flows.
.png)
Comments