Knowledge Hub

Search

Tutorials

FAQs

WhatsApp Strategies

Knowledge Hub

Send a Template API

Documentation - Template(HSM) Sending API

Steps to send a template on your WhatsApp Bot via APIs.

  1. Contact support@businessonbot.com to get your guest API key and URL.

Once you’ve received the guest API key and URL, follow the steps below:

Introduction:

The API documentation is intended to be used as a reference to communicate with BusinessOnBot. BusinessOnBot will be calling the customer’s APIs with the request specified in the documentation and expects responses as mentioned.

API’s :

For all the APIs, BusinessOnBot will be passing the API KEY with the custom http header ‘x-guest-id’.

METHOD : POST URL : {{domain_name}}/wabiz/send

HEADER:

Basic Auth -
x-api-key : string

BODY : (Format - JSON)

SUCCESS RESPONSE:

{
 "status": "success",
 "statusCode": 200
}

ERROR RESPONSE:

{
 "status" : "failure",
 "statusCode": "400",
 "error": "Bad payload!!"
 }
 {
 "status" : "failure",
 "statusCode": "500",
 "error": "Internal Server Error!!"
 }
Logo

BusinessOnBot Pvt. Ltd.

InstagramLinkedInYouTubeWhatsApp
{
  "type": "template",
  "name": "String",
  "phone": "String",
  "language": "en_US",
  "header": [
    {
      "type": "text",
      "text": "string"
    }
    // OR
    {
      "type": "image",
      "link": "string" // Public URL
    }
    // OR
    {
      "type": "video",
      "link": "string" // Public URL
    }
    // OR
    {
      "type": "document",
      "link": "string" // Public URL
    }
  ],
  "body": [
    {
      "type": "text",
      "text": "string"
    }
  ],
  "buttons": [
    {
      "type": "url",
      "params": ["string"]
    }
  ]
}