Create Template - With Contact Buttons

Endpoint

https://app.wabais.com/api/templates

Method

POST

Authentication

Bearer Token

Body Type

JSON

Parameters

name String required

snake_case_name String required

category String required

language String required

header String required

body String required

button_type String required

contact_buttons Array required

Sample Request Body

{
  "name": "Welcome to our business",
  "snake_case_name": "welcome_to_our_business",
  "category": "MARKETING",
  "language": "en_US",
  "header": "none",
  "body": "Dear Customer,\n\nWelcome to our business.",
  "button_type": "contact",
  "contact_buttons": [
    {
      "type": "phone",
      "text": "Call Us",
      "phone": "234721234233",
      "url": ""
    },
    {
      "type": "url",
      "text": "Vist us",
      "phone": "",
      "url": "google.com"
    }
  ]
}

Sample Response

{
}