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.


Request

POST
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

200 OK
{
 "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

POST
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

200 OK
{
sent
}

Was this page helpful?