LogoLogo
No-code docsResources
  • 🖥️Welcome to the Bird API Docs
  • API Access
    • Access Policies
    • Access Roles
    • API Authorization
    • Common API usage
  • Conversations API
    • API reference
      • Channel configuration
        • Get conversations configuration
        • Update conversations configuration
      • Conversations messaging
        • Create conversation message
        • List conversation messages
        • Get conversation message
        • Update conversation message
        • Delete conversation message
        • Create pre-signed upload
      • Conversations management
        • Create conversation
        • List conversations
        • Get conversation
        • Update conversation
        • Delete conversation
      • Conversation Participants
        • Add participant to conversation
        • List participants
        • Get participant by ID
        • Get participant by identifier key and value
        • Update participant by ID
        • Update participant by identifier key and value
        • Delete participant
        • List participant conversations by ID
        • List participant conversations by identifier key and value
      • Workspace settings
        • Get antispam setting
        • Update antispam setting
        • Create allow/block rule
        • Get allow/block rule
        • List allow/block rules
        • Update allow/block rule
        • Delete allow/block rule
        • Add allow/block rules in bulk
        • Get allow/block bulk upload status
      • Events
  • Collaborations API
    • API reference
      • Agent Management
      • Team Management
      • Feeds
      • Feed item activity
      • Tags
      • Automation Rules
      • Business Hours
      • Capacity Rules
      • Routing Queues
      • Skills
      • SLA Policies
      • Macros
      • Sender Profiles
      • Ticket fields
  • Channels API
    • Supported channels
      • Programmable WhatsApp
        • Sending WhatsApp messages
        • Customer service window
        • Receiving messages
        • Message interactions
        • WhatsApp ISV integration
          • Setting up your customer workspaces
            • API Access
            • Associating your Facebook solution ID and business ID with your Bird CRM Organization
            • Creating a workspace for your customer
            • Buying a number through Bird
            • Subscribing to channel created webhooks
          • WhatsApp channel onboarding
            • Setting up the WhatsApp Embedded flow
            • Install WhatsApp phone number in Bird CRM
            • Subscribe to channel webhooks
      • Programmable SMS
        • Installing an SMS channel
          • US 10DLC API Installation
          • Toll-Free Numbers Verification API
        • Sending SMS messages
        • Receiving messages
        • Twilio Exit API
          • Using Twilio PHP SDK
          • Using Twilio Go SDK
          • Using Twilio Ruby SDK
        • Sinch Exit API
      • Programmable RCS
        • Sending messages
        • Receiving messages
        • Message interactions
      • Programmable Email
        • Sending Emails
        • Receiving messages
        • Message status
        • Message interactions
      • Programmable Line
        • Sending messages
        • Receiving messages
        • Message interactions
      • Programmable Telegram
        • Sending messages
        • Receiving messages
        • Message interactions
    • Message types
      • Text
      • Images
      • Files
      • List
      • Carousel
      • Template
    • Message status and interactions
      • Message Failure Codes
      • Message Failure Sources
        • SMS Platform Extended Error Codes
    • Send batch messages
    • API reference
      • Channel Groups
      • Messaging
      • Channels management
      • Channel connectors
      • Navigators
      • Compliance Keywords Messages
      • Conversions Sharing
      • Events
    • Rate Limit
  • Voice API
    • Installing a Voice channel
    • Voice Calls API
      • Initiate an outbound call
      • List calls from a channel
      • Get a call
      • Update a call
      • Answer a call
      • Ring a call
      • Hangup a call
      • Play a message in a call
      • Say Text-To-Speech (TTS)
      • Gather DTMF from a call
      • Forward a call
      • Record a Call
      • Record a call session
      • Update a call recording
      • List call recordings of a call
      • Get a call recording
      • Get a call insights
      • Get calls log
    • Recordings API
      • List Recordings
      • Get a Recording
      • Delete a Recording
      • List recording storage metrics
    • Transcriptions API
      • Initiate a Transcription
      • List Transcriptions
      • Get a Transcription
      • Delete a Transcription
    • Voice webhooks
    • Flash Calling API
  • Verify API
    • Verify API: Quick Start
  • Contacts API
    • Tracking Contact Events
      • API Reference
        • Get configuration
        • Track events
    • API reference
      • Manage workspace contacts
        • Create a contact
        • Get a contact
        • List contacts
        • Search contact by identifier
        • Update a contact
        • Create or update a contact by identifier
        • Delete a contact
      • Manage contact identifiers
        • Create contact identifier
        • List contact identifiers
        • Delete contact identifier
      • Manage contact attribute definition
        • Create attribute definition
        • Get attribute definition
        • List attribute definitions
      • Manage contact lists
        • Create a list
        • Get a list
        • List lists
        • Update a list
        • Delete a list
        • Add contacts to a list
        • Get contact list memberships
        • List contacts in a list
        • Remove contacts from a list
      • Lookup
        • Network/Country information for a phone number
  • Numbers API
    • API reference
      • Search Available Numbers
      • Buy a Number
      • List your Numbers
      • Get Long Code Number Details
      • Manage Endpoint Subscriptions
        • Cancel Number Subscription
      • Manage Endpoint Compliance Requirements
        • List Workspace compliace Requirements
        • Get Workspace Compliace Requirements
        • Update Workspace Compliace Requirements
      • 10DLC Compliance
        • Brands - Organization
          • Create a brand
          • List all brands
          • Get a brand
          • Update a brand
          • Delete a brand
          • Create a brand vetting
        • Brands - workspace
          • Create a brand
          • List all brands
          • Get a brand
          • Update a brand
          • Delete a brand
          • Create a brand vetting
          • List brand vettings
        • Campaigns
          • Optional: acting as Reseller
          • Create a campaign
          • List all campaigns
          • Get a campaign
          • Update a campaign
          • Delete a campaign
        • TCR Enums
        • Events
      • Toll-Free Numbers Verification API
      • Long Code Numbers
      • Short Code Numbers
      • Alphanumeric Senders
      • Events
  • Know-Your-Customer (KYC) API
    • List KYC forms
    • Get KYC form
    • Create KYC form entry
    • Update KYC form entry
    • List KYC form entries
    • Get a KYC form entry details
  • Reporting API
    • API reference
      • Channel Metrics
      • Flow Run Metrics
      • Wallet Metrics
      • Campaign Metrics
      • Message Metrics
  • Accounts API
    • API reference
      • Current user
        • Change password
        • Presigned upload
        • Memberships
        • Sessions
        • Configurations
          • Groups
            • Keys
      • IAM policies
      • Organizations
        • Upload media
        • Profile
        • Workspaces
        • Users
        • Access keys
        • Organization roles
        • Organization policies
        • Teams
          • Members
        • Approvals
          • Runs
            • Reviews
        • Configurations
          • Groups
            • Keys
      • Region groups
  • Touchpoints API
    • Supported Projects
      • Whatsapp Approved Message Templates
        • Creating WhatsApp Message templates
          • Text template blocks
          • Blocks Documentation
    • API reference
      • Projects
      • Message Templates
  • Notifications API
    • API Reference
      • Webhook subscriptions
        • Create a webhook subscription
        • List available webhook events
        • Get a webhook subscription
        • List webhook subscriptions
        • Update a webhook subscription
        • Delete a webhook subscription
        • Verifying a webhook subscription
        • Webhook subscription logs
  • Knowledge Base (KB) API
    • API reference
      • Documents
      • Folders
        • Import
      • Search
      • Presigned upload
  • Email API
    • Transmissions
  • Connectivity platform migration guide
    • Channels API and Conversations API
    • Migrating conversations API actions
    • Migrating WhatsApp channels
  • Client SDKs
    • Applications
    • Contact Profiles
      • Signed Identity
    • Push notifications
      • Quick Start
      • Subscribe contacts to push notification campaigns
      • Notification Display Priority
    • Event Tracking
      • Quick Start
      • Track Events
        • App
        • Audiences
        • Conference
        • Ecommerce
        • Hospitality
        • Lists
        • Messaging
        • Payments
        • Subscription
        • Suppressions
        • Survey
        • Web
    • App Inbox
      • Quick Start
      • Usage
      • Subscribe contacts to app inbox campaigns
    • SDK Integration
      • Android SDK
        • Notification Interactions
      • Swift SDK
        • Notification Interactions
      • Web SDK
        • Quick Start
        • Usage
        • API Reference
          • IdentityManager
          • BirdSdkApi
          • BirdTracker
            • Ecommerce
            • Conference
            • Messaging
            • Suppressions
            • Subscription
            • Survey
            • Web
            • Audiences
        • Web Push Notifications
          • Notification Interactions
  • Quickstarts
    • Conversations
    • Send an SMS message
    • Send an Email message
    • Send a WhatsApp message
