Get Media By Message ID: /media/ (GET)

Purpose:

Fetch all media files associated with a message id

Input:

  • Headers:
    • Authorization: The JWT token of the user.
  • Query Parameters:
    • message_id: (Uuid) The id of the message.

Output (200):

[
  {
    "id": "4d28ae3f-6f79-427d-a90b-9ddaf3973832",
    "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": "10340304-3ab7-47cd-9d48-7a61be06f624"
  },
  {
    "id": "7cd50ccd-b648-4e8a-a4a7-87950e6d5728",
    "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": "fe189be4-bbe2-4786-8270-b3e69ddff42f"
  }
]