Getting multiple types of messages at once

I want to create a page where I can list all of the files attached to messages within a single channel.

From what I see getMessages doesn’t allow to specify multiple types, is there any other way I can achieve this?

Hello @jfiejka , Our team recommends using the getMessages API and specifying the data type as file to filter for messages with file attachments. You can refer to the documentation here for more details: Query and Filter Messages | Amity Docs.

Let us know if you have any further questions!

I don’t see how it can be helpful.

When creating a message, I set the dataType according to what’s attached to the message.
video for videos, image for images and file for files.

I want to list all of the media attachments on one page, including both, images and videos.

Hello @jfiejka , Unfortunately, when listing media attachments, we currently need to call the data separately for each type, meaning we cannot list both images and videos in a single request. Therefore, you would need to make three separate calls: one for images, one for videos, and one for other file types.

Let us know if you have any further questions!