iglooX DocsDevelopers

Schema

Marketing Message Template Body Input

The body of a WhatsApp marketing template. Use a tracked campaign URL button and an optional text, image or video header.

  • Models

Overview

object · 3 properties · 3 required

Properties

text

string Required

Message text. WhatsApp-formatted text is limited to 1,024 characters. Use {{customer_name}} and {{merchant_name}} only in the text, separated by actual text. Placeholders cannot start or end the message.

Example Hello {{customer_name}}, see this weekend’s offers from {{merchant_name}} below.
Min length 1

header

oneOf Required

Optional message header. Active messaging integrations may impose additional constraints.

Nullable Yes
One of

One of 1

null

One of 2

object
Nested properties
type
string Required
Const text
text
string Required

Static header text. Template placeholders are not supported.

Example Welcome
Min length 1
Max length 60

One of 3

reference

References Message Template Image Header Input.

One of 4

reference

References Message Template Video Header Input.

action

object Required
Nested properties

type

string Required
Const url

label

string Required
Example Browse offers
Min length 1
Max length 20

target

object Required
Nested properties
type
string Required
Const dynamic
key
string Required
Const marketing_campaign

Used by

Raw YAML
Download source
title: Marketing Message Template Body Input
type: object
x-tags:
  - Models
description: The body of a WhatsApp marketing template. Use a tracked campaign URL button and an optional
  text, image or video header.
required:
  - text
  - header
  - action
additionalProperties: false
properties:
  text:
    type: string
    minLength: 1
    description: Message text. WhatsApp-formatted text is limited to 1,024 characters. Use {{customer_name}} and
      {{merchant_name}} only in the text, separated by actual text. Placeholders cannot start or end the
      message.
    example: Hello {{customer_name}}, see this weekend’s offers from {{merchant_name}} below.
  header:
    description: Optional message header. Active messaging integrations may impose additional constraints.
    oneOf:
      - type: "null"
      - type: object
        required:
          - type
          - text
        additionalProperties: false
        properties:
          type:
            type: string
            const: text
          text:
            type: string
            minLength: 1
            description: Static header text. Template placeholders are not supported.
            example: Welcome
            maxLength: 60
      - $ref: ./MessageTemplateImageHeaderInput.yaml
      - $ref: ./MessageTemplateVideoHeaderInput.yaml
  action:
    type: object
    required:
      - type
      - label
      - target
    properties:
      type:
        type: string
        const: url
      label:
        type: string
        minLength: 1
        maxLength: 20
        example: Browse offers
      target:
        type: object
        required:
          - type
          - key
        properties:
          type:
            type: string
            const: dynamic
          key:
            type: string
            const: marketing_campaign
        additionalProperties: false
    additionalProperties: false

Search documentation

Search across this documentation site.