Skip to content

GetWhatsAppFlowPreview

Source: src/AWS/SocialMessaging/GetWhatsAppFlowPreview.ts

Runtime binding for social-messaging:GetWhatsAppFlowPreview.

Generates (or refreshes with invalidate) a shareable preview URL for a WhatsApp Flow on the bound account.

The deploy-time half grants social-messaging:GetWhatsAppFlowPreview 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.GetWhatsAppFlowPreviewHttp).

// init — bind the operation to the linked WABA
const getFlowPreview = yield* AWS.SocialMessaging.GetWhatsAppFlowPreview(account);
// runtime
const { preview } = yield* getFlowPreview({
flowId: "1234567890",
invalidate: true,
});