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
Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token.
MessageThreadIds
array of string
required, max 1000 items
Unique identifiers of Message threads from where to return messages.
Limitation
required
Limitation on the quantity of message data returned (using cursor pagination).
Response
Cursor
string
optional
Unique identifier of the last and hence oldest message returned. This can be used in Limitation in a subsequent request to fetch the next batch of older messages.
Message
Id
string
required
Unique identifier of the message.
Text
string
required
Text of the message.
CreatedUtc
string
required
Creation date and time of the message in UTC timezone in ISO 8601 format.
Sender
Discriminator
string 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.
Message parameters
Text
string
required
Text of the message.
Identifier
string
optional
Identifier of the message to be created.
Response
Added Message
Identifier
string
optional
Identifier of the created message.
Last updated