POST api/Chat/GetLastMessage
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 ChatResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| By | string |
None. |
|
| ChatID | integer |
None. |
|
| ChatDateTime | date |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Message": "sample string 1",
"By": "sample string 2",
"ChatID": 3,
"ChatDateTime": "2026-04-21T15:11:31.6245767+05:30"
},
{
"Message": "sample string 1",
"By": "sample string 2",
"ChatID": 3,
"ChatDateTime": "2026-04-21T15:11:31.6245767+05:30"
}
]
application/xml, text/xml
Sample:
<ArrayOfChatResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iConceiveAPI.Models">
<ChatResponseModel>
<By>sample string 2</By>
<ChatDateTime>2026-04-21T15:11:31.6245767+05:30</ChatDateTime>
<ChatID>3</ChatID>
<Message>sample string 1</Message>
</ChatResponseModel>
<ChatResponseModel>
<By>sample string 2</By>
<ChatDateTime>2026-04-21T15:11:31.6245767+05:30</ChatDateTime>
<ChatID>3</ChatID>
<Message>sample string 1</Message>
</ChatResponseModel>
</ArrayOfChatResponseModel>