Get paginated comments for a brand-uploaded deal asset
curl --request GET \
--url http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"current_page": 1,
"last_page": 2,
"per_page": 10,
"total": 15,
"comment_count": 15,
"data": [
{
"id": 901,
"type": "comment",
"comment": "Logo placement looks good.",
"user": {
"id": 42,
"name": "Jane Doe",
"profile_photo": "<string>",
"role_id": 2,
"user_type": "Athlete"
},
"created_at": "2026-05-27T07:10:00Z"
}
]
}
}{
"message": "Unauthenticated."
}{
"status": "error",
"message": "Deal folder not found."
}{
"message": "The given data was invalid.",
"errors": {}
}Get paginated comments for a brand-uploaded deal asset
Returns the paginated comment thread for a brand-uploaded deal asset (title_and_description_documents_mappings.id). As a side effect, marks the viewer’s unread comments on this asset as read. Accessible by athlete, brand, or agent. The top-level data.comment_count field is the total number of comments. Example: /deal-folder/12/assets/77/comments?page=1&limit=10.
GET
/
deal-folder
/
{dealFolder}
/
assets
/
{documentId}
/
comments
Get paginated comments for a brand-uploaded deal asset
curl --request GET \
--url http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/deal-folder/{dealFolder}/assets/{documentId}/comments")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"current_page": 1,
"last_page": 2,
"per_page": 10,
"total": 15,
"comment_count": 15,
"data": [
{
"id": 901,
"type": "comment",
"comment": "Logo placement looks good.",
"user": {
"id": 42,
"name": "Jane Doe",
"profile_photo": "<string>",
"role_id": 2,
"user_type": "Athlete"
},
"created_at": "2026-05-27T07:10:00Z"
}
]
}
}{
"message": "Unauthenticated."
}{
"status": "error",
"message": "Deal folder not found."
}{
"message": "The given data was invalid.",
"errors": {}
}Authorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Path Parameters
Deal folder ID.
Example:
12
title_and_description_documents_mappings.id of the deal asset.
Example:
77
Query Parameters
Page number (1-indexed).
Example:
1
Items per page (default 10).
Example:
10