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
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| 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. |
| array of string | required, max 1000 items | Unique identifiers of Message threads from where to return messages. |
| optional, max length 1 months | Interval in which the Message was created. | |
| required | Limitation on the quantity of message data returned (using cursor pagination). |
Response
Property | Type | Contract | Description |
---|---|---|---|
| array of Messages | required | The filtered messages. |
| 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
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the message. |
| string | required | Unique identifier of the Message thread which the message belongs to. |
| string | required | Text of the message. |
| required | The sender of the message. | |
| string | required | Creation date and time of the message in UTC timezone in ISO 8601 format. |
Sender
Property | Type | Contract | Description |
---|---|---|---|
| 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
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| array of Message parameters | required | Messages to be added. |
Message parameters
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Text of the message. |
| string | required | Unique identifier of the Message thread to which the message should be added. |
| string | optional | Identifier of the message to be created. |
Response
Property | Type | Contract | Description |
---|---|---|---|
| array of Added messages | required | Collection of created messages. |
Added Message
Property | Type | Contract | Description |
---|---|---|---|
| string | optional | Identifier of the created message. |
| string | Message that was added to the Message thread. |
Last updated