Skip to main content
Version: 1.0

RCS Rich Card Message

RCS card message can be sent during the conversation with the end user. As part of Rich Card message, enterprise can send Image/ Video with Title, Description, and up to 4 Suggestions including Suggestive Reply; Open a URL; Share Location; and Dial a Number.

S.No.AttributeRequiredData TypeDetails
3.1.card_messageYesObjectSpecifying that the message type is Card message
3.1.1.titleYesStringThe title of the card.
3.1.2.descriptionYesStringThe description of the card.
3.1.3.media_messageYesObjectContains information related to the media to be sent in the message.
3.1.3.1.urlYesStringThe URL of the image/video.
3.1.4.heightYesStringTALL, MEDIUM, SHORT. Image specifications are in the template specifications sheet attached above.
3.1.5.choicesNoArray of objectsThe number of choices is limited to 4. Select any combination of choices from below objects.
3.1.5.1.call_messageNoObjectButton for triggering the call.
3.1.5.1.1.phone_numberYesStringPhone number in E.164 with leading +. E.g. +919876543210
3.1.5.1.2.titleYesStringTitle of the button
3.1.5.2.postback_dataYesStringValue is returned in the Click event of the accompanying button
3.1.5.1.location_messageNoObjectButton containing geographic location
3.1.5.1.1.coordinatesYesObjectContaining latitude and longitude of the location
3.1.5.1.1.1.latitudeYesNumberLatitude of location
3.1.5.1.1.2.longitudeYesNumberLongitude of location
3.1.5.1.2.titleYesStringTitle of the button
3.1.5.2.postback_dataYesStringValue is returned in the Click event of the accompanying button
3.1.5.1.url_messageNoObjectButton for opening a URL
3.1.5.1.1.urlYesStringThe URL to open
3.1.5.1.2.titleYesStringTitle of the button
3.1.5.2.postback_dataYesStringValue is returned in the Click event of the accompanying button
3.1.5.1.text_messageNoObjectButton for quick reply from the end user
3.1.5.1.1.textYesStringThis is the button title as well as text to be sent from the end user
3.1.5.2.postback_dataYesStringValue is returned in the Click event of the accompanying button
{
"app_id": "01H0MFFJFX0YAWYA5XG4D3MRTA",
"recipient": {
"identified_by": {
"channel_identities": [
{
"channel": "RCS",
"identity": "917023002081"
}
]
}
},
"message": {
"card_message": {
"title": "Sign up for our newsletter",
"description": "Our weekly newsletter with deals and extra content!",
"media_message": {
"url": "https://sample-videos.com/img/Sample-jpg-image-100kb.jpg"
},
"height": "MEDIUM",
"choices": [
{
"text_message": {
"text": "Sign up here"
},
"postback_data": "Hello"
}
]
}
}
}