Skip to main content
POST
/
v3
/
{phone_number_id}
/
messages
Send Limited Time Offer Template Message
curl --request POST \
  --url https://one.telepie.com/v3/{phone_number_id}/messages \
  --header 'apikey: <api-key>'

Request Body Parameters

phone_number_id
string
required
Specifies the recipient’s phone number in international format (e.g., “1xxxxxxxxxx”).
{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "91XXXXXXXXXX",
  "type": "template",
  "template": {
    "name": "limited_time_offer_dec12",
    "language": {
      "code": "en_US"
    },
    "components": [
      {
        "type": "header",
        "parameters": [
          {
            "type": "image",
            "image": {
              "id": "1537845180339361"
            }
          }
        ]
      },
      {
        "type": "body",
        "parameters": []
      },
      {
        "type": "limited_time_offer",
        "parameters": [
          {
            "type": "limited_time_offer",
            "limited_time_offer": {
              "expiration_time_ms": 1699400090000
            }
          }
        ]
      },
      {
        "type": "button",
        "sub_type": "copy_code",
        "index": 0,
        "parameters": [
          {
            "type": "coupon_code",
            "coupon_code": "CARIBE25"
          }
        ]
      },
      {
        "type": "button",
        "sub_type": "url",
        "index": 1,
        "parameters": [
          {
            "type": "text",
            "text": "n3mtql"
          }
        ]
      }
    ]
  }
}