Get content library assets with pagination
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/partner/content/content-library \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"page": 1,
"limit": 12,
"page_limit": 10,
"date_filter_range": "All",
"is_all_selected": true,
"job_id": [],
"excluded_job_id": []
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/partner/content/content-library"
payload = {
"page": 1,
"limit": 12,
"page_limit": 10,
"date_filter_range": "All",
"is_all_selected": True,
"job_id": [],
"excluded_job_id": []
}
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({
page: 1,
limit: 12,
page_limit: 10,
date_filter_range: 'All',
is_all_selected: true,
job_id: [],
excluded_job_id: []
})
};
fetch('http://localhost/mogl/mogl-backend/api/partner/content/content-library', 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/content-library",
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([
'page' => 1,
'limit' => 12,
'page_limit' => 10,
'date_filter_range' => 'All',
'is_all_selected' => true,
'job_id' => [
],
'excluded_job_id' => [
]
]),
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/content-library"
payload := strings.NewReader("{\n \"page\": 1,\n \"limit\": 12,\n \"page_limit\": 10,\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [],\n \"excluded_job_id\": []\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/content-library")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"page\": 1,\n \"limit\": 12,\n \"page_limit\": 10,\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [],\n \"excluded_job_id\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/partner/content/content-library")
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 \"page\": 1,\n \"limit\": 12,\n \"page_limit\": 10,\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [],\n \"excluded_job_id\": []\n}"
response = http.request(request)
puts response.read_bodyGet content library assets with pagination
POST
/
partner
/
content
/
content-library
Get content library assets with pagination
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/partner/content/content-library \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"page": 1,
"limit": 12,
"page_limit": 10,
"date_filter_range": "All",
"is_all_selected": true,
"job_id": [],
"excluded_job_id": []
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/partner/content/content-library"
payload = {
"page": 1,
"limit": 12,
"page_limit": 10,
"date_filter_range": "All",
"is_all_selected": True,
"job_id": [],
"excluded_job_id": []
}
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({
page: 1,
limit: 12,
page_limit: 10,
date_filter_range: 'All',
is_all_selected: true,
job_id: [],
excluded_job_id: []
})
};
fetch('http://localhost/mogl/mogl-backend/api/partner/content/content-library', 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/content-library",
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([
'page' => 1,
'limit' => 12,
'page_limit' => 10,
'date_filter_range' => 'All',
'is_all_selected' => true,
'job_id' => [
],
'excluded_job_id' => [
]
]),
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/content-library"
payload := strings.NewReader("{\n \"page\": 1,\n \"limit\": 12,\n \"page_limit\": 10,\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [],\n \"excluded_job_id\": []\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/content-library")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"page\": 1,\n \"limit\": 12,\n \"page_limit\": 10,\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [],\n \"excluded_job_id\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/partner/content/content-library")
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 \"page\": 1,\n \"limit\": 12,\n \"page_limit\": 10,\n \"date_filter_range\": \"All\",\n \"is_all_selected\": true,\n \"job_id\": [],\n \"excluded_job_id\": []\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Body
application/json
Page number (default 1)
Example:
1
Items per page
Example:
12
Alias for limit (takes priority)
Example:
10
Date range filter (default All)
Example:
"All"
If true, returns assets from all jobs
Example:
true
Array of job IDs to filter by (used when is_all_selected is false)
Example:
[]
Array of job IDs to exclude
Example:
[]
Response
200
Content library assets