Skip to main content
POST
/
v3
/
{wabaid}
/
message_templates
Text Template with Body, Header, Footer, Visit Website and Call to Phone
curl --request POST \
  --url https://one.telepie.com/v3/{wabaid}/message_templates \
  --header 'apikey: <api-key>'

Request Body Parameters

wabaid
string
required
Specifies the wabaid of the business account.
{
  "name": "welcome_postman_new_sne124",
  "category": "MARKETING",
  "components": [
    {
      "type": "BODY",
      "text": "Thank you for registering with Telepie Teleservices and providing consent to receive notifications using WhatsApp. \\r\\n\\r\\nWe request you to kindly save this number.\\r\\n\\r\\nTo get started, please type help*.\\r\\nYou can reply with STOP* anytime you wish to stop communication through this channel."
    },
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Welcome{{1}}",
      "example": {
        "header_text": ["header-text"]
      }
    },
    {
      "type": "FOOTER",
      "text": "welcome to Telepie"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "PHONE_NUMBER",
          "text": "phone-button-text",
          "phone_number": "+1(650)555-1111"
        },
        {
          "type": "URL",
          "text": "Click",
          "url": "https://www.website.com/{{1}}",
          "example": ["dynamic-url-example"]
        }
      ]
    }
  ],
  "language": "en_US",
  "allow_category_change": true
}