Text message
A text message is a plain text message. You can send a text message by making aPOST
request to the /messages:send
Conversation API endpoint with the following payload:{- "app_id": "{{APP_ID}}",
- "recipient": "{{CONTACT_ID}}",
- "message": {
- "text_message": {
- "text": "Greetings from Sinch Conversation API."
}
}
}
Text message schema
A text message can take the following parameters and properties. Required parameters are marked.
object (Text Message) | |||
|
The following sections give examples of how card messages are rendered in each channel and specific parameter support:
- SMS
- Facebook Messenger
- MMS
- RCS
- Viber Bot
- Viber Business Messages
- Telegram
- KakaoTalk
- Apple Messages for Business
- LINE
WhatsApp channel natively supports text messages. You can include a maximum of 4096 characters in a single text message.
Note:
The following image gives an example of a text message.
SMS
SMS channel natively supports text messages. The following image gives an example of a text message.
Facebook Messenger
Facebook Messenger supports text messages natively. The following image gives an example of a text message.
Instagram supports text messages natively. The following image gives an example of a text message.
Apple Messages for Business
Apple Messages for Business supports text messages natively.
MMS
MMS channel supports text messages natively.
The following image gives an example of a text message.
RCS
The RCS channel natively supports text messages. You can include a maximum of 2000 characters in the text message. The following image gives an example of a text message:
Viber Bot
The Viber Bot channel natively supports text messages. You can include a maximum of 7000 characters in the text message. The following image gives an example of a text message:
Viber Business Messages
The Viber Business Messages channel natively supports text messages. The maximum length of a text message is 1000 characters. Longer content will be truncated. Texts can be formatted with markdown.
Format | Markdown | String to be sent | Appearance on message |
---|---|---|---|
Bold | One asterisk at each end of the text: * | *This text will be bold* | This text will be bold |
Italics | One underscore at each end of the text: _ | _This text will be in italics_ | This text will be in italics |
Monospace | Three backticks at each end of the text: | This text will be in monospace | This text will be in monospace |
Strikethrough | One tilde at each end of the text: ~ | ~This text will have a strikethrough~ |
The following image gives an example of a text message:
Telegram
Telegram Bot channel natively supports text messages.
When sending text messages on the Telegram Bot channel, you can use Markdown syntax in the text content. See Telegram Bot channel Markdown support for more information.
The following image provides an example of a text message:
KakaoTalk
KakaoTalk supports text messages natively. The text of the Text message has a maximum length of 1000 characters.
LINE
LINE channel natively supports text messages.
WeChat channel natively supports text messages.