PostFlow Developer Documentation
PostFlow by Wentix AI is a single unified API and automation engine that empowers developers and AI agents to connect, publish, schedule, moderate, and analyze content seamlessly across 15 social platforms.
https://publishred.wentixai.pro/api/v1.
β‘ Quickstart: Send Your First Multi-Platform Post
Publish a video reel to TikTok, Instagram, and YouTube Shorts simultaneously in a single API call:
curl -X POST https://publishred.wentixai.pro/api/v1/posts \
-H "Authorization: Bearer wtk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"caption": "Accelerate your AI workflows with PostFlow by Wentix AI! π #ai #automation #growth",
"mediaUrls": ["https://cdn.wentixai.pro/assets/videos/demo-reel.mp4"],
"platforms": ["tiktok", "instagram", "youtube"],
"platformOptions": {
"youtube": {
"title": "Automate Social Media with Wentix AI",
"privacyStatus": "public",
"madeForKids": false
},
"instagram": {
"mediaType": "REELS",
"shareToFeed": true
},
"tiktok": {
"disableComment": false,
"disableDuet": false
}
},
"scheduledAt": "2026-09-30T15:00:00Z"
}'
π Authentication & API Keys
PostFlow uses secure Bearer tokens to authenticate all requests. API keys can be generated in your Dashboard > Settings > API Keys.
Include your token in the standard HTTP Authorization header:
Authorization: Bearer wtk_live_9f83a2e18bc0094d27a...
wtk_live_ secret key to client-side code, public GitHub repositories, or browser frontend scripts.
π¦ POST /api/v1/posts
Publish immediately or schedule a post across one or more connected social accounts.
Request Body Parameters
| Field | Type | Presence | Description |
|---|---|---|---|
|
caption
string
Required
|
String | Yes | Primary caption text, hashtags, and mentions. Platform limits apply automatically. |
|
platforms
string[]
Required
|
Array | Yes | Target platform identifiers: instagram, tiktok, youtube, facebook, linkedin, x, threads, pinterest, reddit, bluesky, mastodon, discord, slack, gbp, snapchat. |
|
mediaUrls
string[]
Optional
|
Array | No | Array of public CDN, S3, or GCS URLs of images (JPG, PNG, WebP) or videos (MP4, MOV). |
|
scheduledAt
ISO 8601 String
Optional
|
Datetime | No | UTC execution time (e.g., 2026-09-30T18:00:00Z). If omitted, publishes immediately. |
|
platformOptions
object
Optional
|
Object | No | Platform-specific flags such as YouTube privacy settings, TikTok comment permissions, and Pinterest destination URLs. |
Response 200 OK
{
"success": true,
"data": {
"id": "pst_893240a1bf",
"status": "SCHEDULED",
"scheduledAt": "2026-09-30T18:00:00Z",
"caption": "Accelerate your AI workflows with PostFlow by Wentix AI! π",
"platforms": ["tiktok", "instagram", "youtube"],
"platformResults": {
"tiktok": { "status": "QUEUED" },
"instagram": { "status": "QUEUED" },
"youtube": { "status": "QUEUED" }
},
"createdAt": "2026-09-27T18:00:00Z"
}
}
π€ Model Context Protocol (MCP) Server
PostFlow includes an official Model Context Protocol (MCP) server. This allows AI assistants like Claude Desktop, Cursor IDE, Windsurf, and Autonomous LLM Agents to natively inspect your connected accounts, publish posts, schedule campaigns, and query social analytics.
Claude Desktop & Cursor Configuration
{
"mcpServers": {
"postflow": {
"command": "npx",
"args": ["-y", "@wentix/postflow-mcp-server"],
"env": {
"POSTFLOW_API_KEY": "wtk_live_YOUR_API_KEY"
}
}
}
}
Available MCP Tools
postflow_list_accounts: Returns all connected social profiles, health status, and follower counts.postflow_publish_post: Creates and schedules posts with automatic media validation and multi-network formatting.postflow_get_post_analytics: Queries real-time views, likes, shares, comments, and engagement rates.postflow_moderate_comments: Lists and replies to comments across Facebook, Instagram, TikTok, and YouTube.
π Bulk CSV Scheduling Engine
You can schedule hundreds of posts across all 15 platforms in one click by uploading a formatted CSV spreadsheet.
| CSV Column Header | Required | Example Value | Description |
|---|---|---|---|
caption |
Yes | "Weekly Podcast Ep #42 is live! π₯" | Text body and hashtags. |
media_url |
No | "https://cdn.wentixai.pro/ep42.mp4" | Direct link to video or image. |
platforms |
Yes | "instagram,tiktok,youtube,x" | Comma-separated platform keys. |
scheduled_time |
Yes | "2026-10-01 14:00" | Target publishing date and time. |
title |
No | "AI Video Generation in 2026" | Required for YouTube and Pinterest. |
πΈ Instagram Platform Guide
Supports Instagram Professional (Business & Creator) accounts for Publishing Reels, Photo Carousels, Stories, and Single Images.
- Reels: 9:16 aspect ratio (1080x1920), up to 90 seconds, MP4/MOV container.
- Carousels: Up to 10 images or videos in 1:1, 4:5, or 16:9 aspect ratios.
- Collaborator Tags: Invite co-authors with
collaboratorUsernames: ["@wentixai"]. - Audio & Music: Add custom audio or trigger Instagram Audio ID integration.
π΅ TikTok Platform Guide
Publish short-form videos and multi-photo slideshows directly to TikTok personal and business profiles.
- Commercial Music Library (CML): Automatic licensing checks for commercial business accounts.
- Photo Mode: Multi-image carousel posts with background sound tracks.
- Privacy & Permissions: Toggle
disableComment,disableDuet, anddisableStitchper post.
βΆοΈ YouTube (Shorts & Standard Video)
Upload videos of any duration, automatically tag YouTube Shorts, and organize content into playlists.
- Shorts Detection: Vertical videos under 60 seconds are automatically designated as Shorts.
- Metadata: Custom video title (up to 100 chars), description (5,000 chars), tags, category ID, and custom thumbnail upload.
πΌ LinkedIn (Profiles & Company Pages)
Publish rich-media updates, multi-page PDF documents/carousels, and long-form articles to LinkedIn Personal Profiles and Organization Pages.
π¦ X / Twitter (Tweets, Threads & Media)
Post standalone tweets, automated multi-tweet threads, polls, and media attachments with support for X Premium long-form character limits.
π¬ Discord & Slack Channel Bots
Dispatch rich embeds, notifications, and media drops directly to Discord text channels and Slack workspaces via incoming webhooks or bot tokens.
π Google Business Profile (GBP)
Publish local business updates, event announcements, special offers with call-to-action buttons (Call, Order, Learn More), and photos across multiple physical locations.