Skip to main content

whats_app_template_libraries

Creates, updates, deletes, gets or lists a whats_app_template_libraries resource.

Overview

Namewhats_app_template_libraries
TypeResource
Idaws.socialmessaging.whats_app_template_libraries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
template_bodystringThe body text of the template.
template_body_example_paramsarrayExample parameter values for the template body, used to demonstrate how dynamic content appears in the template.
template_buttonsarrayThe buttons included in the template.
template_categorystringThe category of the template (for example, UTILITY or MARKETING).
template_headerstringThe header text of the template.
template_idstringThe ID of the template in Meta's library. (pattern: <code>[0-9]+</code>)
template_industryarrayThe industries the template is designed for.
template_languagestringThe language code for the template (for example, en_US).
template_namestringThe name of the template.
template_topicstringThe topic or subject matter of the template.
template_use_casestringThe intended use case for the template.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_whats_app_template_libraryselectid, regionLists templates available in Meta's template library for WhatsApp messaging.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of the WhatsApp Business Account to list library templates for.
regionstringAWS region (default: us-east-1)

SELECT examples

Lists templates available in Meta's template library for WhatsApp messaging.

SELECT
template_body,
template_body_example_params,
template_buttons,
template_category,
template_header,
template_id,
template_industry,
template_language,
template_name,
template_topic,
template_use_case
FROM aws.socialmessaging.whats_app_template_libraries
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;