Agent Private Message

Agent Private Messages
- Agent Private Messages Manage
POST livechat/agentPrivateMessages:Search
Agent Private Message JSON Format

Agent Private Message is represented as simple flat JSON objects with the following keys:

Name Type Description
id integer Id of the private message.
formAgentId guid Id of the sender agent.
toAgentId guid Id of the recipient agent.
content string Content of the private message.
attachmentFileKey string Key value of the attachment.
time datetime Time of the private message.
Search Agent Private Messages

POST livechat/agentPrivateMessages:Search


Name Type In Required Description
pageIndex integer query no Page index.
filters array body no Filter array. Available items are: requestedTime, agent.
pageSize integer query no Page size.
include string query no Available values for Include are: "campaign", "chatAgent", "chatWrapupCategory", "contactIdentity", "department", "fromAgent", "toAgent".

An array of   Agent Private Message


Sample Request:

curl \
-X 'POST' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-D '{"filters":[{"name":"time","operator":"is","value":["2021-04-24T07:00:00.000Z","2021-04-25T07:00:00.000Z"]},{"name":"keywords","operator":"is","value":["hello"]}]}'


 HTTP/1.1 200 OK

{"total":1,"pageCount":0, "list": [ {"id":5,"fromAgentId":"3f41bdd2-0a1a-4c5a-9400-c275e52fe892","toAgentId":"87ad4be9-89f5-4e57-ae9e-2d5fee8ed3e5","text":"hello","messageType":"text","attachmentFileKey":" ","time":"2021-02-03T09:22:24.9893626Z" } ],"pageIndex":-1,"pageSize":0}