POST Message/MessageApi/PublishMessagesToServer

Request Information

URI Parameters

None.

Body Parameters

PublishMesssageModel
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

CompanyId

globally unique identifier

None.

Messages

Collection of MessageUpsertInputModel

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "b1129105-9859-4ef5-b004-39adaa2e15d1",
  "CompanyId": "b1f7d1ba-3b14-4d28-95c7-a56ab95b1a89",
  "Messages": [
    {
      "Id": "591beec0-9407-47c0-8740-c5601a93f7c8",
      "ChannelId": "16709a72-e02f-4aa0-bf94-6cd4a6101dbe",
      "SenderId": "136e004c-5b41-4e8b-8e93-00831f455fe2",
      "ReceiverId": "45342d7c-ee0b-4928-a93e-f5decc54f8e7",
      "Message": "sample string 2",
      "IsDeleted": true,
      "IsEdited": true,
      "MessageDateTime": "2025-12-14T01:24:46.8208821+00:00",
      "UpdatedDateTime": "2025-12-14T01:24:46.8208821+00:00",
      "MessageType": 1,
      "Files": [
        {
          "FilePath": "sample string 1",
          "FileName": "sample string 2",
          "FileDuration": "sample string 3"
        },
        {
          "FilePath": "sample string 1",
          "FileName": "sample string 2",
          "FileDuration": "sample string 3"
        }
      ],
      "FilesXml": "sample string 3",
      "SenderName": "sample string 4",
      "ReceiverName": "sample string 5",
      "ChannelName": "sample string 6",
      "IsPinned": true,
      "IsStarred": true,
      "IsRead": true,
      "PinnedByUserId": "ec8a472d-ecab-4644-9304-8d2af3c9f0ef",
      "ReactedByUserId": "44c709cb-c450-4b90-907a-ed0effee1d76",
      "ReportMessage": "sample string 7",
      "TaggedMembers": [
        "aad65e3b-bcc6-4131-b6df-2a500420cdb0",
        "85c340e4-fa28-4854-899f-fd3deeff34e1"
      ],
      "TaggedMembersIds": "sample string 8",
      "ParentMessageId": "3ab27155-2a77-4514-82d8-3c3242818ce2",
      "FromUserId": "1aac75e2-0369-4ee3-b90b-c9bf6037e7ac",
      "IsChannel": true,
      "IsGroupChat": true,
      "IsArchieved": true,
      "SharedMessage": {
        "Id": "dea9e041-2c93-4a0d-8d27-83055193f8ac",
        "ChannelId": "66cfd696-803c-4e35-8f1f-4927fb3efa82",
        "SenderId": "5a59922f-0649-46aa-a3b5-e85e5a10fe74",
        "ReceiverId": "6ad3771a-2e68-45d9-9a77-637e9918b72b",
        "Message": "sample string 2",
        "MessageDateTime": "2025-12-14T01:24:46.8208821+00:00",
        "MessageType": 1,
        "Files": [
          {
            "FilePath": "sample string 1",
            "FileName": "sample string 2",
            "FileDuration": "sample string 3"
          },
          {
            "FilePath": "sample string 1",
            "FileName": "sample string 2",
            "FileDuration": "sample string 3"
          }
        ],
        "ReportMessage": "sample string 4",
        "TaggedMembersList": [
          {
            "MemberId": "4e0e1255-d443-49b8-ba85-289a135d39c6",
            "FullName": "sample string 2"
          },
          {
            "MemberId": "4e0e1255-d443-49b8-ba85-289a135d39c6",
            "FullName": "sample string 2"
          }
        ],
        "TaggedMembers": [
          "8a3d7bbd-46ff-472b-baa9-d3f539104d34",
          "aabe77e3-81d6-4f84-8c26-8fc3b1ad975e"
        ],
        "ParentMessageId": "9983a7e8-1403-4fe0-b752-81ddbd17ef3a",
        "SenderName": "sample string 5"
      },
      "SharedMessageId": "08e9a456-214e-49ad-b879-09506abf448e",
      "StarredByUserId": "b4f53766-e8c1-403c-a245-6e6e8374a261"
    },
    {
      "Id": "591beec0-9407-47c0-8740-c5601a93f7c8",
      "ChannelId": "16709a72-e02f-4aa0-bf94-6cd4a6101dbe",
      "SenderId": "136e004c-5b41-4e8b-8e93-00831f455fe2",
      "ReceiverId": "45342d7c-ee0b-4928-a93e-f5decc54f8e7",
      "Message": "sample string 2",
      "IsDeleted": true,
      "IsEdited": true,
      "MessageDateTime": "2025-12-14T01:24:46.8208821+00:00",
      "UpdatedDateTime": "2025-12-14T01:24:46.8208821+00:00",
      "MessageType": 1,
      "Files": [
        {
          "FilePath": "sample string 1",
          "FileName": "sample string 2",
          "FileDuration": "sample string 3"
        },
        {
          "FilePath": "sample string 1",
          "FileName": "sample string 2",
          "FileDuration": "sample string 3"
        }
      ],
      "FilesXml": "sample string 3",
      "SenderName": "sample string 4",
      "ReceiverName": "sample string 5",
      "ChannelName": "sample string 6",
      "IsPinned": true,
      "IsStarred": true,
      "IsRead": true,
      "PinnedByUserId": "ec8a472d-ecab-4644-9304-8d2af3c9f0ef",
      "ReactedByUserId": "44c709cb-c450-4b90-907a-ed0effee1d76",
      "ReportMessage": "sample string 7",
      "TaggedMembers": [
        "aad65e3b-bcc6-4131-b6df-2a500420cdb0",
        "85c340e4-fa28-4854-899f-fd3deeff34e1"
      ],
      "TaggedMembersIds": "sample string 8",
      "ParentMessageId": "3ab27155-2a77-4514-82d8-3c3242818ce2",
      "FromUserId": "1aac75e2-0369-4ee3-b90b-c9bf6037e7ac",
      "IsChannel": true,
      "IsGroupChat": true,
      "IsArchieved": true,
      "SharedMessage": {
        "Id": "dea9e041-2c93-4a0d-8d27-83055193f8ac",
        "ChannelId": "66cfd696-803c-4e35-8f1f-4927fb3efa82",
        "SenderId": "5a59922f-0649-46aa-a3b5-e85e5a10fe74",
        "ReceiverId": "6ad3771a-2e68-45d9-9a77-637e9918b72b",
        "Message": "sample string 2",
        "MessageDateTime": "2025-12-14T01:24:46.8208821+00:00",
        "MessageType": 1,
        "Files": [
          {
            "FilePath": "sample string 1",
            "FileName": "sample string 2",
            "FileDuration": "sample string 3"
          },
          {
            "FilePath": "sample string 1",
            "FileName": "sample string 2",
            "FileDuration": "sample string 3"
          }
        ],
        "ReportMessage": "sample string 4",
        "TaggedMembersList": [
          {
            "MemberId": "4e0e1255-d443-49b8-ba85-289a135d39c6",
            "FullName": "sample string 2"
          },
          {
            "MemberId": "4e0e1255-d443-49b8-ba85-289a135d39c6",
            "FullName": "sample string 2"
          }
        ],
        "TaggedMembers": [
          "8a3d7bbd-46ff-472b-baa9-d3f539104d34",
          "aabe77e3-81d6-4f84-8c26-8fc3b1ad975e"
        ],
        "ParentMessageId": "9983a7e8-1403-4fe0-b752-81ddbd17ef3a",
        "SenderName": "sample string 5"
      },
      "SharedMessageId": "08e9a456-214e-49ad-b879-09506abf448e",
      "StarredByUserId": "b4f53766-e8c1-403c-a245-6e6e8374a261"
    }
  ]
}

