Unable to retrieve complete message history with /v2/chat/users/{from_user_id}/messages

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?

Thanks

Hi @Frank5
Thanks for reaching out and welcome to our Zoom Developer Forum!
Let me ask internally if there is a limit for this endpoint

1 Like

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

Hey Lisa,

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:

  1. Scroll to the top of the chat window
  2. View more messages…
  3. Scroll to the top of the chat window
  4. View more messages…
  5. (Until you reach the first)
  6. Select All
  7. Copy

?

Thanks for your help. I think what we have available might suffice but if there was a way…

Frank