SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
blogs

List all comments on a post for moderation, of any status. Filter with ?status=.

List all comments on a post for moderation, of any status. Filter with ?status=.

GEThttps://app.softsolz.uk/api/v1/services/blogs/posts/{id}/comments

Recent Requests

Log in to see full request history
TimeStatusUser Agent
Make a request to see history.

Path Params

idstringrequired

Headers

Authorizationstringrequired

Bearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.

Response

Response Body · array of objects

idstringComment id (numeric string).
post_idstringId of the post this comment belongs to.
parent_idstring | nullId of the parent comment, if a reply.
author_namestringDisplay name.
author_emailstring | nullAuthor email; never shown publicly.
contentstringComment text.
statusstringModeration status.
likesintegerLike count.
source_kindstringHow the comment was submitted.
source_originstring | nullOrigin domain, when submitted via widget.
created_atstringWhen the comment was posted.

Request

import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.blogs.listPostComments('<id>', {});
console.log(result);

Credentials

Sent as a Bearer token. Stored only in your browser.

Response · 200

{
"data": [
{
"id": "string",
"post_id": "string",
"parent_id": "string",
"author_name": "string",
"author_email": "string",
"content": "string",
"status": "string",
"likes": 0,
"source_kind": "string",
"source_origin": "string",
"created_at": "string"
}
]
}