Skip to content

GetWhatsAppFlow

Source: src/AWS/SocialMessaging/GetWhatsAppFlow.ts

Runtime binding for social-messaging:GetWhatsAppFlow.

Retrieves a WhatsApp Flow’s details — status, categories, validation errors, health status — from the bound account.

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

// init — bind the operation to the linked WABA
const getFlow = yield* AWS.SocialMessaging.GetWhatsAppFlow(account);
// runtime
const flow = yield* getFlow({ flowId: "1234567890" });
const publishable = flow.validationErrors?.length === 0;