Sending a message with fallback
Simple SMS fallback
Below is an example of a text message with Simple SMS Fallback. Note the use of mt_text
type in the fallback > message object.
{
"to":"441234567890",
"message":{
"type":"text",
"text":"Hello World!"
},
"fallback":{
"message":{
"type":"mt_text",
"from":"440987654321",
"text":"Hello World!"
},
"conditions":{
"rcs_unavailable":{
"enabled":true
},
"agent_error":{
"enabled":true
}
}
}
}
Web Fallback
Below is an example of a text message with Web Fallback. Note the use of mt_web
type in the fallback > message object.
{
"to":"441234567890",
"message":{
"type":"text",
"text":"Hello World!"
},
"fallback":{
"message":{
"type":"mt_web",
"from":"440987654321",
"text":"Hello World!"
},
"conditions":{
"rcs_unavailable":{
"enabled":true
},
"agent_error":{
"enabled":true
}
}
}
}