application/xml, text/xml

Sample:
<PublishMesssageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Communicator.Models.Messages">
  <CompanyId>b1f7d1ba-3b14-4d28-95c7-a56ab95b1a89</CompanyId>
  <Messages>
    <MessageUpsertInputModel>
      <ChannelId>16709a72-e02f-4aa0-bf94-6cd4a6101dbe</ChannelId>
      <ChannelName>sample string 6</ChannelName>
      <Files>
        <FileModel>
          <FileDuration>sample string 3</FileDuration>
          <FileName>sample string 2</FileName>
          <FilePath>sample string 1</FilePath>
        </FileModel>
        <FileModel>
          <FileDuration>sample string 3</FileDuration>
          <FileName>sample string 2</FileName>
          <FilePath>sample string 1</FilePath>
        </FileModel>
      </Files>
      <FilesXml>sample string 3</FilesXml>
      <FromUserId>1aac75e2-0369-4ee3-b90b-c9bf6037e7ac</FromUserId>
      <Id>591beec0-9407-47c0-8740-c5601a93f7c8</Id>
      <IsArchieved>true</IsArchieved>
      <IsDeleted>true</IsDeleted>
      <IsEdited>true</IsEdited>
      <IsGroupChat>true</IsGroupChat>
      <IsPinned>true</IsPinned>
      <IsRead>true</IsRead>
      <IsStarred>true</IsStarred>
      <Message>sample string 2</Message>
      <MessageDateTime>2025-12-14T01:24:46.8208821+00:00</MessageDateTime>
      <MessageType>Text</MessageType>
      <ParentMessageId>3ab27155-2a77-4514-82d8-3c3242818ce2</ParentMessageId>
      <PinnedByUserId>ec8a472d-ecab-4644-9304-8d2af3c9f0ef</PinnedByUserId>
      <ReactedByUserId>44c709cb-c450-4b90-907a-ed0effee1d76</ReactedByUserId>
      <ReceiverId>45342d7c-ee0b-4928-a93e-f5decc54f8e7</ReceiverId>
      <ReceiverName>sample string 5</ReceiverName>
      <ReportMessage>sample string 7</ReportMessage>
      <SenderId>136e004c-5b41-4e8b-8e93-00831f455fe2</SenderId>
      <SenderName>sample string 4</SenderName>
      <SharedMessage>
        <ChannelId>66cfd696-803c-4e35-8f1f-4927fb3efa82</ChannelId>
        <Files>
          <FileModel>
            <FileDuration>sample string 3</FileDuration>
            <FileName>sample string 2</FileName>
            <FilePath>sample string 1</FilePath>
          </FileModel>
          <FileModel>
            <FileDuration>sample string 3</FileDuration>
            <FileName>sample string 2</FileName>
            <FilePath>sample string 1</FilePath>
          </FileModel>
        </Files>
        <Id>dea9e041-2c93-4a0d-8d27-83055193f8ac</Id>
        <Message>sample string 2</Message>
        <MessageDateTime>2025-12-14T01:24:46.8208821+00:00</MessageDateTime>
        <MessageType>Text</MessageType>
        <ParentMessageId>9983a7e8-1403-4fe0-b752-81ddbd17ef3a</ParentMessageId>
        <ReceiverId>6ad3771a-2e68-45d9-9a77-637e9918b72b</ReceiverId>
        <ReportMessage>sample string 4</ReportMessage>
        <SenderId>5a59922f-0649-46aa-a3b5-e85e5a10fe74</SenderId>
        <SenderName>sample string 5</SenderName>
        <TaggedMembers xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:guid>8a3d7bbd-46ff-472b-baa9-d3f539104d34</d5p1:guid>
          <d5p1:guid>aabe77e3-81d6-4f84-8c26-8fc3b1ad975e</d5p1:guid>
        </TaggedMembers>
        <TaggedMembersList>
          <TaggedOutputModel>
            <FullName>sample string 2</FullName>
            <MemberId>4e0e1255-d443-49b8-ba85-289a135d39c6</MemberId>
          </TaggedOutputModel>
          <TaggedOutputModel>
            <FullName>sample string 2</FullName>
            <MemberId>4e0e1255-d443-49b8-ba85-289a135d39c6</MemberId>
          </TaggedOutputModel>
        </TaggedMembersList>
      </SharedMessage>
      <SharedMessageId>08e9a456-214e-49ad-b879-09506abf448e</SharedMessageId>
      <StarredByUserId>b4f53766-e8c1-403c-a245-6e6e8374a261</StarredByUserId>
      <TaggedMembers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:guid>aad65e3b-bcc6-4131-b6df-2a500420cdb0</d4p1:guid>
        <d4p1:guid>85c340e4-fa28-4854-899f-fd3deeff34e1</d4p1:guid>
      </TaggedMembers>
      <TaggedMembersIds>sample string 8</TaggedMembersIds>
      <UpdatedDateTime>2025-12-14T01:24:46.8208821+00:00</UpdatedDateTime>
    </MessageUpsertInputModel>
    <MessageUpsertInputModel>
      <ChannelId>16709a72-e02f-4aa0-bf94-6cd4a6101dbe</ChannelId>
      <ChannelName>sample string 6</ChannelName>
      <Files>
        <FileModel>
          <FileDuration>sample string 3</FileDuration>
          <FileName>sample string 2</FileName>
          <FilePath>sample string 1</FilePath>
        </FileModel>
        <FileModel>
          <FileDuration>sample string 3</FileDuration>
          <FileName>sample string 2</FileName>
          <FilePath>sample string 1</FilePath>
        </FileModel>
      </Files>
      <FilesXml>sample string 3</FilesXml>
      <FromUserId>1aac75e2-0369-4ee3-b90b-c9bf6037e7ac</FromUserId>
      <Id>591beec0-9407-47c0-8740-c5601a93f7c8</Id>
      <IsArchieved>true</IsArchieved>
      <IsDeleted>true</IsDeleted>
      <IsEdited>true</IsEdited>
      <IsGroupChat>true</IsGroupChat>
      <IsPinned>true</IsPinned>
      <IsRead>true</IsRead>
      <IsStarred>true</IsStarred>
      <Message>sample string 2</Message>
      <MessageDateTime>2025-12-14T01:24:46.8208821+00:00</MessageDateTime>
      <MessageType>Text</MessageType>
      <ParentMessageId>3ab27155-2a77-4514-82d8-3c3242818ce2</ParentMessageId>
      <PinnedByUserId>ec8a472d-ecab-4644-9304-8d2af3c9f0ef</PinnedByUserId>
      <ReactedByUserId>44c709cb-c450-4b90-907a-ed0effee1d76</ReactedByUserId>
      <ReceiverId>45342d7c-ee0b-4928-a93e-f5decc54f8e7</ReceiverId>
      <ReceiverName>sample string 5</ReceiverName>
      <ReportMessage>sample string 7</ReportMessage>
      <SenderId>136e004c-5b41-4e8b-8e93-00831f455fe2</SenderId>
      <SenderName>sample string 4</SenderName>
      <SharedMessage>
        <ChannelId>66cfd696-803c-4e35-8f1f-4927fb3efa82</ChannelId>
        <Files>
          <FileModel>
            <FileDuration>sample string 3</FileDuration>
            <FileName>sample string 2</FileName>
            <FilePath>sample string 1</FilePath>
          </FileModel>
          <FileModel>
            <FileDuration>sample string 3</FileDuration>
            <FileName>sample string 2</FileName>
            <FilePath>sample string 1</FilePath>
          </FileModel>
        </Files>
        <Id>dea9e041-2c93-4a0d-8d27-83055193f8ac</Id>
        <Message>sample string 2</Message>
        <MessageDateTime>2025-12-14T01:24:46.8208821+00:00</MessageDateTime>
        <MessageType>Text</MessageType>
        <ParentMessageId>9983a7e8-1403-4fe0-b752-81ddbd17ef3a</ParentMessageId>
        <ReceiverId>6ad3771a-2e68-45d9-9a77-637e9918b72b</ReceiverId>
        <ReportMessage>sample string 4</ReportMessage>
        <SenderId>5a59922f-0649-46aa-a3b5-e85e5a10fe74</SenderId>
        <SenderName>sample string 5</SenderName>
        <TaggedMembers xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:guid>8a3d7bbd-46ff-472b-baa9-d3f539104d34</d5p1:guid>
          <d5p1:guid>aabe77e3-81d6-4f84-8c26-8fc3b1ad975e</d5p1:guid>
        </TaggedMembers>
        <TaggedMembersList>
          <TaggedOutputModel>
            <FullName>sample string 2</FullName>
            <MemberId>4e0e1255-d443-49b8-ba85-289a135d39c6</MemberId>
          </TaggedOutputModel>
          <TaggedOutputModel>
            <FullName>sample string 2</FullName>
            <MemberId>4e0e1255-d443-49b8-ba85-289a135d39c6</MemberId>
          </TaggedOutputModel>
        </TaggedMembersList>
      </SharedMessage>
      <SharedMessageId>08e9a456-214e-49ad-b879-09506abf448e</SharedMessageId>
      <StarredByUserId>b4f53766-e8c1-403c-a245-6e6e8374a261</StarredByUserId>
      <TaggedMembers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:guid>aad65e3b-bcc6-4131-b6df-2a500420cdb0</d4p1:guid>
        <d4p1:guid>85c340e4-fa28-4854-899f-fd3deeff34e1</d4p1:guid>
      </TaggedMembers>
      <TaggedMembersIds>sample string 8</TaggedMembersIds>
      <UpdatedDateTime>2025-12-14T01:24:46.8208821+00:00</UpdatedDateTime>
    </MessageUpsertInputModel>
  </Messages>
  <UserId>b1129105-9859-4ef5-b004-39adaa2e15d1</UserId>
</PublishMesssageModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

JsonResultOfCommunicatorJsonResult
NameDescriptionTypeAdditional information
Content

CommunicatorJsonResult

None.

SerializerSettings

JsonSerializerSettings

None.

Encoding

Encoding

None.

Request

HttpRequestMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.