Post a comment on a published post (requires comments to be enabled).
Post a comment on a published post (requires comments to be enabled).
POST
https://staging.softsolz.uk/api/v1/services/blogs/posts/published/{slug}/commentsRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
slugstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Body Params
contentstringComment text.
author_namestringDisplay name; defaults to "Anonymous".
author_emailstringOptional email; never shown publicly.
parent_idstringId 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": {}}