Open URL with Webview

Use the Open URL with Webview action to open a web page inside the messaging app from an RCS suggestion button. The Open URL with Webview action loads the specified web page inside the messaging app with the rendering engine of your default browser. This allows the user to interact with the web page without leaving the RBM conversation.


If the user's device doesn't support webviews, the web page opens in the user's browser instead.

Endpoint details

FieldValue
Endpoint URLhttps://apis.rmlconnect.net/rcs/v1/message
MethodPOST
Content-Typeapplication/json
Authentication RequiredYes

Authentication

Pass a valid access token in the Authorization header.

Request headers

HeaderRequiredDescription
AuthorizationYesValid access token for authentication.
Content-TypeYesMust be application/json.

Request parameters

FieldTypeDescription
typestringType of message. Example: text.
phone_nostringRecipient’s phone number in E.164 format.
textstringMessage text content.
bot_namestringName or identifier of the chatbot sending the message.
suggestionsarrayList of interactive suggestion buttons.
suggestions[].typestringType of suggestion. Example: url.
suggestions[].textstringButton text shown to user.
suggestions[].urlstringURL to open on tap.
suggestions[].postbackstringType of action to take on tap. url indicates a redirection.
suggestions[].applicationstringApplication to use for viewing. Use webview for in-app view.
suggestions[].web_view_modestringMode of the webview, for example full, half, or tall.

Request body

{
  "type": "text",
  "phone_no": "+91xxxxxxxxx",
  "text": "Open this link",
  "bot_name": "Routemobile",
  "suggestions": [
    {
      "type": "url",
      "text": "Tap me",
      "url": "http://routemobile.com",
      "postback": "url",
      "application": "webview",
      "web_view_mode": "half"
    }
  ]
}

Response

{
  "message": "Message request has been created",
  "id": "a69416c8-685e-11f0-9988-0a58a9fdac02"
}


Did this page help you?