Skip to main content
POST
/
v3
/
{phone_number_id}
/
messages
Send Media 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": "{{Recipient number}}",
  "type": "template",
  "template": {
    "name": "template-name",
    "language": {
      "code": "language-and-locale-code"
    },
    "components": [
      {
        "type": "header",
        "parameters": [
          {
            "type": "image",
            "image": {
              "link": "http(s)://the-image-url"
            }
          }
        ]
      },
      {
        "type": "body",
        "parameters": [
          {
            "type": "text",
            "text": "text-string"
          },
          {
            "type": "currency",
            "currency": {
              "fallback_value": "$100.99",
              "code": "USD",
              "amount_1000": 100990
            }
          },
          {
            "type": "date_time",
            "date_time": {
              "fallback_value": "February 25, 1977",
              "day_of_week": 5,
              "year": 1977,
              "month": 2,
              "day_of_month": 25,
              "hour": 15,
              "minute": 33,
              "calendar": "GREGORIAN"
            }
          }
        ]
      }
    ]
  }
}