Chat
POST https://ClientApplicationURL.com/
When a WhatsApp user sends a message to your approved number, this will automatically invoke your URL and pass all the following pre-defined parameters. Users can send you message either directly or in response to a templated notification.
You are required to provide your application URL for the WhatsApp conversation messages.
WhatsApp Chat
Query Parameters
- Name
whatsapp_from
- Type
- string
- Description
Originating mobile number.
- Name
whatsapp_to
- Type
- string
- Description
Your WhatsApp approved mobile number.
- Name
whatsapp_message
- Type
- string
- Description
WhatsApp message content.
Headers
- Name
Host
- Type
- string
- Description
sms.hollatags.com
- Name
content-type
- Type
- string
- Description
application/json.
Only whatsapp_message is required in your json response. You do not need to define whatsapp_from or whatsapp_to. Your whatsapp_message will by default go to the originating mobile number i.e the current session whatsapp_to.
Request
curl --location 'https://ClientApplicationURL.com/' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'whatsapp_from=2347000000000' \
--data-urlencode 'whatsapp_to=2347000000000' \
--data-urlencode 'whatsapp_message= Hello, this is a test message'
Response
{
"whatsapp_message":"Hello, this is a test message"
}
WhatsApp Push
Push POST https://sms.hollatags.com/api/whatsapp/push/
This endpoint allows a business to send WhatsApp template messages. The content and message format has to be pre-approved.
The POST parameters should be sent as x-www-form-urlencoded.
Query Parameters
- Name
user
- Type
- string
- Description
Account username.
- Name
pass
- Type
- string
- Description
Account Password.
- Name
whatsapp_from
- Type
- string
- Description
Your WhatsApp approved mobile number.
- Name
whatsapp_to
- Type
- string
- Description
Destination mobile number.
- Name
whatsapp_message
- Type
- string
- Description
WhatsApp message content.
Request
curl --location 'https://sms.hollatags.com/api/whatsapp/push' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'user={USERNAME}' \
--data-urlencode 'pass={PASSWORD}' \
--data-urlencode 'whatsapp_from=2347000000000' \
--data-urlencode 'whatsapp_to=2347000000000' \
--data-urlencode 'whatsapp_message= Hello, this is a test message'
Response
{
sent
}