Skip to main content
GET
/
deal-folder
/
files
/
{file}
/
comments
Get the activity feed (comments + activity logs) for a file slot
curl --request GET \
  --url http://localhost/mogl/mogl-backend/api/deal-folder/files/{file}/comments \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "data": {
    "current_page": 1,
    "last_page": 3,
    "per_page": 10,
    "total": 27,
    "comment_count": 18,
    "data": [
      {
        "id": 300,
        "type": "comment",
        "comment": "Looks great!",
        "user": {
          "id": 42,
          "name": "Jane Doe",
          "profile_photo": "<string>",
          "role_id": 2,
          "user_type": "Athlete"
        },
        "event_type": "FILE_UPLOADED",
        "performed_by": {
          "id": 42,
          "name": "Jane Doe"
        },
        "on_behalf_of": {
          "id": 42,
          "name": "Jane Doe"
        },
        "created_at": "2026-04-01T13:00:00Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Path Parameters

file
integer
required

DealFolderFile ID (slot ID).

Example:

5

Query Parameters

page
integer

Page number (1-indexed).

Example:

1

limit
integer

Items per page (default 10).

Example:

10

Response

Paginated activity feed

status
string
Example:

"success"

data
object