Generate Content

Generate new content including articles, social media posts, newsletters, and blog posts.

POST /articles/generate/

Parameters

Parameter Type Required Description
content_type string Yes Content type: "article", "social", "newsletter", "post", "batch"
custom_topic string No Custom topic for content generation
custom_prompt string No Custom instructions for content generation
reddit_post_id integer No ID of specific Reddit post to base content on

Success Response (200)

200 OK
{ "status": "success", "message": "Article generation started for Brand Name", "job_id": 123, "task_id": "uuid-string", "estimated_time": "3-5 minutes", "brand_context": { "brand_name": "Brand Name", "industry": "Technology", "keywords_count": 25, "has_overview": true } }

Error Response (400)

400 Bad Request
{ "status": "error", "message": "Your brand needs keywords before generating content", "redirect_url": "/agents/brand/1/keywords/" }