Create a draft post.
Create a draft post.
https://staging.softsolz.uk/api/v1/services/blogs/postsRecent Requests
Log in to see full request historyHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Body Params
titlestringPost title.
body_htmlstringPost body as HTML; sanitized server-side.
subtitlestringOptional subtitle.
excerptstringOptional excerpt; auto-generated from the body when omitted.
slugstringOptional URL slug; defaults to a slugified title.
cover_image_urlstringCover image URL.
cover_image_altstringCover image alt text.
og_image_urlstringOpen Graph image URL.
seo_titlestringSEO title override.
seo_descriptionstringSEO description override.
categorystringCategory label.
tagsarray of stringsTags.
authorstringDisplay author/byline name.
author_image_urlstringByline avatar image URL (person photo or company logo). Falls back to the blog-wide default byline.
cta_labelstringOptional call-to-action label.
cta_urlstringOptional call-to-action URL.
featuredbooleanFeature this post.
no_indexbooleanExclude from search engines.
comments_enabledbooleanAllow readers to post comments on this post.
Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.blogs.createPost({});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 201
{ "data": {}}