CreateTemplatePayload
Defined in: src/types/templates.ts:213
Payload for TemplatesResource.create. camelCase fields are mapped to
the snake_case Graph shape (parameterFormat -> parameter_format,
messageSendTtlSeconds -> message_send_ttl_seconds).
Properties
Section titled “Properties”category
Section titled “category”category:
TemplateCategory
Defined in: src/types/templates.ts:219
The template category.
components
Section titled “components”components:
MessageTemplateComponent[]
Defined in: src/types/templates.ts:223
The template components (exactly one BODY is required).
language
Section titled “language”language:
string
Defined in: src/types/templates.ts:217
The template language/locale, e.g. en_US.
messageSendTtlSeconds?
Section titled “messageSendTtlSeconds?”
optionalmessageSendTtlSeconds?:number
Defined in: src/types/templates.ts:225
Time-to-live for message sends using this template, in seconds.
name:
string
Defined in: src/types/templates.ts:215
Template name: lowercase alphanumeric and underscores, up to 512 chars.
parameterFormat?
Section titled “parameterFormat?”
optionalparameterFormat?:TemplateParameterFormat
Defined in: src/types/templates.ts:221
How parameters are addressed.
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.