Authentication
Include your api_key in every protected request. Get the key after signing in to your account.
Integrate WhatsApp messaging into your website, store, CRM or internal workflow using simple REST endpoints and JSON requests.
The HANTAR NOW REST API lets authenticated users send WhatsApp content and connect messaging workflows to external systems.
Include your api_key in every protected request. Get the key after signing in to your account.
Use POST with Content-Type: application/json. Some endpoints may accept GET, but POST is recommended.
Keep credentials on your backend. Rotate the API key immediately if it is ever exposed.
curl -X POST 'https://whatsap.tokanity.com/api/es/send-message' \
-H 'Content-Type: application/json' \
-d '{
"api_key": "YOUR_API_KEY",
"sender": "60123456789",
"number": "60198765432",
"message": "Hello from HANTAR NOW"
}'Send a text message to a WhatsApp number.
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
api_key | string | Yes | API key from your HANTAR NOW account |
sender | string | Yes | Connected WhatsApp sender/device number |
number | string | Yes | Recipient number with country code |
message | string | Yes | Text message to send |
{
"api_key": "YOUR_API_KEY",
"sender": "60123456789",
"number": "60198765432",
"message": "Hello from HANTAR NOW"
}Send an image, video, audio or document using a public media URL.
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
api_key | string | Yes | API key from your HANTAR NOW account |
sender | string | Yes | Connected WhatsApp sender/device number |
number | string | Yes | Recipient number |
media_type | string | Yes | image, video, audio or document |
url | string | Yes | Public HTTPS URL of the media |
caption | string | No | Optional caption |
{
"api_key": "YOUR_API_KEY",
"sender": "60123456789",
"number": "60198765432",
"media_type": "image",
"url": "https://example.com/image.jpg",
"caption": "Product image"
}Send a sticker to a WhatsApp number from a public URL.
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
api_key | string | Yes | API key from your HANTAR NOW account |
sender | string | Yes | Connected WhatsApp sender/device number |
number | string | Yes | Recipient number |
url | string | Yes | Public sticker URL |
{
"api_key": "YOUR_API_KEY",
"sender": "60123456789",
"number": "60198765432",
"url": "https://example.com/sticker.webp"
}Send an interactive message containing reply buttons.
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
api_key | string | Yes | API key from your HANTAR NOW account |
sender | string | Yes | Connected WhatsApp sender/device number |
number | string | Yes | Recipient number |
message | string | Yes | Message body |
footer | string | No | Optional footer |
button | array | Yes | Button definitions |
{
"api_key": "YOUR_API_KEY",
"sender": "60123456789",
"number": "60198765432",
"message": "Choose an option",
"footer": "HANTAR NOW",
"button": [
"Yes",
"No"
]
}Send an interactive list message with selectable rows.
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
api_key | string | Yes | API key from your HANTAR NOW account |
sender | string | Yes | Connected WhatsApp sender/device number |
number | string | Yes | Recipient number |
title | string | Yes | List title |
message | string | Yes | Message body |
buttontext | string | Yes | Button label |
list | array | Yes | List sections and rows |
{
"api_key": "YOUR_API_KEY",
"sender": "60123456789",
"number": "60198765432",
"title": "Product Menu",
"message": "Select a product",
"buttontext": "View products",
"list": [
{
"title": "Products",
"rows": [
{
"title": "Product A",
"rowId": "product_a"
}
]
}
]
}Send a WhatsApp poll with multiple answer options.
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
api_key | string | Yes | API key from your HANTAR NOW account |
sender | string | Yes | Connected WhatsApp sender/device number |
number | string | Yes | Recipient number |
name | string | Yes | Poll question |
option | array | Yes | Answer options |
countable | integer | Yes | Maximum selectable answers |
{
"api_key": "YOUR_API_KEY",
"sender": "60123456789",
"number": "60198765432",
"name": "Choose a delivery time",
"option": [
"Morning",
"Afternoon"
],
"countable": 1
}Send geographic coordinates as a WhatsApp location.
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
api_key | string | Yes | API key from your HANTAR NOW account |
sender | string | Yes | Connected WhatsApp sender/device number |
number | string | Yes | Recipient number |
latitude | string | Yes | Location latitude |
longitude | string | Yes | Location longitude |
{
"api_key": "YOUR_API_KEY",
"sender": "60123456789",
"number": "60198765432",
"latitude": "3.1390",
"longitude": "101.6869"
}Send a contact card to a WhatsApp number.
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
api_key | string | Yes | API key from your HANTAR NOW account |
sender | string | Yes | Connected WhatsApp sender/device number |
number | string | Yes | Recipient number |
name | string | Yes | Contact name |
phone | string | Yes | Contact phone number |
{
"api_key": "YOUR_API_KEY",
"sender": "60123456789",
"number": "60198765432",
"name": "Customer Support",
"phone": "60123456789"
}Check whether a phone number is registered on WhatsApp.
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
api_key | string | Yes | API key from your HANTAR NOW account |
sender | string | Yes | Connected WhatsApp sender/device number |
number | string | Yes | Number to verify |
{
"api_key": "YOUR_API_KEY",
"sender": "60123456789",
"number": "60198765432"
}Configure a webhook URL on your connected device to receive incoming-message callbacks at your own HTTPS endpoint.
Your HTTPS endpoint receives the callback payload.
Check the sender, expected fields and your own verification rule.
Queue the event, respond 2xx and process business logic safely.