API Reference

Create Call To Action (CTA) Template

Create a template with URL buttons. You can mix Dynamic URLs (containing variables like {{1}}) and Static URLs.

Example Request Body

{
  "name": "TEMPLATE_NAME",
  "language": "en",
  "category": "MARKETING",
  "components": [
    {
      "type": "BODY",
      "text": "Hi {{1}}, This is test template",
      "example": {
        "body_text": [
          [
            "John"
          ]
        ]
      }
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "Dynamic Link",
          "url": "[https://www.example.com/](https://www.example.com/){{1}}",
          "example": "[https://www.example.com/test](https://www.example.com/test)"
        },
        {
          "type": "URL",
          "text": "Static Link",
          "url": "[https://www.example.com](https://www.example.com)"
        }
      ]
    }
  ]
}
Language
Click Try It! to start a request and see the response here!