A ticket-message represents a message (an email, an SMS, a Facebook comment, chat message, etc..) under a normalized format.
There are 3 types of messages:
- Outgoing messages: messages sent by your company (by rules or support agents) to your customers.
- Incoming messages: messages sent by your customers to your company.
- Internal notes: internal messages sent between support agents (users). Internal notes are not sent/shared with your customers.
A ticket-message is associated with only one ticket.
TicketMessage properties
TicketMessage example object
{
"id": 924712,
"attachments": [],
"body_html": "Hello,<br><br>\n\n I can't place an order on your site, it says: I don't have enough credit.<br>\n How can I add some credits?<br><br>\n\n Cheers,<br>\n John Doe\n ",
"body_text": "Hello,\n\n I can't place an order on your site, it says: I don't have enough credit.\n How can I add some credits?\n\n Cheers,\n John Doe\n ",
"channel": "email",
"created_datetime": "2020-01-27T10:42:21.468912",
"external_id": "MSG-78545",
"failed_datetime": null,
"from_agent": true,
"integration_id": 28643,
"last_sending_error": null,
"message_id": "<123345676453.2445.234@web>",
"receiver": {
"id": 8
},
"rule_id": 89465,
"sender": {
"id": 7
},
"source": {
"type": "email",
"from": {
"id": 7,
"name": "Sender Doe",
"address": "[email protected]"
},
"to": [
{
"id": 8,
"name": "Receiver Doe",
"address": "[email protected]"
}
]
},
"stripped_html": null,
"stripped_text": null,
"subject": "Re:Refund request",
"ticket_id": 12,
"via": "api",
"uri": "/api/tickets/12/messages/924712/"
}