Generate Article

Trigger the autonomous content generation engine. This endpoint synchronously generates a high-quality, SEO-optimized article based on your brand voice and website context, and publishes it immediately to your blog.

Endpoint

POST https://api.hatrio.ai/api/v1/generate

Attributes

AttributeTypeDescription
topicstringThe core subject or keyword for the article.
website_iduuidThe target platform ID from your dashboard.
contextstringOptional. Context or additional instructions for the article generation.

Example Response

{
  "success": true,
  "message": "Blog post generated and published successfully",
  "article": {
    "id": "e308b1e9-629b-4bd3-a9d6-ed0c131cc36b",
    "title": "The Ultimate Guide to Rose Gold Leaf Pendants: Style, Craftsmanship, and Sustainability",
    "slug": "the-ultimate-guide-to-rose-gold-leaf-pendants-style-craftsmanship-and-sustainability",
    "post_url": "/blogs/the-ultimate-guide-to-rose-gold-leaf-pendants-style-craftsmanship-and-sustainability",
    "status": "published"
  },
  "status": "published"
}