cURL (AI)
Social
Create a social post
Two creation modes:
- Manual — provide
title,platforms, and per-platform copy (facebook_content,instagram_content, …). Saved as draft. 0 credits. - AI generation — provide
ai: { topic|post_id, tone, platforms, media_type, ... }. Returns aJobwithtype: social_post.generate. Costs 5 credits (social_post) for the text base; ifmedia_type=imagean additional 32 credits (image) is charged, and ifmedia_type=videoan additional 40 credits (video, budget tier) is charged against the same job.
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
Minimum array length:
1Available options:
facebook, instagram, twitter, tiktok, linkedin, youtube Available options:
image, video, carousel Response
Manual post created.
Example:
88
Available options:
facebook, instagram, twitter, tiktok, linkedin, youtube Example:
["facebook", "instagram"]Available options:
draft, scheduled, published, failed Example:
"scheduled"
Example:
"New Saturday morning class"
Available options:
image, video, carousel Platform-specific copy.
Example:
{
"facebook": "New Saturday morning class — book now → lakesideyoga.uk",
"instagram": "Slow down. Breathe. ✨ New Saturday morning class — link in bio."
}Per-platform publish outcomes.
Example:
{
"instagram": { "ok": true, "external_id": "ig_178214..." },
"facebook": { "ok": false, "error": "Token expired" }
}