Text
All examples below must be sent within the body field of a message as shown below
Exemple de code
{
"receiver": {
"contacts": [
{
"identifierValue": "+31612345678"
}
]
},
"body": {...}
}Single text message
Message Body
Exemple de code
{
"type": "text",
"text": {
"text": "Single text message"
}
}SMS


Google RCS
Facebook


Line
Single text message with actions
Single text message with reply actions
Message Body
Exemple de code
{
"type": "text",
"text": {
"text": "Single text message with reply actions",
"actions": [
{
"type": "reply",
"reply": {
"text": "Reply action 1"
}
},
{
"type": "reply",
"reply": {
"text": "Reply action 2"
}
}
]
}
}
Google RCS


Line
Single text message with postback actions
Message Body
Exemple de code
{
"type": "text",
"text": {
"text": "Single text message with postback actions",
"actions": [
{
"type": "postback",
"postback": {
"text": "Postback action 1",
"payload": "postback-payload-1"
}
},
{
"type": "postback",
"postback": {
"text": "Postback action 2",
"payload": "postback-payload-2"
}
}
]
}
}
Google RCS


Line
Single text message with postback and reply actions
Message Body
Exemple de code
{
"type": "text",
"text": {
"text": "Single text message with reply and postback actions",
"actions": [
{
"type": "postback",
"postback": {
"text": "Postback action 1",
"payload": "postback-payload-1"
}
},
{
"type": "reply",
"reply": {
"text": "Reply action 1"
}
}
]
}
}
Google RCS


Line
