/restapi/v1.0/account/:accountId/extension/:extensionId/message-sync
GET {{baseUrl}}/restapi/v1.0/account/:accountId/extension/:extensionId/message-sync?conversationId=<long>&dateFrom=<dateTime>&dateTo=<dateTime>&direction=<string>&distinctConversations=<boolean>&messageType=<string>&recordCount=<integer>&syncToken=<string>&syncType=<string>
Message Synchronization
Request Params
| Key | Datatype | Required | Description | 
|---|---|---|---|
| conversationId | string | Conversation identifier for the resulting messages. Meaningful for SMS and Pager messages only. | |
| dateFrom | string | The start datetime for resulting messages in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is dateTo minus 24 hours | |
| dateTo | string | The end datetime for resulting messages in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is current time | |
| direction | string | Direction for the resulting messages. If not specified, both inbound and outbound messages are returned. Multiple values are accepted | |
| distinctConversations | string | If 'True', then the latest messages per every conversation ID are returned | |
| messageType | string | Type for the resulting messages. If not specified, all types of messages are returned. Multiple values are accepted | |
| recordCount | string | Limits the number of records to be returned (works in combination with dateFrom and dateTo if specified) | |
| syncToken | string | Value of syncToken property of last sync request response | |
| syncType | string | Type of message synchronization |