Powered by GitBook
On this page
  • Header
  • Body
  • Footer
  • Basic text template example
  • Buttons
  • Action buttons
  • Quick reply buttons
  • Combining buttons and ordering
  • Limitations

Was this helpful?

  1. Touchpoints API
  2. Supported Projects
  3. Whatsapp Approved Message Templates
  4. Creating WhatsApp Message templates

Text template blocks

A text template can contain a header, body, footer and buttons.

Header

Headers are optional elements found at the top of template messages. They can include text, media (such as images, videos, and documents), or locations.

Example:

{
   "type":"text",
   "role":"header",
   "text":{
      "text":"My header"
   }
}

Body

Body components are mandatory for all templates and consist solely of text. Each template is limited to a single body component.

Example

{
   "type":"text",
   "role":"body",
   "text":{
      "text":"This is the body"
   }
}

Footer

Footers are optional components made up of text that appear directly below the body component. Each template can include only one footer component.

Example

{
   "type":"text",
   "role":"footer",
   "text":{
      "text":"My footer"
   }
}

Basic text template example

"blocks":[
   {
      "type":"text",
      "role":"header",
      "text":{
         "text":"My header"
      }
   },
   {
      "type":"text",
      "role":"body",
      "text":{
         "text":"This is the body"
      }
   },
   {
      "type":"text",
      "role":"footer",
      "text":{
         "text":"My footer"
      }
   }
]

