/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

KeyDatatypeRequiredDescription
conversationIdstringConversation identifier for the resulting messages. Meaningful for SMS and Pager messages only.
dateFromstringThe 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
dateTostringThe 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
directionstringDirection for the resulting messages. If not specified, both inbound and outbound messages are returned. Multiple values are accepted
distinctConversationsstringIf 'True', then the latest messages per every conversation ID are returned
messageTypestringType for the resulting messages. If not specified, all types of messages are returned. Multiple values are accepted
recordCountstringLimits the number of records to be returned (works in combination with dateFrom and dateTo if specified)
syncTokenstringValue of syncToken property of last sync request response
syncTypestringType of message synchronization