GET message/getcorrespondentsforclients?userId={userId}&companyId={companyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

Required

companyId

integer

Required

Body Parameters

None.

Response Information

Resource Description

CorrespondentWithMessageVm
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

UserRole

integer

None.

LatestMessageId

integer

None.

LatestMessage

string

None.

IsLatestMessageRead

boolean

None.

LastMessageDate

date

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "userRole": 3,
  "latestMessageId": 1,
  "latestMessage": "sample string 4",
  "isLatestMessageRead": true,
  "lastMessageDate": "2025-12-06T03:35:21.4598602+00:00"
}

application/xml, text/xml

Sample:
<CorrespondentWithMessageVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Clickoapp2.Domain.ViewModels">
  <Id>1</Id>
  <IsLatestMessageRead>true</IsLatestMessageRead>
  <LastMessageDate>2025-12-06T03:35:21.4598602+00:00</LastMessageDate>
  <LatestMessage>sample string 4</LatestMessage>
  <LatestMessageId>1</LatestMessageId>
  <Name>sample string 2</Name>
  <UserRole>3</UserRole>
</CorrespondentWithMessageVm>