DocsAPI ReferencePost/bff/post/ai-create-from-topic
postPostAdmin BFF

/bff/post/ai-create-from-topic

Drafts the full article body via AI (title, perex, content as Markdown), saves it as a private draft (visibility=private, published_date=NULL) via the existing addPost() pipeline. Returns the new post externalId so the caller can redirect to /post/. Synchronous: typical 15-40s.

PostpostBffPostAi-create-from-topic

Parameters

4 body

4 total
Body · 4
topicTitlestringRequired

Selected topic title from /ai-suggest-topics.

Length: 3300
topicAnglestringRequired

Editorial angle/hook for the topic.

Length: 3500
categoryExternalIdstringRequired

External ID of the category the article belongs to.

Length: 132
localestringRequired

Communication locale code used to filter content.

Supported locales: cs, en, fr, it, pl, de, sk, sv, es, zh, ja, uk, da.

Length: 22

Request

POST /bff/post/ai-create-from-topic

post
curl -X POST "https://api.bizkithub.com/bff/post/ai-create-from-topic" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "topicTitle": "example_topicTitle",
  "topicAngle": "example_topicAngle",
  "categoryExternalId": "example_categoryExternalId",
  "locale": "cs"
}'

Response

JSON payload

{
  "success": true
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key