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://app.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.
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" }}