Generate social media captions from a blog post
POST/:workspaceUuid/ai/blog-to-social
Generates platform-specific social media captions from a blog post URL or directly provided title and excerpt. Each platform generates one caption, which consumes one AI credit from the workspace's monthly allowance.
Input modes (at least one required):
- URL mode: provide
urland the API scrapes the blog content automatically, including detecting the featured image viaog:image. - Direct mode: provide
titleandexcerptdirectly (no scraping).
If both are provided, direct values take priority.
When create_post is true, a draft post is created in the workspace with
per-account caption versions. If an image is available (from image_url or
the scraped og:image), it is imported into the workspace media library and
attached to the draft post.
Request
Responses
- 200
- 401
- 403
- 422
- 429
Captions generated successfully
Missing or invalid API token.
Insufficient permissions.
Validation failed.
AI credits exhausted for this billing period