curl --location -g --request POST '/{{vendorUid}}/contact/send-interactive-message' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
// optional from phone number id is not given it will use default phone number id
"from_phone_number_id": "",
"phone_number" : "966512345678",
"interactive_type" : "button", // cta_url, list
"media_link": "", // When header_type is image, video or document
"header_type": "text",
"header_text": "Interactive Text Header",
"body_text": "Interactive bot 1",
"footer_text": "footer text",
"buttons": { // When "interactive_type" is "button"
"1": "button 1",
"2": "button 2",
"3": "button 3"
},
"cta_url": { // When "interactive_type" is "cta_url"
"display_text": "CTA button Text",
"url": "CTA button URL"
},
"list_data": { // When "interactive_type" is "list"
"button_text": "List Msg Btn Label",
"sections": {
"section_1": {
"title": "Section 1",
"id": "section_1",
"rows": {
"row_1": {
"id": "row_1",
"row_id": "1",
"title": "Row 1 title",
"description": "row 1 description"
}
}
},
"section_2": {
"title": "Section 2",
"id": "section_2",
"rows": {
"row_1": {
"id": "row_1",
"row_id": "1",
"title": "row 1 title",
"description": "row 1 description"
}
}
}
}
},
// if you want to create contact if it does not exist
"contact": {
"first_name" : "Johan",
"last_name" : "Doe",
"email" : "johndoe@example.com",
"country" : "Saudia Arabia",
"language_code" : "ar",
"groups" : "examplegroup1,examplegroup2"
}
}'