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://staging.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.

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": {}
}