Skip to content

MessageTemplate

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

A message template as returned by the Graph API. Only commonly used fields are typed; an index signature allows any additional Graph fields.

[key: string]: unknown

Additional Graph fields not explicitly typed above.

category: string

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

The template category.


components: MessageTemplateComponent[]

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

The template components.


id: string

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

The template id.


language: string

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

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


name: string

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

The template name (lowercase, alphanumeric + underscores).


optional parameter_format?: string

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

How parameters are addressed, when present.


status: string

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

The current review/lifecycle status.

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.