Send Flow Template Message

POST {{base-url}}/{{business-phone-number-id}}/messages

Request Body

{"messaging_product"=>"whatsapp", "to"=>"{{customer-phone-number}}", "type"=>"template", "template"=>{"name"=>"<TEMPLATE_NAME>", "language"=>{"code"=>"en_US"}, "components"=>[{"type"=>"button", "sub_type"=>"flow", "index"=>"0", "parameters"=>[{"type"=>"action", "action"=>{"flow_token"=>"<FLOW_TOKEN>", "flow_action_data"=>{"<CUSTOM_KEY>"=>"<CUSTOM_VALUE>"}}}]}]}}

RESPONSES

status: OK

{&quot;messaging_product&quot;:&quot;whatsapp&quot;,&quot;contacts&quot;:[{&quot;input&quot;:&quot;18055555555&quot;,&quot;wa_id&quot;:&quot;18055555555&quot;}],&quot;messages&quot;:[{&quot;id&quot;:&quot;wamid.HBgL...&quot;}]}