Skip to content

Messaging

WhatsApp templates

Templates approved on your WhatsApp Business account. Business-initiated messages outside the 24-hour window must use one.

GET/v1/api/infra/connect/whatsapp/templates

List templates and their approval status.

POST/v1/api/infra/connect/whatsapp/templates/sync

Pull the latest templates from Meta.

const { data: templates } = await ecod.infra.connect.whatsapp.templates.list();
await ecod.infra.connect.whatsapp.templates.sync();