GET api/message/client/{id}?minimal={minimal}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
|
minimal | boolean |
Required |
Body Parameters
None.
Response Information
Resource Description
ClientChatDataName | Description | Type | Additional information |
---|---|---|---|
Messages | Collection of ClientGroupedMessages |
None. |
|
C2D_Client | ClientsDataModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "Messages": [ { "Date": "2024-11-16T19:03:05.8004619-03:00", "FormattedDate": "sample string 2", "Messages": [ { "Name": "sample string 1", "Time": "sample string 2", "SendBy": "sample string 3", "Id": 4, "Text": "sample string 5", "Coordinates": {}, "Transport": "sample string 7", "Type": "sample string 8", "Read": 9, "Created": "2024-11-16T19:03:05.8004619-03:00", "Pdf": "sample string 11", "Remote_Id": {}, "Recipient_Status": {}, "Ai_Tips": {}, "attachments": [ {}, {} ], "Photo": "sample string 15", "Video": "sample string 16", "Audio": "sample string 17", "Operator_Id": 18, "Channel_Id": 19, "Dialog_Id": 20, "Client_Id": 21 }, { "Name": "sample string 1", "Time": "sample string 2", "SendBy": "sample string 3", "Id": 4, "Text": "sample string 5", "Coordinates": {}, "Transport": "sample string 7", "Type": "sample string 8", "Read": 9, "Created": "2024-11-16T19:03:05.8004619-03:00", "Pdf": "sample string 11", "Remote_Id": {}, "Recipient_Status": {}, "Ai_Tips": {}, "attachments": [ {}, {} ], "Photo": "sample string 15", "Video": "sample string 16", "Audio": "sample string 17", "Operator_Id": 18, "Channel_Id": 19, "Dialog_Id": 20, "Client_Id": 21 } ] }, { "Date": "2024-11-16T19:03:05.8004619-03:00", "FormattedDate": "sample string 2", "Messages": [ { "Name": "sample string 1", "Time": "sample string 2", "SendBy": "sample string 3", "Id": 4, "Text": "sample string 5", "Coordinates": {}, "Transport": "sample string 7", "Type": "sample string 8", "Read": 9, "Created": "2024-11-16T19:03:05.8004619-03:00", "Pdf": "sample string 11", "Remote_Id": {}, "Recipient_Status": {}, "Ai_Tips": {}, "attachments": [ {}, {} ], "Photo": "sample string 15", "Video": "sample string 16", "Audio": "sample string 17", "Operator_Id": 18, "Channel_Id": 19, "Dialog_Id": 20, "Client_Id": 21 }, { "Name": "sample string 1", "Time": "sample string 2", "SendBy": "sample string 3", "Id": 4, "Text": "sample string 5", "Coordinates": {}, "Transport": "sample string 7", "Type": "sample string 8", "Read": 9, "Created": "2024-11-16T19:03:05.8004619-03:00", "Pdf": "sample string 11", "Remote_Id": {}, "Recipient_Status": {}, "Ai_Tips": {}, "attachments": [ {}, {} ], "Photo": "sample string 15", "Video": "sample string 16", "Audio": "sample string 17", "Operator_Id": 18, "Channel_Id": 19, "Dialog_Id": 20, "Client_Id": 21 } ] } ], "C2D_Client": { "Id": 1, "Name": "sample string 2", "Avatar": "sample string 3", "Phone": "sample string 4", "Assigned_Name": "sample string 5", "Comment": {}, "Client_Phone": "sample string 7", "Region_Id": {}, "Country_Id": 1, "External_Id": {}, "External_Ids": {}, "Extra_Comment_1": {}, "Extra_Comment_2": {}, "Custom_Fields": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "Extra_Comment_3": {}, "Tags": [ { "id": 1, "label": "sample string 2", "description": "sample string 3", "group_id": 4, "group_name": "sample string 5" }, { "id": 1, "label": "sample string 2", "description": "sample string 3", "group_id": 4, "group_name": "sample string 5" } ] } }
text/html
Sample:
{"Messages":[{"Date":"2024-11-16T19:03:05.8004619-03:00","FormattedDate":"sample string 2","Messages":[{"Name":"sample string 1","Time":"sample string 2","SendBy":"sample string 3","Id":4,"Text":"sample string 5","Coordinates":{},"Transport":"sample string 7","Type":"sample string 8","Read":9,"Created":"2024-11-16T19:03:05.8004619-03:00","Pdf":"sample string 11","Remote_Id":{},"Recipient_Status":{},"Ai_Tips":{},"attachments":[{},{}],"Photo":"sample string 15","Video":"sample string 16","Audio":"sample string 17","Operator_Id":18,"Channel_Id":19,"Dialog_Id":20,"Client_Id":21},{"Name":"sample string 1","Time":"sample string 2","SendBy":"sample string 3","Id":4,"Text":"sample string 5","Coordinates":{},"Transport":"sample string 7","Type":"sample string 8","Read":9,"Created":"2024-11-16T19:03:05.8004619-03:00","Pdf":"sample string 11","Remote_Id":{},"Recipient_Status":{},"Ai_Tips":{},"attachments":[{},{}],"Photo":"sample string 15","Video":"sample string 16","Audio":"sample string 17","Operator_Id":18,"Channel_Id":19,"Dialog_Id":20,"Client_Id":21}]},{"Date":"2024-11-16T19:03:05.8004619-03:00","FormattedDate":"sample string 2","Messages":[{"Name":"sample string 1","Time":"sample string 2","SendBy":"sample string 3","Id":4,"Text":"sample string 5","Coordinates":{},"Transport":"sample string 7","Type":"sample string 8","Read":9,"Created":"2024-11-16T19:03:05.8004619-03:00","Pdf":"sample string 11","Remote_Id":{},"Recipient_Status":{},"Ai_Tips":{},"attachments":[{},{}],"Photo":"sample string 15","Video":"sample string 16","Audio":"sample string 17","Operator_Id":18,"Channel_Id":19,"Dialog_Id":20,"Client_Id":21},{"Name":"sample string 1","Time":"sample string 2","SendBy":"sample string 3","Id":4,"Text":"sample string 5","Coordinates":{},"Transport":"sample string 7","Type":"sample string 8","Read":9,"Created":"2024-11-16T19:03:05.8004619-03:00","Pdf":"sample string 11","Remote_Id":{},"Recipient_Status":{},"Ai_Tips":{},"attachments":[{},{}],"Photo":"sample string 15","Video":"sample string 16","Audio":"sample string 17","Operator_Id":18,"Channel_Id":19,"Dialog_Id":20,"Client_Id":21}]}],"C2D_Client":{"Id":1,"Name":"sample string 2","Avatar":"sample string 3","Phone":"sample string 4","Assigned_Name":"sample string 5","Comment":{},"Client_Phone":"sample string 7","Region_Id":{},"Country_Id":1,"External_Id":{},"External_Ids":{},"Extra_Comment_1":{},"Extra_Comment_2":{},"Custom_Fields":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"Extra_Comment_3":{},"Tags":[{"id":1,"label":"sample string 2","description":"sample string 3","group_id":4,"group_name":"sample string 5"},{"id":1,"label":"sample string 2","description":"sample string 3","group_id":4,"group_name":"sample string 5"}]}}
application/xml, text/xml
Sample:
<ClientChatData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube.chat2desk.message"> <C2D_Client xmlns:d2p1="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube.chat2desk.client"> <d2p1:Assigned_Name>sample string 5</d2p1:Assigned_Name> <d2p1:Avatar>sample string 3</d2p1:Avatar> <d2p1:Client_Phone>sample string 7</d2p1:Client_Phone> <d2p1:Comment /> <d2p1:Country_Id>1</d2p1:Country_Id> <d2p1:Custom_Fields xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:KeyValueOfstringstring> <d3p1:KeyValueOfstringstring> <d3p1:Key>sample string 3</d3p1:Key> <d3p1:Value>sample string 4</d3p1:Value> </d3p1:KeyValueOfstringstring> </d2p1:Custom_Fields> <d2p1:External_Id /> <d2p1:External_Ids /> <d2p1:Extra_Comment_1 /> <d2p1:Extra_Comment_2 /> <d2p1:Extra_Comment_3 /> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:Phone>sample string 4</d2p1:Phone> <d2p1:Region_Id /> <d2p1:Tags> <d2p1:Tag> <d2p1:description>sample string 3</d2p1:description> <d2p1:group_id>4</d2p1:group_id> <d2p1:group_name>sample string 5</d2p1:group_name> <d2p1:id>1</d2p1:id> <d2p1:label>sample string 2</d2p1:label> </d2p1:Tag> <d2p1:Tag> <d2p1:description>sample string 3</d2p1:description> <d2p1:group_id>4</d2p1:group_id> <d2p1:group_name>sample string 5</d2p1:group_name> <d2p1:id>1</d2p1:id> <d2p1:label>sample string 2</d2p1:label> </d2p1:Tag> </d2p1:Tags> </C2D_Client> <Messages> <ClientGroupedMessages> <Date>2024-11-16T19:03:05.8004619-03:00</Date> <FormattedDate>sample string 2</FormattedDate> <Messages> <ClientMessages> <Ai_Tips /> <Audio>sample string 17</Audio> <Channel_Id>19</Channel_Id> <Client_Id>21</Client_Id> <Coordinates /> <Created>2024-11-16T19:03:05.8004619-03:00</Created> <Dialog_Id>20</Dialog_Id> <Id>4</Id> <Operator_Id>18</Operator_Id> <Pdf>sample string 11</Pdf> <Photo>sample string 15</Photo> <Read>9</Read> <Recipient_Status /> <Remote_Id /> <Text>sample string 5</Text> <Transport>sample string 7</Transport> <Type>sample string 8</Type> <Video>sample string 16</Video> <attachments xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:anyType /> <d6p1:anyType /> </attachments> <Name>sample string 1</Name> <SendBy>sample string 3</SendBy> <Time>sample string 2</Time> </ClientMessages> <ClientMessages> <Ai_Tips /> <Audio>sample string 17</Audio> <Channel_Id>19</Channel_Id> <Client_Id>21</Client_Id> <Coordinates /> <Created>2024-11-16T19:03:05.8004619-03:00</Created> <Dialog_Id>20</Dialog_Id> <Id>4</Id> <Operator_Id>18</Operator_Id> <Pdf>sample string 11</Pdf> <Photo>sample string 15</Photo> <Read>9</Read> <Recipient_Status /> <Remote_Id /> <Text>sample string 5</Text> <Transport>sample string 7</Transport> <Type>sample string 8</Type> <Video>sample string 16</Video> <attachments xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:anyType /> <d6p1:anyType /> </attachments> <Name>sample string 1</Name> <SendBy>sample string 3</SendBy> <Time>sample string 2</Time> </ClientMessages> </Messages> </ClientGroupedMessages> <ClientGroupedMessages> <Date>2024-11-16T19:03:05.8004619-03:00</Date> <FormattedDate>sample string 2</FormattedDate> <Messages> <ClientMessages> <Ai_Tips /> <Audio>sample string 17</Audio> <Channel_Id>19</Channel_Id> <Client_Id>21</Client_Id> <Coordinates /> <Created>2024-11-16T19:03:05.8004619-03:00</Created> <Dialog_Id>20</Dialog_Id> <Id>4</Id> <Operator_Id>18</Operator_Id> <Pdf>sample string 11</Pdf> <Photo>sample string 15</Photo> <Read>9</Read> <Recipient_Status /> <Remote_Id /> <Text>sample string 5</Text> <Transport>sample string 7</Transport> <Type>sample string 8</Type> <Video>sample string 16</Video> <attachments xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:anyType /> <d6p1:anyType /> </attachments> <Name>sample string 1</Name> <SendBy>sample string 3</SendBy> <Time>sample string 2</Time> </ClientMessages> <ClientMessages> <Ai_Tips /> <Audio>sample string 17</Audio> <Channel_Id>19</Channel_Id> <Client_Id>21</Client_Id> <Coordinates /> <Created>2024-11-16T19:03:05.8004619-03:00</Created> <Dialog_Id>20</Dialog_Id> <Id>4</Id> <Operator_Id>18</Operator_Id> <Pdf>sample string 11</Pdf> <Photo>sample string 15</Photo> <Read>9</Read> <Recipient_Status /> <Remote_Id /> <Text>sample string 5</Text> <Transport>sample string 7</Transport> <Type>sample string 8</Type> <Video>sample string 16</Video> <attachments xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:anyType /> <d6p1:anyType /> </attachments> <Name>sample string 1</Name> <SendBy>sample string 3</SendBy> <Time>sample string 2</Time> </ClientMessages> </Messages> </ClientGroupedMessages> </Messages> </ClientChatData>