curl --request POST \
--url http://localhost/mogl/mogl-backend/api/partner/content/deal-folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"date_filter_range": "All",
"is_all_selected": true,
"job_id": [
2768,
2731
],
"excluded_job_id": [
123
]
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/partner/content/deal-folders"
payload = {
"date_filter_range": "All",
"is_all_selected": True,
"job_id": [2768, 2731],
"excluded_job_id": [123]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date_filter_range: 'All',
is_all_selected: true,
job_id: [2768, 2731],
excluded_job_id: [123]
})
};
fetch('http://localhost/mogl/mogl-backend/api/partner/content/deal-folders', 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/partner/content/deal-folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'date_filter_range' => 'All',
'is_all_selected' => true,
'job_id' => [
2768,
2731
],
'excluded_job_id' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/partner/content/deal-folders"
payload := strings.NewReader("{\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [\n 2768,\n 2731\n ],\n \"excluded_job_id\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/mogl/mogl-backend/api/partner/content/deal-folders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [\n 2768,\n 2731\n ],\n \"excluded_job_id\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/partner/content/deal-folders")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [\n 2768,\n 2731\n ],\n \"excluded_job_id\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Content Deal Folders",
"data": [
{
"job_id": 2768,
"job_name": "Summer Campaign",
"job_posted_at": "2026-05-30T12:00:00Z",
"active_athlete_count": 2,
"deliverable_count": 3,
"deal_folder_status": "Needs Approval",
"state_counts": {
"awaiting_upload": 1,
"needs_approval": 1,
"revision_requested": 0,
"file_approved": 1
},
"file_counts": {
"total": 4,
"uploaded": 3,
"approved": 1,
"needs_revision": 0
},
"athletes_preview": [
{
"athlete_id": 16070,
"athlete_name": "Jane Doe",
"profile_image": "<string>"
}
],
"latest_activity_at": "2026-06-10T09:30:00Z",
"approved_summary": "0/3 approved"
}
],
"total_count": 5,
"current_page": 1,
"per_page": 20,
"last_page": 1
}{
"message": "Unauthenticated."
}Content Tab — paginated job list with deal-folder rollups
Returns the partner Content Tab job list — one row per job, with rolled-up deal-folder stats: active athlete count, deliverable count, state and file counts, athletes preview, approved summary, and rolled-up status.
The filter body uses the same contract as the existing content-library list endpoint. Only active folders are returned. Sorted newest-first by job posted date.
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/partner/content/deal-folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"date_filter_range": "All",
"is_all_selected": true,
"job_id": [
2768,
2731
],
"excluded_job_id": [
123
]
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/partner/content/deal-folders"
payload = {
"date_filter_range": "All",
"is_all_selected": True,
"job_id": [2768, 2731],
"excluded_job_id": [123]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date_filter_range: 'All',
is_all_selected: true,
job_id: [2768, 2731],
excluded_job_id: [123]
})
};
fetch('http://localhost/mogl/mogl-backend/api/partner/content/deal-folders', 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/partner/content/deal-folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'date_filter_range' => 'All',
'is_all_selected' => true,
'job_id' => [
2768,
2731
],
'excluded_job_id' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/partner/content/deal-folders"
payload := strings.NewReader("{\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [\n 2768,\n 2731\n ],\n \"excluded_job_id\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost/mogl/mogl-backend/api/partner/content/deal-folders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [\n 2768,\n 2731\n ],\n \"excluded_job_id\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/partner/content/deal-folders")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [\n 2768,\n 2731\n ],\n \"excluded_job_id\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Content Deal Folders",
"data": [
{
"job_id": 2768,
"job_name": "Summer Campaign",
"job_posted_at": "2026-05-30T12:00:00Z",
"active_athlete_count": 2,
"deliverable_count": 3,
"deal_folder_status": "Needs Approval",
"state_counts": {
"awaiting_upload": 1,
"needs_approval": 1,
"revision_requested": 0,
"file_approved": 1
},
"file_counts": {
"total": 4,
"uploaded": 3,
"approved": 1,
"needs_revision": 0
},
"athletes_preview": [
{
"athlete_id": 16070,
"athlete_name": "Jane Doe",
"profile_image": "<string>"
}
],
"latest_activity_at": "2026-06-10T09:30:00Z",
"approved_summary": "0/3 approved"
}
],
"total_count": 5,
"current_page": 1,
"per_page": 20,
"last_page": 1
}{
"message": "Unauthenticated."
}Authorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Query Parameters
Page number (1-indexed).
1
Items per page (default 20).
20
Body
One of: All, last_30_days, last_week, this_week, or a custom range MM/DD/YYYY-MM/DD/YYYY.
"All"
When true, all jobs are selected (use excluded_job_id to subtract). When false, only the IDs in job_id are included.
true
Specific job IDs to include (used when is_all_selected = false).
[2768, 2731]
Job IDs to exclude (used when is_all_selected = true).
[123]