Buttons

Buttons are optional interactive elements that trigger specific actions when tapped. Templates can include a maximum of 10 button components, but there are restrictions on the number of individual button types and combinations.

Action buttons

Buttons that perform an action when tapped by the app user such as opening a URL or calling a phone number

Copy code button

Each template is restricted to a single copy code button.

{
   "defaultLocale":"en",
   "deployments":[
      {
         "key":"whatsappTemplateName",
         "platform":"whatsapp",
         "value":"ui_test_1_text_bt"
      },
      {
         "key":"whatsappCategory",
         "platform":"whatsapp",
         "value":"MARKETING"
      },
      {
         "key":"whatsappAllowCategoryChange",
         "platform":"whatsapp",
         "value":"false"
      }
   ],
   "variables":[
      {
         "key":"code",
         "description":"This is a variable that contains the code",
         "type":"string",
         "format":"none",
         "examplesLocale":{
            "en":{
               "exampleValueStrings":[
                  "Code"
               ]
            }
         }
      }
   ],
   "platformContent":[
      {
         "locale":"en",
         "type":"text",
         "platform":"whatsapp",
         "channelGroupIds":[
            "3f979241-dea3-4f55-b7bb-d769eec27e51"
         ],
         "blocks":[
            {
               "type":"text",
               "text":{
                  "text":"My header"
               },
               "role":"header"
            },
            {
               "type":"text",
               "role":"body",
               "text":{
                  "text":"Here is your code {{code}}"
               }
            },
            {
               "type":"text",
               "role":"footer",
               "text":{
                  "text":"My footer"
               }
            },
            {
               "type":"copy-code-action",
               "copyCodeAction":{
                  "code":"{{code}}"
               }
            }
         ]
      }
   ],
   "supportedPlatforms":[
      "whatsapp"
   ],
   "shortLinks":{
      "enabled":true,
      "domain":"brd1.us"
   },
}
  • When the copy code action is added, the Body block must also contain the same variable: {{code}}

