Get Media By List Of Message IDs: /media/list (POST)
Purpose:
Fetch all media files associated with a list of message ids
Input:
- Headers:
- Content-Type: application/json
- Authorization: The JWT token of the user.
- JSON Body:
- ids: (Uuid Array) The ids of the messages.
Output (200):
[
{
"id": "2de36fdf-caae-4ff3-a263-9c424559a870",
"file_name": "example.jpg",
"key": "media/convoforge/example.jpg",
"url": "https://example.com/media/convoforge/example.jpg",
"created_at": "2024-08-12T12:34:56",
"user_id": "51bc842a-3fba-44ad-a8ab-347a9698e9c5"
},
{
"id": "ed02f721-a64e-435b-b6f5-624ab43368d6",
"file_name": "example2.jpg",
"key": "media/convoforge/example2.jpg",
"url": "https://example.com/media/convoforge/example2.jpg",
"created_at": "2024-08-13T12:34:56",
"user_id": "8a0dbc8e-5086-4052-91d5-28d633dfdf8b"
}
]