POST api/Chat/GetChatHistory
Request Information
URI Parameters
None.
Body Parameters
ChatMessageModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ToUserId | string |
None. |
|
| FromUserId | string |
None. |
|
| Msg | string |
None. |
|
| ChatID | integer |
None. |
|
| CompanyId | string |
None. |
|
| ClinicId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ToUserId": "sample string 1",
"FromUserId": "sample string 2",
"Msg": "sample string 3",
"ChatID": 4,
"CompanyId": "sample string 5",
"ClinicId": "sample string 6"
}
application/xml, text/xml
Sample:
<ChatMessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iConceiveAPI.Models"> <ChatID>4</ChatID> <ClinicId>sample string 6</ClinicId> <CompanyId>sample string 5</CompanyId> <FromUserId>sample string 2</FromUserId> <Msg>sample string 3</Msg> <ToUserId>sample string 1</ToUserId> </ChatMessageModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ChatHistoryModel| Name | Description | Type | Additional information |
|---|---|---|---|
| FromUser | string |
None. |
|
| ToUser | string |
None. |
|
| Message | string |
None. |
|
| ChatDateTime | date |
None. |
|
| By | string |
None. |
|
| ChatID | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"FromUser": "sample string 1",
"ToUser": "sample string 2",
"Message": "sample string 3",
"ChatDateTime": "2026-04-21T15:11:32.6251468+05:30",
"By": "sample string 5",
"ChatID": 6
},
{
"FromUser": "sample string 1",
"ToUser": "sample string 2",
"Message": "sample string 3",
"ChatDateTime": "2026-04-21T15:11:32.6251468+05:30",
"By": "sample string 5",
"ChatID": 6
}
]
application/xml, text/xml
Sample:
<ArrayOfChatHistoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iConceiveAPI.Models">
<ChatHistoryModel>
<By>sample string 5</By>
<ChatDateTime>2026-04-21T15:11:32.6251468+05:30</ChatDateTime>
<ChatID>6</ChatID>
<FromUser>sample string 1</FromUser>
<Message>sample string 3</Message>
<ToUser>sample string 2</ToUser>
</ChatHistoryModel>
<ChatHistoryModel>
<By>sample string 5</By>
<ChatDateTime>2026-04-21T15:11:32.6251468+05:30</ChatDateTime>
<ChatID>6</ChatID>
<FromUser>sample string 1</FromUser>
<Message>sample string 3</Message>
<ToUser>sample string 2</ToUser>
</ChatHistoryModel>
</ArrayOfChatHistoryModel>