getWhatsAppFlow method

Future<GetWhatsAppFlowOutput> getWhatsAppFlow({
  1. required String flowId,
  2. required String id,
})

Retrieves the metadata and status of a WhatsApp Flow, including validation errors, preview information, and health status.

May throw AccessDeniedByMetaException. May throw DependencyException. May throw InternalServiceException. May throw InvalidParametersException. May throw ResourceNotFoundException. May throw ThrottledRequestException.

Parameter flowId : The unique identifier of the Flow to retrieve.

Parameter id : The ID of the WhatsApp Business Account associated with this Flow.

Implementation

Future<GetWhatsAppFlowOutput> getWhatsAppFlow({
  required String flowId,
  required String id,
}) async {
  final $query = <String, List<String>>{
    'flowId': [flowId],
    'id': [id],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/whatsapp/flow',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetWhatsAppFlowOutput.fromJson(response);
}