I am trying to allow download of a user’s entire chat history for compliance purposes.
Using the /v2/chat/users/{from_user_id}/messages API only allows me to retrieve about the last two years. There’s no mention of a time limit in the API docs and I have set the from and to parameters to easily cover the entire message history. The history I do receive is completely comprehensive, as far as my checking goes, with no time outs or rate limit messages, so am I missing something?
Hey @Frank5
Would you be able to share a tracking ID from the request you are making and only getting data back from the last 2 years?
Can you check how long the cloud storage setting is for chat messages?
Web admin page: Account Management => Account Settings => Team Chat => Set data residency and retention period for messages and files
Ah, now that is interesting: Direct and group = 3 years; Channels = 2 years
Darn. So users are showing me whatever is cached locally and they would never be accessible from the API? Ok, if that IS the case, is there a way of them saving their messages without:
Scroll to the top of the chat window
View more messages…
Scroll to the top of the chat window
View more messages…
(Until you reach the first)
Select All
Copy
?
Thanks for your help. I think what we have available might suffice but if there was a way…