Skip to content

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).

category: TemplateCategory

Defined in: src/types/templates.ts:219

The template category.


components: MessageTemplateComponent[]

Defined in: src/types/templates.ts:223

The template components (exactly one BODY is required).


language: string

Defined in: src/types/templates.ts:217

The template language/locale, e.g. en_US.


optional messageSendTtlSeconds?: 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.


optional parameterFormat?: 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.