Get all comments for tenant (moderation)
curl --request GET \
--url https://api.octaviatech.app/cms/articles/comments/getAll \
--header 'x-api-key: <api-key>'import requests
url = "https://api.octaviatech.app/cms/articles/comments/getAll"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.octaviatech.app/cms/articles/comments/getAll', 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 => "https://api.octaviatech.app/cms/articles/comments/getAll",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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 := "https://api.octaviatech.app/cms/articles/comments/getAll"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.octaviatech.app/cms/articles/comments/getAll")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.octaviatech.app/cms/articles/comments/getAll")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "Tenant comments retrieved successfully",
"data": {
"comments": [
{
"articleId": "{{objectId}}",
"actorType": "user",
"content": "Great write-up, thanks for sharing.",
"likes": 2,
"dislikes": 0,
"status": "approved",
"createdAt": "2025-05-22T21:42:41.596Z",
"updatedAt": "2025-05-22T21:42:41.596Z",
"parentId": null,
"user": {
"firstName": "Ada",
"lastName": "Lovelace",
"avatar": "https://cdn.example.com/a.jpg"
},
"article": {
"_id": "{{objectId}}",
"slug": "droopy-nose",
"mainTitle": {
"en": "Droopy Nose",
"es": "Nariz caída"
}
},
"categories": [
{
"name": "Health",
"slug": "health"
}
]
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 20,
"totalPages": 1
}
}
}{
"success": false,
"statusCode": 401,
"message": "Unauthorized",
"data": null
}{
"success": false,
"statusCode": 500,
"message": "Server Error",
"data": null
}Comments & Reactions
Get All Comments
Get All Comments.
GET
/
articles
/
comments
/
getAll
Get all comments for tenant (moderation)
curl --request GET \
--url https://api.octaviatech.app/cms/articles/comments/getAll \
--header 'x-api-key: <api-key>'import requests
url = "https://api.octaviatech.app/cms/articles/comments/getAll"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.octaviatech.app/cms/articles/comments/getAll', 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 => "https://api.octaviatech.app/cms/articles/comments/getAll",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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 := "https://api.octaviatech.app/cms/articles/comments/getAll"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.octaviatech.app/cms/articles/comments/getAll")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.octaviatech.app/cms/articles/comments/getAll")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "Tenant comments retrieved successfully",
"data": {
"comments": [
{
"articleId": "{{objectId}}",
"actorType": "user",
"content": "Great write-up, thanks for sharing.",
"likes": 2,
"dislikes": 0,
"status": "approved",
"createdAt": "2025-05-22T21:42:41.596Z",
"updatedAt": "2025-05-22T21:42:41.596Z",
"parentId": null,
"user": {
"firstName": "Ada",
"lastName": "Lovelace",
"avatar": "https://cdn.example.com/a.jpg"
},
"article": {
"_id": "{{objectId}}",
"slug": "droopy-nose",
"mainTitle": {
"en": "Droopy Nose",
"es": "Nariz caída"
}
},
"categories": [
{
"name": "Health",
"slug": "health"
}
]
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 20,
"totalPages": 1
}
}
}{
"success": false,
"statusCode": 401,
"message": "Unauthorized",
"data": null
}{
"success": false,
"statusCode": 500,
"message": "Server Error",
"data": null
}Authorizations
Query Parameters
Required range:
x >= 1Example:
1
Defaults to 20, capped at 100
Required range:
1 <= x <= 100Example:
20
Filter by moderation status. Values outside the enum are ignored.
Available options:
pending, approved, rejected Example:
"pending"
Only comments created on or after this date
Example:
"2025-05-01"
Only comments created on or before this date (end of day)
Example:
"2025-05-31"
Pattern:
^[a-fA-F0-9]{24}$Example:
"{{objectId}}"
Pattern:
^[a-fA-F0-9]{24}$Example:
"{{objectId}}"
Case-insensitive match against the article slug (or full-text search)
Example:
"droopy-nose"
Response
OK
Was this page helpful?

