Use this request to send a WhatsApp session message with a CTA button that opens a URL.
Field Value URL https://apis.rmlconnect.net/wba/v1/messagesAuthorization header Authorization: <RML Auth Token>Content-Type application/jsonMessage type interactive_cta
cURL
curl --location 'https://apis.rmlconnect.net/wba/v1/messages' \
--header 'Authorization: <RML Auth Token>' \
--header 'Content-Type: application/json' \
--data '{
"phone": "<phone no with country code preceded by plus sign>",
"media": {
"type": "interactive_cta",
"header": {
"text": "ABC Food Items"
},
"body": "Hello Humaann. Please select from the list below",
"footer_text": "Menu",
"action": {
"parameters": {
"display_text": "See Dates",
"url": "https://www.google.com"
}
}
}
}'
Field Type Description phone string Recipient phone number with country code preceded by a plus sign. media object Contains the CTA session message details.
Field Type Description type string Message type. Use interactive_cta. header object Header content for the CTA message. body string Main message text shown to the recipient. footer_text string Footer text shown below the message body. action object CTA action configuration.
Field Type Description display_text string Text displayed on the CTA button. url string URL opened when the recipient selects the CTA button.