API Reference

Create Limited Time Offer Template

Create a marketing template with a Limited Time Offer (LTO) component. This adds an expiration countdown visual to the message.

Example Request Body

{
  "name": "limited_time_offer",
  "language": "en",
  "category": "marketing",
  "components": [
    {
      "type": "header",
      "format": "image",
      "example": {
        "header_handle": [
          "4::aW1"
        ]
      }
    },
    {
      "type": "limited_time_offer",
      "limited_time_offer": {
        "text": "Expiring offer!",
        "has_expiration": true
      }
    },
    {
      "type": "body",
      "text": "Good news, {{1}}! Use code {{2}} to get 25% off all Caribbean Destination packages!",
      "example": {
        "body_text": [
          [
            "Harsh",
            "HOTS25"
          ]
        ]
      }
    },
    {
      "type": "buttons",
      "buttons": [
        {
          "type": "copy_code",
          "example": "HOTS25"
        },
        {
          "type": "url",
          "text": "Book now!",
          "url": "[https://awesomedestinations.com/offers?code=](https://awesomedestinations.com/offers?code=){{1}}",
          "example": [
            "[https://awesomedestinations.com/offers?ref=n3mtql](https://awesomedestinations.com/offers?ref=n3mtql)"
          ]
        }
      ]
    }
  ]
}
Language
Click Try It! to start a request and see the response here!