Skip to content

ListWhatsAppTemplateLibrary

Source: src/AWS/SocialMessaging/ListWhatsAppTemplateLibrary.ts

Runtime binding for social-messaging:ListWhatsAppTemplateLibrary.

Lists the pre-approved templates available in Meta’s template library, optionally filtered by category, topic, or industry.

The deploy-time half grants social-messaging:ListWhatsAppTemplateLibrary on the bound WABA’s ARN and the runtime half injects the linked account id into every request. Provide the implementation with Effect.provide(AWS.SocialMessaging.ListWhatsAppTemplateLibraryHttp).

// init — bind the operation to the linked WABA
const browseLibrary = yield* AWS.SocialMessaging.ListWhatsAppTemplateLibrary(account);
// runtime
const { metaLibraryTemplates } = yield* browseLibrary({
filters: { category: "UTILITY" },
});