Session Management
publish_content
Publish saved content to configured CMS platforms
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| platforms | string[] | Optional | ["all"] | Platforms to publish to: 'ghost', 'wordpress', 'all' |
| status | string | Optional | draft | Publication status: 'draft' or 'publish' |
Example
Publish to all configured platforms:
Request
{
"platforms": ["ghost", "wordpress"],
"status": "draft"
}Response
{
"status": "published",
"results": {
"ghost": {
"success": true,
"url": "https://your-ghost-site.com/p/react-hooks-guide",
"status": "draft",
"post_id": "6123abc..."
},
"wordpress": {
"success": true,
"url": "https://your-wp-site.com/?p=123",
"status": "draft",
"post_id": 123
}
},
"image_uploaded": true
}Tips
Best Practices
- Uses content from save_content
- Default is draft mode for review
- Supports Ghost and WordPress
- Images are uploaded automatically