I'm trying to get the last conversation message in text format, but the current response returns text/html. Can I get this as text/plain ?
Expected response:
{
"ticket": {
"conversation": {
"message": {
"content": "my printer is not working",
"contentType": "text/plain"
}
}
}
}
The response I get:
{
"ticket": {
"conversation": {
"message": {
"content": "<div class=\"zd-comment\" dir=\"auto\">my printer is not working</div>",
"contentType": "text/html"
}
}
}
}
TIA
The message content type is based on the channel the message was sent from. So if you're seeing a
text/htmlcontent type in the response, that is because the message was sent on a channel where that is the supported content type. We detail the supported content type for each channel in Supported message content types.