SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
blogs

Create a draft post.

Create a draft post.

POSThttps://staging.softsolz.uk/api/v1/services/blogs/posts

Recent Requests

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

Headers

Authorizationstringrequired

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

Idempotency-Keystring

Optional idempotency key for safe retries.

Body Params

titlestring

Post title.

body_htmlstring

Post body as HTML; sanitized server-side.

subtitlestring

Optional subtitle.

excerptstring

Optional excerpt; auto-generated from the body when omitted.

slugstring

Optional URL slug; defaults to a slugified title.

cover_image_urlstring

Cover image URL.

cover_image_altstring

Cover image alt text.

og_image_urlstring

Open Graph image URL.

seo_titlestring

SEO title override.

seo_descriptionstring

SEO description override.

categorystring

Category label.

tagsarray of strings

Tags.

authorstring

Display author/byline name.

author_image_urlstring

Byline avatar image URL (person photo or company logo). Falls back to the blog-wide default byline.

cta_labelstring

Optional call-to-action label.

cta_urlstring

Optional call-to-action URL.

featuredboolean

Feature this post.

no_indexboolean

Exclude from search engines.

comments_enabledboolean

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