Message History Export

📘

Note:

a) API supported only by application bot user. No additional header Of-User-Id required.
b) If one of the parameters between from or to is passed, API will return message history(sent or received) for that user. In case you need to fetch message history between two users, you need to pass both from and to parameters.

Accept:

  1. application/json (Default) : For return type as json
  2. application/octet-stream : For returning as Excel

Parameter Description:

ParameterRequiredDescription
applicationIdYesYour Applozic Application key configured in dashboard
startIndexNoStarting Index to fetch messages from list
pageSizeNoNumber of messages per page you want to fetch
fromNoUserId of the sender or receiver when you want to fetch message between any two users. Please check notes*
toNoUserId of the sender or receiver when you want to fetch message between any two users. Please check notes*
startTimeNoStart Time from when you want to fetch message list. It is number of milliseconds since January 1, 1970, 00:00:00 GMT
endTimeNoEnd Time upto when you want to fetch message list. It is number of milliseconds since January 1, 1970, 00:00:00 GMT
messageTypeNoMessage type of the message to check

Values for messageType:

ValueDescription
MessageDeliveredDelivered message
MessageUnDeliveredUndelivered message
MessageReadRead message
MessageUnReadUnread message

Values for timeUnit:

ValueDescription
MilliSecondsTime unit in milliseconds
SecondTime unit in Second
MinuteTime unit in Minute
HourTime unit in Hour
DayTime unit in Day
WeekTime unit in Week
MonthTime unit in Month
YearTime unit in year
Language
Authentication
Click Try It! to start a request and see the response here!