cURL (AI)
Blog
Create a blog post
Two creation modes:
- Manual — provide
title,content(HTML),excerpt, etc. The post is saved immediately as a draft. Costs 0 credits. - AI generation — provide
ai: { topic, style?, word_count?, translate_to_all?, primary_keyword?, ... }. Returns aJobwithtype: blog_post.generate. The post appears in the database when the job completes. Costs 60 credits (blog_post— covers research, draft, and featured image; per-language translations are billed separately at 7 credits per language).
POST
cURL (AI)
Authorizations
Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage
keys via /projects/me/api-keys. Test-mode keys use
the ndsk_test_ prefix.
Body
application/json
- Option 1
- Option 2
HTML body.
Example:
"en"
Optional. Auto-generated if omitted.
Available options:
draft, published, scheduled Response
Manual post created (synchronous).
Example:
142
Example:
"5-minute-breathwork-for-anxious-mornings"
Available options:
draft, published, scheduled, archived Example:
"published"
HTML for the requested language. Returned by GET /blog-posts/{id_or_slug} only.