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>"}}}]}]}}

HEADERS

| Key | Datatype | Required | Description |

RESPONSES

status: OK

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