exampleValueStrings : Examples are required by Meta for the approval of the teamplate.

Phone number button

When tapped by the end user, phone number buttons dial the designated business phone number. Each template is restricted to a single phone number button.

"platformContent": [
        {
            "locale": "en",
            "type": "text",
            "platform": "whatsapp",
            "channelGroupIds": [
                "3f979241-dea3-4f55-b7bb-d769eec27e51"
            ],
            "blocks": [
                {
                    "type": "text",
                    "role": "body",
                    "text": {
                        "text": "Message body"
                    }
                },
                {
                    "type": "text",
                    "role": "footer",
                    "text": {
                        "text": "Footer"
                    }
                },
                {
                    "type": "call-phone-number-action",
                    "callPhoneNumberAction": {
                        "text": "my number",
                        "phoneNumber": "+436566899343"
                    }
                }
            ]
        }
    ]

Link button

When tapped by the end user, URL buttons open the specified URL in the device's default web browser. Each template is limited to two URL buttons.

"platformContent": [
        {
            "locale": "en",
            "type": "text",
            "platform": "whatsapp",
            "channelGroupIds": [
                "3f979241-dea3-4f55-b7bb-d769eec27e51"
            ],
            "blocks": [
                {
                    "type": "text",
                    "role": "body",
                    "text": {
                        "text": "Message body"
                    }
                },
                {
                    "type": "text",
                    "role": "footer",
                    "text": {
                        "text": "Footer"
                    }
                },
                {
                    "type": "link-action",
                    "linkAction": {
                        "text": "newsletter",
                        "url": "https://example.newsletter.com/"
                    }
                },
                {
                    "type": "link-action",
                    "linkAction": {
                        "text": "change log",
                        "url": "https://example.change.com/"
                    }
                }
            ]
        }
    ]

Quick reply buttons

Quick reply buttons are customisable, text-based options that send an immediate response to you with the predefined message when tapped by a user.

Each template can include up to 10 quick reply buttons.

"platformContent": [
        {
            "locale": "en",
            "type": "text",
            "platform": "whatsapp",
            "channelGroupIds": [
                "3f979241-dea3-4f55-b7bb-d769eec27e51"
            ],
            "blocks": [
                {
                    "type": "text",
                    "role": "body",
                    "text": {
                        "text": "Message body"
                    }
                },
                {
                    "type": "text",
                    "role": "footer",
                    "text": {
                        "text": "Footer"
                    }
                },
                {
                    "type": "reply-action",
                    "replyAction": {
                        "text": "quick reply 1",
                        "payload": "quick reply 1 payload"
                    }
                },
                {
                   "type": "reply-action",
                    "replyAction": {
                        "text": "quick reply 2",
                        "payload": "quick reply 2 payload"
                    }
                }
            ]
        }
    ]

Payload contains the text that is being returned when the user taps on it.

Combining buttons and ordering

When combining quick reply buttons with other types of buttons, they must be separated into two distinct groups: quick reply buttons and non-quick reply buttons. If they are not properly grouped, the API will return an error due to an invalid button combination.

Valid groupings include:

  • Quick Reply, Quick Reply

  • Quick Reply, Quick Reply, URL, Phone

  • URL, Phone, Quick Reply, Quick Reply

Invalid groupings include:

  • Quick Reply, URL, Quick Reply

  • URL, Quick Reply, URL

Ordering

The order of the button types must be followed correctly for successful block object creation and submission; otherwise, the API will return a validation error. Here is the correct order when combining various buttons type.

  1. "type":"copy-code-action"

  2. "type": "link-action"

  3. "type": "call-phone-number-action"

  4. "type": "reply-action"

Limitations

Button type
Limitation

copy-code-action

One per template

link-action

Up to two per template

call-phone-number-action

One per template

reply-action

Up to ten per template

Last updated 7 months ago

Was this helpful?