Custom marketing templates
Updated: Nov 14, 2025 Learn how to create and send a custom marketing template.
Supported components
Custom marketing templates support the following components: 1 header (optional; all types supported) 1 body (required) 1 footer (optional) Up to 10 buttons (optional; all types supported)Create a custom marketing template
Use the POST /<WHATSAPP_BUSINESS_ACCOUNT_ID>/message_templates endpoint to create a custom marketing template.Request syntax
This example syntax creates a template with an image header, body text with 3 named parameters, a footer, and 3 buttons (url, phone number, and quick-reply).Request parameters
| Placeholder | Description | Sample Value |
|---|---|---|
<ACCESS_TOKEN>String | Required. Access token. | EAAAN6tcBzAUBOZC82CW7iR2LiaZBwUHS4Y7FDtQxRUPy1PHZClDGZBZCgWdrTisgMjpFKiZAi1FBBQNO2IqZBAzdZAA16lmUs0XgRcCf6z1LLxQCgLXDEpg80d41UZBt1FKJZCqJFcTYXJvSMeHLvOdZwFyZBrV9ZPHZASSqxDZBUZASyFdzjiy2A1sippEsF4DVV5W2IlkOSr2LrMLuYoNMYBy8xQczzOKDOMccqHEZD |
<API_VERSION>String | Optional. API version. If omitted, defaults to the newest API version available to your app. | v23.0 |
<BODY_PARAMETER_EXAMPLE_VALUE>String | Required if using a body component string that includes one or more parameters. Example parameter value. You must supply an example for each parameter defined in your body component string. | WELCOME20 |
<BODY_PARAMETER_NAME>String | Required if using named parameters. Parameter name. You must supply a name for each parameter defined in your body component string. Must be a unique string, composed of lowercase characters and underscores, wrapped in double curly brackets. | {{discount_code}} |
<BODY_TEXT>String | Required. Template body text. Variables are supported. Maximum 1024 characters. | Welcome to Lucky Shrub, {{first_name}}!\\n\\nUse code *{{discount_code}}* to get {{discount_amount}} off of your first purchase! |
<FOOTER_TEXT>String | Optional. Footer text. Maximum 60 characters. | Lucky Shrub: Your gateway to succulents! |
<PARAMETER_FORMAT>String | Optional. Parameter format. Value can be: namedpositionalIf the parameter_format property is omitted, the template will use positional formatting. | Lucky Shrub: Your gateway to succulents! |
<HEADER_ASSET_HANDLE>String | Required if using a header with a media asset. Header media asset handle. | 4::aW1hZ2UvcG5n:ARYpf5zqqUjggwGfsZOJ2_o26Zs8ntcO2mss2vKpFb8P_IvskL043YXKpehYTD7IxqEB4t-uZcIzOTxOFRavEcN_tZLhk1WXFb3IOr4S8UKJcQ:e:1759093121:634974688087057:100089620928913:ARYyOAh63uQLhDpqOdk |
<PHONE_NUMBER_BUTTON_LABEL_TEXT>String | Required if using a phone number button. Button label text. Maximum 25 characters. Alphanumeric characters only. | Call us |
<PHONE_NUMBER_BUTTON_PHONE_NUMBER>String | Required if using a phone number button component. Business phone number to be called in the WhatsApp user’s default phone app when tapped by the user. Note that some countries have special phone numbers that have leading zeros after the country calling code (e.g., +55-0-955-585-95436). If you assign one of these numbers to the button, the leading zero will be stripped from the number. If your number will not work without the leading zero, assign an alternate number to the button, or add the number as message body text. Maximum 20 characters. Alphanumeric characters only. | 15550051310 |
<QUICK_REPLY_BUTTON_LABEL_TEXT> | Required if using a quick-reply button. Button label text. Maximum 25 characters. Alphanumeric characters only. | Unsubscribe |
<TEMPLATE_LANGUAGE>String | Required. Template language code. | en_US |
<TEMPLATE_NAME>String | Required. Template name. Must be unique, unless existing templates with the same name have a different template language. Maximum 512 characters. Lowercase, alphanumeric characters and underscores only. | reservation_confirmation |
<URL_BUTTON_URL>String | Required if including a URL button. URL to be loaded in WhatsApp user’s default web browser when tapped. | https://www.luckyshrubeater.com/reservations |
<URL_BUTTON_LABEL_TEXT>String | Required if using a URL button. Button label text. Maximum 25 characters. Alphanumeric characters only. | View deals |
<WHATSAPP_BUSINESS_ACCOUNT_ID>String | Required. WhatsApp Business Account ID. | 546151681022936 |
Response syntax
Upon success:Response parameters
| Placeholder | Description | Example value |
|---|---|---|
<TEMPLATE_CATEGORY> | Template category. | MARKETING |
<TEMPLATE_ID> | Template ID. | 1627019861106475 |
<TEMPLATE_STATUS> | Template status. | PENDING |
Example request
Example response
Send a custom marketing template
Use the POST /<BUSINESS_PHONE_NUMBER_ID>/messages endpoint to send an approved marketing template.Request syntax
This example syntax is for sending the template described in the create syntax above, which expects a header image asset, and 3 body text parameter values which will replace their parameter placeholders in the body text string.Request parameters
| Placeholder | Description | Example value |
|---|---|---|
<ACCESS_TOKEN>String | Required. Access token | EAAAN6tcBzAUBOZC82CW7iR2LiaZBwUHS4Y7FDtQxRUPy1PHZClDGZBZCgWdrTisgMjpFKiZAi1FBBQNO2IqZBAzdZAA16lmUs0XgRcCf6z1LLxQCgLXDEpg80d41UZBt1FKJZCqJFcTYXJvSMeHLvOdZwFyZBrV9ZPHZASSqxDZBUZASyFdzjiy2A1sippEsF4DVV5W2IlkOSr2LrMLuYoNMYBy8xQczzOKDOMccqHEZD |
<API_VERSION>String | Optional. API version. If omitted, defaults to the newest API version available to your app. | v23.0 |
<BUSINESS_PHONE_NUMBER_ID>String | Required. WhatsApp business phone number ID. | 106540352242922 |
<HEADER_ASSET_ID>String | Required if template uses a header media. Header media asset ID. | 1339522734477770 |
<PARAMETER_NAME>String | Required if template uses one or more named parameters. Name of named parameter. | discount_code |
<PARAMETER_VALUE>String | Required if template uses one or more named parameters. Named parameter value. | WELCOME25 |
<TEMPLATE_LANGUAGE>String | Required. Template language. | en_US |
<TEMPLATE_NAME>String | Required. Template name. | welcome_discount_template |
<WHATSAPP_USER_PHONE_NUMBER>String | Required. WhatsApp user phone number. | 16505551234 |
Response syntax
Upon success:Response parameters
| Placeholder | Description | Example value |
|---|---|---|
<PACING_STATUS> | Template pacing status. | accepted |
<WHATSAPP_MESSAGE_ID> | WhatsApp Message ID. This ID is included in status messages webhooks for delivery status purposes. | wamid.HBgLMTY1MDM4Nzk0MzkVAgARGBJBRkJENzExMTRFRjk2NTI1OTEA |
<WHATSAPP_USER_ID> | WhatsApp user’s WhatsApp ID. May not match input value. | 16505551234 |
<WHATSAPP_USER_PHONE_NUMBER> | WhatsApp user’s WhatsApp phone number. May not match wa_id value. | 16505551234 |

