API

Get chat with the ticket author

POST/api/crm/v2/tickets.get_chat_customerv2
operationId: tickets.getChatCustomer

Returns messages from the open chat with the ticket author (hidden=false): author, text, attachment links, and reply_id — the ID of the message being replied to.

Authorization

api-token + language + role

Request body application/json

object
idintegerrequired

Example: 394

Responses

OK

object
statusstringrequired

Values:successerror

Example: success

dataobject
messagesarray of object
idintegerrequired

Example: 880

datestring (DataTimeFormatSQL) required

Example: 2024-05-02 08:31:16

user_idinteger

Example: 632

messagestring

Example: Hello World

reply_idinteger

Example: 879

hiddenbooleanrequired

Example: false

user_namestring

Example: User Name

affiliate_namestring

Example: user name

filesarray of object
file_idstringrequired

Example: df9a0531a9da6cf027e5143f38486dba

linkstringrequired

Example: https://cdn.foodsoul.pro/support/407/images/df9a0531a9da6cf027e5143f38486dba.jpg?v1733409704