2026/01/14 - AWS End User Messaging Social - 2 updated api methods
Changes This release clarifies WhatsApp template operations as a resource-authenticated operation via the parent WhatsApp Business Account. It also introduces new parameters for parameter format, CTA URL link tracking, and template body examples, and increases the phone number ID length.
{'metaLibraryTemplates': {'templateBodyExampleParams': ['string']}}
Lists templates available in Meta's template library for WhatsApp messaging.
See also: AWS API Documentation
Request Syntax
client.list_whats_app_template_library(
nextToken='string',
maxResults=123,
id='string',
filters={
'string': 'string'
}
)
string
The token for the next page of results.
integer
The maximum number of results to return per page (1-100).
string
[REQUIRED]
The ID of the WhatsApp Business Account to list library templates for.
dict
Map of filters to apply (searchKey, topic, usecase, industry, language).
(string) --
(string) --
dict
Response Syntax
{
'metaLibraryTemplates': [
{
'templateName': 'string',
'templateLanguage': 'string',
'templateCategory': 'string',
'templateTopic': 'string',
'templateUseCase': 'string',
'templateIndustry': [
'string',
],
'templateHeader': 'string',
'templateBody': 'string',
'templateButtons': [
{
'type': 'string',
'text': 'string',
'phoneNumber': 'string',
'url': 'string',
'otpType': 'string',
'zeroTapTermsAccepted': True|False,
'supportedApps': [
{
'string': 'string'
},
]
},
],
'templateId': 'string',
'templateBodyExampleParams': [
'string',
]
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
metaLibraryTemplates (list) --
A list of templates from Meta's library.
(dict) --
Defines the complete structure and content of a template in Meta's library.
templateName (string) --
The name of the template.
templateLanguage (string) --
The language code for the template (for example, en_US).
templateCategory (string) --
The category of the template (for example, UTILITY or MARKETING).
templateTopic (string) --
The topic or subject matter of the template.
templateUseCase (string) --
The intended use case for the template.
templateIndustry (list) --
The industries the template is designed for.
(string) --
templateHeader (string) --
The header text of the template.
templateBody (string) --
The body text of the template.
templateButtons (list) --
The buttons included in the template.
(dict) --
Defines a button in a template from Meta's library.
type (string) --
The type of button (for example, QUICK_REPLY, CALL, or URL).
text (string) --
The text displayed on the button (maximum 40 characters).
phoneNumber (string) --
The phone number in E.164 format for CALL-type buttons.
url (string) --
The URL for URL-type buttons.
otpType (string) --
The type of one-time password for OTP buttons.
zeroTapTermsAccepted (boolean) --
When true, indicates acceptance of zero-tap terms for the button.
supportedApps (list) --
List of supported applications for this button type.
(dict) --
(string) --
(string) --
templateId (string) --
The ID of the template in Meta's library.
templateBodyExampleParams (list) --
Example parameter values for the template body, used to demonstrate how dynamic content appears in the template.
(string) --
nextToken (string) --
The token to retrieve the next page of results, if any.
{'ctaUrlLinkTrackingOptedOut': 'boolean', 'parameterFormat': 'string'}
Updates an existing WhatsApp message template.
See also: AWS API Documentation
Request Syntax
client.update_whats_app_message_template(
id='string',
metaTemplateId='string',
parameterFormat='string',
templateCategory='string',
templateComponents=b'bytes',
ctaUrlLinkTrackingOptedOut=True|False
)
string
[REQUIRED]
The ID of the WhatsApp Business Account associated with this template.
string
[REQUIRED]
The numeric ID of the template assigned by Meta.
string
The format specification for parameters in the template, this can be either 'named' or 'positional'.
string
The new category for the template (for example, UTILITY or MARKETING).
bytes
The updated components of the template as a JSON blob (maximum 3000 characters).
boolean
When true, disables click tracking for call-to-action URL buttons in the template.
dict
Response Syntax
{}
Response Structure
(dict) --