SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
blogs

Post a comment on a published post (requires comments to be enabled).

Post a comment on a published post (requires comments to be enabled).

POSThttps://app.softsolz.uk/api/v1/services/blogs/posts/published/{slug}/comments

Recent Requests

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

Path Params

slugstringrequired

Headers

Authorizationstringrequired

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

Body Params

contentstring

Comment text.

author_namestring

Display name; defaults to "Anonymous".

author_emailstring

Optional email; never shown publicly.

parent_idstring

Id of the comment being replied to, for threaded replies.

Response

Response Body

idstringComment id (numeric string).
parent_idstring | nullId of the comment being replied to; null for top-level comments.
author_namestringDisplay name.
contentstringComment text.
likesintegerLike count.
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.createPostsPublishedComment('<slug>', {});
console.log(result);

Credentials

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

Response · 201

{
"data": {
"id": "string",
"parent_id": "string",
"author_name": "string",
"content": "string",
"likes": 0,
"created_at": "string"
}
}