Messages
Get all messages
Get all messages belonging to the specified Message threads. Messages can only be returned for message threads you have created. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/messages/getAll
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
EnterpriseIds
array of string
optional, max 1000 items
MessageThreadIds
array of string
required, max 1000 items
CreatedUtc
optional, max length 1 months
Limitation
required
Limitation on the quantity of message data returned (using cursor pagination).
Response
Messages
required
The filtered messages.
Cursor
string
optional
Message
Id
string
required
Unique identifier of the message.
MessageThreadId
string
required
Text
string
required
Text of the message.
Sender
required
The sender of the message.
CreatedUtc
string
required
Creation date and time of the message in UTC timezone in ISO 8601 format.
Sender
Discriminator
required
The source of the message, either the enterprise or the client application.
Sender discriminator
Enterprise
- the message was created by an employee of the enterpriseApplication
- the message was created by the third party application
Add messages
Add the specified messages to the specified Message threads. You can only add messages to message threads that you have created.
Request
[PlatformAddress]/api/connector/v1/messages/add
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
Messages
required
Messages to be added.
Message parameters
Text
string
required
Text of the message.
ThreadId
string
required
Identifier
string
optional
Identifier of the message to be created.
Response
Messages
required
Collection of created messages.
Added Message
Identifier
string
optional
Identifier of the created message.
Message
string
Last updated