We were able to download chat messages for a larger number of users, capturing senderID, ChannelID, messageID and message text.
We used GET /chat/users/{userId}/messages for this.
The problem we now ran into is that when using GET /chat/users/{userId}/messages/{messageId} or DELETE /chat/users/{userId}/messages/{messageId}, the API returns 400 for older chat messages.
Messages sent within a month or two can be listed and/or deleted.
Are there any time restrictions when accessing individual messages?
Are you saying that you were able to retrieve chat messages which are 2 months or older?
Retrieving and deleting newer chat messages works perfectly fine for me, but when trying to get a chat message I sent August 9 (just as an example), the API returns status 400.
Code 5401 / Message does not exist.
And I know that the message exists as I am able to retrieve it (together with others) when using
@martin.henning Thanks for providing us the details. Do you know when these options were activated?
Lets say for example, you are trying to retrieve the chat data from June, but the options in screenshot were not activated until august, then you wont get the messages before that date. We think that is exactly what is happening in your case.